Skip to content

Commit f413172

Browse files
authored
Merge branch 'main' into declarative-config-improvements
2 parents 6d0f85a + 62175ca commit f413172

File tree

61 files changed

+990
-628
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+990
-628
lines changed

build.gradle.kts

Lines changed: 22 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -167,34 +167,33 @@ tasks {
167167
val uploadReleaseBundle by registering {
168168
dependsOn(generateReleaseBundle)
169169

170-
val bundle = generateReleaseBundle.get().outputs.files.singleFile
171-
val httpClient = OkHttpClient()
172170
val username = System.getenv("SONATYPE_USER") ?: throw GradleException("Sonatype user not set")
173171
val password = System.getenv("SONATYPE_KEY") ?: throw GradleException("Sonatype key not set")
174172
val token = Base64.getEncoder().encodeToString("$username:$password".toByteArray())
175173

176174
var query = "?name=opentelemetry-java-instrumentation-$stableVersion"
177-
// uncomment to automatically publish the release
178-
// query += "&publishingType=AUTOMATIC"
179-
180-
val request = okhttp3.Request.Builder()
181-
.url("https://central.sonatype.com/api/v1/publisher/upload$query")
182-
.post(
183-
okhttp3.MultipartBody.Builder().addFormDataPart(
184-
"bundle",
185-
bundle.name,
186-
bundle.asRequestBody("application/zip".toMediaType())
187-
).build()
188-
)
189-
.header("authorization", "Bearer $token")
190-
.build()
191-
httpClient.newCall(request).execute().use { response ->
192-
response.body!!.string()
193-
}
194-
195-
httpClient.newCall(request).execute().use { response ->
196-
if (response.code != 201) throw GradleException("Unexpected response status ${response.code} while uploading the release bundle")
197-
println("Uploaded deployment ${response.body!!.string()}")
175+
query += "&publishingType=AUTOMATIC"
176+
177+
doFirst {
178+
val bundle = generateReleaseBundle.get().outputs.files.singleFile
179+
val httpClient = OkHttpClient()
180+
181+
val request = okhttp3.Request.Builder()
182+
.url("https://central.sonatype.com/api/v1/publisher/upload$query")
183+
.post(
184+
okhttp3.MultipartBody.Builder().addFormDataPart(
185+
"bundle",
186+
bundle.name,
187+
bundle.asRequestBody("application/zip".toMediaType())
188+
).build()
189+
)
190+
.header("authorization", "Bearer $token")
191+
.build()
192+
193+
httpClient.newCall(request).execute().use { response ->
194+
if (response.code != 201) throw GradleException("Unexpected response status ${response.code} while uploading the release bundle")
195+
println("Uploaded deployment ${response.body.string()}")
196+
}
198197
}
199198
}
200199
}

dependencyManagement/build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ val DEPENDENCY_BOMS = listOf(
3838

3939
val autoServiceVersion = "1.1.1"
4040
val autoValueVersion = "1.11.0"
41-
val errorProneVersion = "2.39.0"
41+
val errorProneVersion = "2.40.0"
4242
val byteBuddyVersion = "1.17.6"
4343
val asmVersion = "9.8"
4444
val jmhVersion = "1.37"
@@ -100,7 +100,7 @@ val DEPENDENCIES = listOf(
100100
"commons-io:commons-io:2.19.0",
101101
"commons-lang:commons-lang:2.6",
102102
"commons-logging:commons-logging:1.3.5",
103-
"commons-validator:commons-validator:1.9.0",
103+
"commons-validator:commons-validator:1.10.0",
104104
"io.netty:netty:3.10.6.Final",
105105
"io.opentelemetry.contrib:opentelemetry-azure-resources:${otelContribVersion}",
106106
"io.opentelemetry.contrib:opentelemetry-aws-resources:${otelContribVersion}",
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Comparing source compatibility of opentelemetry-instrumentation-annotations-2.17.1.jar against opentelemetry-instrumentation-annotations-2.17.0.jar
2+
No changes.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Comparing source compatibility of opentelemetry-instrumentation-api-2.17.1.jar against opentelemetry-instrumentation-api-2.17.0.jar
2+
No changes.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Comparing source compatibility of opentelemetry-spring-boot-autoconfigure-2.17.1.jar against opentelemetry-spring-boot-autoconfigure-2.17.0.jar
2+
No changes.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Comparing source compatibility of opentelemetry-spring-boot-starter-2.17.1.jar against opentelemetry-spring-boot-starter-2.17.0.jar
2+
No changes.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Comparing source compatibility of opentelemetry-instrumentation-annotations-2.18.0-SNAPSHOT.jar against opentelemetry-instrumentation-annotations-2.17.0.jar
1+
Comparing source compatibility of opentelemetry-instrumentation-annotations-2.18.0-SNAPSHOT.jar against opentelemetry-instrumentation-annotations-2.17.1.jar
22
No changes.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Comparing source compatibility of opentelemetry-instrumentation-api-2.18.0-SNAPSHOT.jar against opentelemetry-instrumentation-api-2.17.0.jar
1+
Comparing source compatibility of opentelemetry-instrumentation-api-2.18.0-SNAPSHOT.jar against opentelemetry-instrumentation-api-2.17.1.jar
22
No changes.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Comparing source compatibility of opentelemetry-spring-boot-autoconfigure-2.18.0-SNAPSHOT.jar against opentelemetry-spring-boot-autoconfigure-2.17.0.jar
1+
Comparing source compatibility of opentelemetry-spring-boot-autoconfigure-2.18.0-SNAPSHOT.jar against opentelemetry-spring-boot-autoconfigure-2.17.1.jar
22
No changes.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Comparing source compatibility of opentelemetry-spring-boot-starter-2.18.0-SNAPSHOT.jar against opentelemetry-spring-boot-starter-2.17.0.jar
1+
Comparing source compatibility of opentelemetry-spring-boot-starter-2.18.0-SNAPSHOT.jar against opentelemetry-spring-boot-starter-2.17.1.jar
22
No changes.

0 commit comments

Comments
 (0)