mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-28 23:31:56 +00:00
Bug 1667675 - Use sourceSets instead of JavaCompileProvider to generate sources.jar. r=agi
Documentation is lacking but apparently
`variant.javaCompileProvider.get().source` is always empty according to
da34aabdb6
.
In that commit, `android.sourceSets.main.java.srcDirs` was the
replacement. However, I used
`variant.sourceSets.collect({ it.java.srcDirs }).flatten()` to be
consistent with an earlier usage in `build.gradle`.
Differential Revision: https://phabricator.services.mozilla.com/D91836
This commit is contained in:
parent
07b9286375
commit
657fbf74ca
@ -348,7 +348,7 @@ android.libraryVariants.all { variant ->
|
||||
classifier 'sources'
|
||||
description = "Generate Javadoc for build variant $name"
|
||||
destinationDir = new File(destinationDir, variant.baseName)
|
||||
from files(variant.javaCompileProvider.get().source)
|
||||
from files(variant.sourceSets.collect({ it.java.srcDirs }).flatten())
|
||||
}
|
||||
|
||||
task("checkstyle${name.capitalize()}", type: Checkstyle) {
|
||||
|
Loading…
Reference in New Issue
Block a user