Fix the SourceSet.projectDefault() extension adding sources to resources

The `include` calls were effectively made on the `resources`
`SourceDirectorySet`, which meant including '**' from 'src' as well.

Since the 'SourceDirectorySet' API is quite limited and does not support
specifying includes/excludes separately, configure the
`ProcessResources` task instead.
This commit is contained in:
Sergey Igushkin
2018-08-20 20:03:26 +03:00
parent 674e464230
commit a71c66a82f
7 changed files with 20 additions and 16 deletions
+1 -1
View File
@@ -17,7 +17,7 @@ dependencies {
sourceSets {
"main" {
projectDefault()
resources.srcDir(File(rootDir, "resources")).apply { include("**") }
resources.srcDir(File(rootDir, "resources"))
}
"test" {}
}