Skip to content

Commit 3185c2b

Browse files
authored
Update dependencies (#27)
* Update dependencies * Regenerate license report. * Add directions on updates
1 parent c742bab commit 3185c2b

File tree

156 files changed

+15529
-1523
lines changed

Some content is hidden

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

156 files changed

+15529
-1523
lines changed

.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,5 @@
22

33
*.bat text eol=crlf
44
*.cmd text eol=crlf
5+
6+
licenses/** linguist-generated

RELEASING.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# AWS OpenTelemetry Java Instrumentation Release Process
22

3+
## Preparing for a release
4+
5+
Before beginning a release, make sure dependencies are updated.
6+
7+
Run `./gradlew dependencyUpdates` to get a report on what dependencies have updates and apply them to
8+
`dependencyManagement` and `settings.gradle.kts`.
9+
10+
Then, run `./gradlew generateLicenseReport` to update our licenses to reflect the update. Send a PR
11+
and merge.
12+
313
## Starting the Release
414

515
Open the release build workflow in your browser [here](https://github.com/aws-observability/aws-otel-java-instrumentation/actions?query=workflow%3A%22Release+Build%22).

awsagentprovider/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
plugins {
1717
java
18-
id("com.github.johnrengelman.shadow") version "5.2.0"
18+
id("com.github.johnrengelman.shadow")
1919
}
2020

2121
base {

build.gradle.kts

Lines changed: 23 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,12 @@ import org.gradle.api.tasks.testing.logging.TestExceptionFormat
1818

1919
plugins {
2020
java
21-
id("nebula.release") version "15.1.0"
22-
id("io.codearte.nexus-staging") version "0.22.0"
23-
id("com.diffplug.spotless") version "5.1.2"
24-
id("com.github.jk1.dependency-license-report") version "1.14"
21+
22+
id("com.diffplug.spotless")
23+
id("com.github.ben-manes.versions")
24+
id("com.github.jk1.dependency-license-report")
25+
id("io.codearte.nexus-staging")
26+
id("nebula.release")
2527
}
2628

2729
val releaseTask = tasks.named("release")
@@ -57,7 +59,10 @@ allprojects {
5759

5860
spotless {
5961
kotlinGradle {
60-
ktlint("0.38.0").userData(mapOf("indent_size" to "2", "continuation_indent_size" to "2"))
62+
ktlint("0.40.0").userData(mapOf("indent_size" to "2", "continuation_indent_size" to "2"))
63+
64+
// Doesn't support pluginManagement block
65+
targetExclude("settings.gradle.kts")
6166

6267
if (!project.path.startsWith(":sample-apps:")) {
6368
licenseHeaderFile("${rootProject.projectDir}/config/license/header.java", "plugins|include|import")
@@ -215,10 +220,19 @@ allprojects {
215220
}
216221
}
217222

218-
tasks.named<Wrapper>("wrapper") {
219-
gradleVersion = "6.6.1"
220-
distributionType = Wrapper.DistributionType.ALL
221-
distributionSha256Sum = "11657af6356b7587bfb37287b5992e94a9686d5c8a0a1b60b87b9928a2decde5"
223+
tasks {
224+
named<Wrapper>("wrapper") {
225+
gradleVersion = "6.7.1"
226+
distributionSha256Sum = "3239b5ed86c3838a37d983ac100573f64c1f3fd8e1eb6c89fa5f9529b5ec091d"
227+
}
228+
229+
val cleanLicenseReport by registering(Delete::class) {
230+
delete("licenses")
231+
}
232+
233+
named("generateLicenseReport") {
234+
dependsOn(cleanLicenseReport)
235+
}
222236
}
223237

224238
licenseReport {

dependencyManagement/build.gradle.kts

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -22,19 +22,16 @@ plugins {
2222
data class DependencySet(val group: String, val version: String, val modules: List<String>)
2323

2424
val DEPENDENCY_BOMS = listOf(
25-
"com.amazonaws:aws-xray-recorder-sdk-bom:2.6.1",
26-
"com.fasterxml.jackson:jackson-bom:2.11.0",
27-
"com.google.protobuf:protobuf-bom:3.13.0",
28-
"com.linecorp.armeria:armeria-bom:1.0.0",
29-
"io.grpc:grpc-bom:1.30.2",
25+
"com.fasterxml.jackson:jackson-bom:2.12.0",
26+
"com.google.protobuf:protobuf-bom:3.14.0",
27+
"com.linecorp.armeria:armeria-bom:1.3.0",
28+
"io.grpc:grpc-bom:1.34.0",
3029
"io.opentelemetry:opentelemetry-bom:0.11.0",
31-
"io.zipkin.brave:brave-bom:5.12.3",
32-
"io.zipkin.reporter2:zipkin-reporter-bom:2.15.0",
33-
"org.apache.logging.log4j:log4j-bom:2.13.3",
34-
"org.junit:junit-bom:5.7.0-RC1",
35-
"org.springframework.boot:spring-boot-dependencies:2.3.3.RELEASE",
36-
"org.testcontainers:testcontainers-bom:1.15.0-rc2",
37-
"software.amazon.awssdk:bom:2.13.17"
30+
"org.apache.logging.log4j:log4j-bom:2.14.0",
31+
"org.junit:junit-bom:5.7.0",
32+
"org.springframework.boot:spring-boot-dependencies:2.4.0",
33+
"org.testcontainers:testcontainers-bom:1.15.0",
34+
"software.amazon.awssdk:bom:2.15.40"
3835
)
3936

4037
val DEPENDENCY_SETS = listOf(
@@ -72,6 +69,7 @@ val DEPENDENCY_SETS = listOf(
7269
)
7370

7471
val DEPENDENCIES = listOf(
72+
"commons-logging:commons-logging:1.2",
7573
"com.sparkjava:spark-core:2.9.3",
7674
"com.squareup.okhttp3:okhttp:3.14.9"
7775
)
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionSha256Sum=11657af6356b7587bfb37287b5992e94a9686d5c8a0a1b60b87b9928a2decde5
4-
distributionUrl=https\://services.gradle.org/distributions/gradle-6.6.1-all.zip
3+
distributionSha256Sum=3239b5ed86c3838a37d983ac100573f64c1f3fd8e1eb6c89fa5f9529b5ec091d
4+
distributionUrl=https\://services.gradle.org/distributions/gradle-6.7.1-bin.zip
55
zipStoreBase=GRADLE_USER_HOME
66
zipStorePath=wrapper/dists

licenses/annotations-2.15.40.jar/META-INF/LICENSE.txt

Lines changed: 206 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

licenses/annotations-2.15.40.jar/META-INF/NOTICE.txt

Lines changed: 16 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)