File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -166,15 +166,14 @@ tasks {
166
166
167
167
val uploadReleaseBundle by registering {
168
168
dependsOn(generateReleaseBundle)
169
+ doFirst {
170
+ val username = System .getenv(" SONATYPE_USER" ) ? : throw GradleException (" Sonatype user not set" )
171
+ val password = System .getenv(" SONATYPE_KEY" ) ? : throw GradleException (" Sonatype key not set" )
172
+ val token = Base64 .getEncoder().encodeToString(" $username :$password " .toByteArray())
169
173
170
- val username = System .getenv(" SONATYPE_USER" ) ? : throw GradleException (" Sonatype user not set" )
171
- val password = System .getenv(" SONATYPE_KEY" ) ? : throw GradleException (" Sonatype key not set" )
172
- val token = Base64 .getEncoder().encodeToString(" $username :$password " .toByteArray())
173
-
174
- var query = " ?name=opentelemetry-java-instrumentation-$stableVersion "
175
- query + = " &publishingType=AUTOMATIC"
174
+ var query = " ?name=opentelemetry-java-instrumentation-$stableVersion "
175
+ query + = " &publishingType=AUTOMATIC"
176
176
177
- doFirst {
178
177
val bundle = generateReleaseBundle.get().outputs.files.singleFile
179
178
val httpClient = OkHttpClient ()
180
179
You can’t perform that action at this time.
0 commit comments