Skip to content

Commit

Permalink
Improve settings.gradle excludes
Browse files Browse the repository at this point in the history
This excludes any .gradle files found in src, build, out which
avoids excessive scanning and avoids adding resources used for testing.
  • Loading branch information
rwinch committed Apr 3, 2019
1 parent e204ae5 commit 22f4104
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ rootProject.name = 'nohttp-build'
FileTree buildFiles = fileTree(rootDir) {
List excludes = gradle.startParameter.projectProperties.get("excludeProjects")?.split(",")
include '**/*.gradle'
exclude 'build', '**/gradle', 'settings.gradle', 'buildSrc', '/build.gradle', '.*', 'out'
exclude '**/build', '**/src', '**/gradle', 'settings.gradle', 'buildSrc', '/build.gradle', '.*', '**/out'
exclude '**/grails3'
if(excludes) {
exclude excludes
Expand Down

0 comments on commit 22f4104

Please sign in to comment.