We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5d78715 commit 3ba0198Copy full SHA for 3ba0198
1 file changed
build.gradle
@@ -70,8 +70,8 @@ def hasSonatypeCredentials =
70
&& sonatypePassword != null
71
&& !sonatypePassword.toString().trim().isEmpty()
72
73
-if (!hasSonatypeCredentials) {
74
- logger.lifecycle("Sonatype credentials not provided; skipping Nexus staging initialization and release tasks.")
+if (!hasSonatypeCredentials || project.version.endsWith("-SNAPSHOT")) {
+ logger.lifecycle("Sonatype credentials not provided or running with snapshot; skipping Nexus staging initialization and release tasks.")
75
def skipTheseTasks = [
76
"initializeSonatypeStagingRepository",
77
"publishToSonatype",
0 commit comments