You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: build.gradle
+9-2
Original file line number
Diff line number
Diff line change
@@ -112,8 +112,7 @@ task doRelease {
112
112
checkLastVersionValueTask,
113
113
'initializeSonatypeStagingRepository',
114
114
'clean',
115
-
'build',
116
-
project.getTasksByName('publishToSonatype', true)
115
+
'build'
117
116
)
118
117
}
119
118
@@ -122,3 +121,11 @@ model {
122
121
dependsOn updateLastVersionValueTask
123
122
}
124
123
}
124
+
// dependency on 'publishToSonatype' must be added in a 'afterEvaluate' bloc, see https://github.com/gradle/gradle/issues/16543#issuecomment-2529428010
0 commit comments