@@ -688,9 +688,13 @@ task 'collectAllJars' {
688
688
}
689
689
}
690
690
691
- task copyMetadataFilters (type : Copy ) {
692
- from " $rootDir /whitelist.mdg" , " $rootDir /blacklist.mdg"
693
- into " $BUILD_TOOLS_PATH "
691
+ task copyMetadataFilters {
692
+ outputs. files(" $BUILD_TOOLS_PATH /whitelist.mdg" , " $BUILD_TOOLS_PATH /blacklist.mdg" )
693
+ // use an explicit copy task here because the copy task itselfs marks the whole built-tools as an output!
694
+ copy {
695
+ from file(" $rootDir /whitelist.mdg" ), file(" $rootDir /blacklist.mdg" )
696
+ into " $BUILD_TOOLS_PATH "
697
+ }
694
698
}
695
699
696
700
task ' copyMetadata' {
@@ -902,7 +906,9 @@ task buildMetadata(type: BuildToolTask) {
902
906
inputs. files(" $MDG_JAVA_DEPENDENCIES " )
903
907
904
908
// make MDG aware of whitelist.mdg and blacklist.mdg files
905
- inputs. files(project. fileTree(dir : " $rootDir " , include : " **/*.mdg" ))
909
+ // inputs.files(project.fileTree(dir: "$rootDir", include: "**/*.mdg"))
910
+ // use explicit inputs as the above makes the whole build-tools directory an input!
911
+ inputs. files(" $BUILD_TOOLS_PATH /whitelist.mdg" , " $BUILD_TOOLS_PATH /blacklist.mdg" )
906
912
907
913
def classesDir = layout. buildDirectory. dir(" intermediates/javac" ). get(). asFile
908
914
if (classesDir. exists()) {
@@ -1005,9 +1011,6 @@ task buildMetadata(type: BuildToolTask) {
1005
1011
1006
1012
task generateTypescriptDefinitions (type : BuildToolTask ) {
1007
1013
if (! findProject(' :dts-generator' ). is(null )) {
1008
- // TODO: find out why this is needed. Running these tasks solo works fine, but when running the whole build, it fails.
1009
- tasks. findByPath(" :dts-generator:compileJava" ). dependsOn(buildMetadata)
1010
- tasks. findByPath(" :dts-generator:processResources" ). dependsOn(buildMetadata)
1011
1014
dependsOn ' :dts-generator:jar'
1012
1015
}
1013
1016
0 commit comments