Peter
12/16/2021, 3:50 PMReason: Task ':generateMetadataFileForPluginMavenPublication' uses this output of task ':publishPluginJar' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed.
?Peter
12/16/2021, 3:50 PMtasks.named(":generateMetadataFileForPluginMavenPublication") {
dependsOn(":publishPluginJar")
dependsOn(":publishPluginJavaDocsJar")
}
does not work … task not foundPeter
12/16/2021, 3:51 PMTask with name ':generateMetadataFileForPluginMavenPublication' not found in root project
Vampire
12/16/2021, 4:01 PM:
is not part of the name, it is a separatorVampire
12/16/2021, 4:01 PM/
for file pathsVampire
12/16/2021, 4:01 PMdependsOn
statements is in 80% of the cases a sign that your build does something wrongVampire
12/16/2021, 4:02 PMPeter
12/16/2021, 4:08 PM:
.. same problem 😞Vampire
12/16/2021, 4:23 PMtasks.withType<GenerateModuleMetadata>().matching {
it.name == "generateMetadataFileForPluginMavenPublication"
}.configureEach {
dependsOn(":publishPluginJar")
dependsOn(":publishPluginJavaDocsJar")
}
Peter
12/16/2021, 4:33 PMVampire
12/16/2021, 4:36 PM