BruceEckel/OnJava8-Examples

Please consider a minor fix

Closed this issue · 1 comments

Hi Bruce,

I was using VSCode on Mac and try to gradlew build this pkg. Somehow VSCode create a .settings dir and cause a build failure.

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':.settings'.
> The project name '.settings' must not start or end with a '.'. Set the 'rootProject.name' or adjust the 'include' statement (see https://docs.gradle.org/6.8.1/dsl/org.gradle.api.initialization.Settings.html#org.gradle.api.initialization.Settings:include(java.lang.String[]) for more details).

it took me couple hours to find and fix this problem.

Please consider use !file.name.startsWith('.') to avoid this problem

!file.name.contains('.git') &&
!file.name.contains('.gradle') &&
!file.name.contains('.idea') &&

Thanks,
Tony

Try it now.