Skip to content

Commit b9b9ed2

Browse files
committed
Add output redirection and exit value handling to Gradle upload task
1 parent 86e4c26 commit b9b9ed2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

build.gradle.kts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,9 @@ tasks.register("publishToMavenCentral") {
9494
"-c",
9595
"curl --request POST --verbose --header 'Authorization: Bearer ${System.getenv("MAVEN_USER_TOKEN")}' --form [email protected] https://central.sonatype.com/api/v1/publisher/upload"
9696
)
97+
standardOutput = System.out
98+
errorOutput = System.err
99+
isIgnoreExitValue = false
97100
}
98101
}
99102
}

0 commit comments

Comments
 (0)