File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -173,6 +173,7 @@ tasks {
173173
174174 val uploadReleaseBundle by registering {
175175 dependsOn(generateReleaseBundle)
176+ val bundleFile = generateReleaseBundle.flatMap { it.archiveFile }
176177 doFirst {
177178 val username = System .getenv(" SONATYPE_USER" ) ? : throw GradleException (" Sonatype user not set" )
178179 val password = System .getenv(" SONATYPE_KEY" ) ? : throw GradleException (" Sonatype key not set" )
@@ -181,7 +182,7 @@ tasks {
181182 var query = " ?name=opentelemetry-java-instrumentation-$stableVersion "
182183 query + = " &publishingType=AUTOMATIC"
183184
184- val bundle = generateReleaseBundle .get().outputs.files.singleFile
185+ val bundle = bundleFile .get().asFile
185186 val httpClient = OkHttpClient ()
186187
187188 val request = okhttp3.Request .Builder ()
You can’t perform that action at this time.
0 commit comments