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 {
166166
167167 val uploadReleaseBundle by registering {
168168 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())
169173
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"
176176
177- doFirst {
178177 val bundle = generateReleaseBundle.get().outputs.files.singleFile
179178 val httpClient = OkHttpClient ()
180179
You can’t perform that action at this time.
0 commit comments