@@ -19,10 +19,12 @@ if (tasks.names.contains('changelogCheck')) {
19
19
}
20
20
// ensures that changelog bump and push only happens if the publish was successful
21
21
tasks. named(' changelogBump' ). configure {
22
- dependsOn tasks. named(' bintrayUpload' )
23
- // only the root project has bintrayPublish, and it finalizes all bintrayUpload tasks
24
- // https://github.com/bintray/gradle-bintray-plugin/blob/3fe02dfdae3e807afba57e0140a0d4c2424674e1/src/main/groovy/com/jfrog/bintray/gradle/ProjectsEvaluatedBuildListener.groovy#L37-L41
25
- dependsOn rootProject. tasks. named(' bintrayPublish' )
22
+ if (tasks. names. contains(' bintrayUpload' )) {
23
+ dependsOn tasks. named(' bintrayUpload' )
24
+ // only the root project has bintrayPublish, and it finalizes all bintrayUpload tasks
25
+ // https://github.com/bintray/gradle-bintray-plugin/blob/3fe02dfdae3e807afba57e0140a0d4c2424674e1/src/main/groovy/com/jfrog/bintray/gradle/ProjectsEvaluatedBuildListener.groovy#L37-L41
26
+ dependsOn rootProject. tasks. named(' bintrayPublish' )
27
+ }
26
28
// if we have a gradle plugin, we need to push it up to the plugin portal too
27
29
if (tasks. names. contains(' publishPlugins' )) {
28
30
dependsOn tasks. named(' publishPlugins' )
@@ -42,8 +44,10 @@ if (tasks.names.contains('changelogCheck')) {
42
44
}
43
45
}
44
46
parent. tasks. named(' changelogBump' ). configure {
45
- dependsOn tasks. named(' bintrayUpload' )
46
- dependsOn rootProject. tasks. named(' bintrayPublish' )
47
+ if (tasks. names. contains(' bintrayUpload' )) {
48
+ dependsOn tasks. named(' bintrayUpload' )
49
+ dependsOn rootProject. tasks. named(' bintrayPublish' )
50
+ }
47
51
if (tasks. names. contains(' publishPlugins' )) {
48
52
dependsOn tasks. named(' publishPlugins' )
49
53
}
0 commit comments