Skip to content

Commit

Permalink
Update dependencies (#142)
Browse files Browse the repository at this point in the history
* Update dependencies

* Apply spotless
  • Loading branch information
anuraaga authored Dec 2, 2021
1 parent cd2c935 commit 7ca901a
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 25 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -233,8 +233,7 @@ SamplingResult shouldSample(
return result;
}

@Nullable
SamplingStatisticsDocument snapshot(Date now) {
@Nullable SamplingStatisticsDocument snapshot(Date now) {
if (clock.nanoTime() < nextSnapshotTimeNanos) {
return null;
}
Expand Down
4 changes: 2 additions & 2 deletions buildSrc/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
plugins {
`kotlin-dsl`
// When updating, update below in dependencies too
id("com.diffplug.spotless") version "5.16.0"
id("com.diffplug.spotless") version "6.0.0"
}

repositories {
Expand All @@ -12,5 +12,5 @@ repositories {

dependencies {
// When updating, update above in plugins too
implementation("com.diffplug.spotless:spotless-plugin-gradle:5.16.0")
implementation("com.diffplug.spotless:spotless-plugin-gradle:6.0.0")
}
32 changes: 16 additions & 16 deletions dependencyManagement/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -12,51 +12,51 @@ val dependencyVersions = hashMapOf<String, String>()
rootProject.extra["versions"] = dependencyVersions

val DEPENDENCY_BOMS = listOf(
"com.fasterxml.jackson:jackson-bom:2.12.3",
"com.google.guava:guava-bom:30.1.1-jre",
"com.linecorp.armeria:armeria-bom:1.11.0",
"org.junit:junit-bom:5.7.2",
"com.fasterxml.jackson:jackson-bom:2.13.0",
"com.google.guava:guava-bom:31.0.1-jre",
"com.linecorp.armeria:armeria-bom:1.13.3",
"org.junit:junit-bom:5.8.2",
"com.linecorp.armeria:armeria-bom:1.9.1",
"io.grpc:grpc-bom:1.39.0",
"io.opentelemetry:opentelemetry-bom:1.9.0",
"io.opentelemetry:opentelemetry-bom-alpha:1.9.0-alpha",
"org.testcontainers:testcontainers-bom:1.16.0"
"io.grpc:grpc-bom:1.42.1",
"io.opentelemetry:opentelemetry-bom:1.9.1",
"io.opentelemetry:opentelemetry-bom-alpha:1.9.1-alpha",
"org.testcontainers:testcontainers-bom:1.16.2"
)

val DEPENDENCY_SETS = listOf(
DependencySet(
"com.google.auto.service",
"1.0",
"1.0.1",
listOf("auto-service", "auto-service-annotations")
),
DependencySet(
"com.google.auto.value",
"1.8.1",
"1.8.2",
listOf("auto-value", "auto-value-annotations")
),
DependencySet(
"io.prometheus",
"0.11.0",
"0.12.0",
listOf("simpleclient", "simpleclient_common", "simpleclient_httpserver")
),
DependencySet(
"org.mockito",
"3.11.1",
"4.1.0",
listOf("mockito-core", "mockito-junit-jupiter")
),
DependencySet(
"org.slf4j",
"1.7.30",
"1.7.32",
listOf("slf4j-api", "slf4j-simple", "log4j-over-slf4j", "jcl-over-slf4j", "jul-to-slf4j")
)
)

val DEPENDENCIES = listOf(
"com.squareup.okhttp3:okhttp:3.14.9",
"org.assertj:assertj-core:3.21.0",
"org.awaitility:awaitility:4.1.0",
"org.checkerframework:checker-qual:3.15.0",
"org.junit-pioneer:junit-pioneer:1.4.2",
"org.awaitility:awaitility:4.1.1",
"org.checkerframework:checker-qual:3.19.0",
"org.junit-pioneer:junit-pioneer:1.5.0",
"org.skyscreamer:jsonassert:1.5.0"
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,13 +144,11 @@ void setEntry(
this.result = result;
}

@Nullable
Object getEventArgs() {
@Nullable Object getEventArgs() {
return eventArgs;
}

@Nullable
EventType getEventType() {
@Nullable EventType getEventType() {
return eventType;
}

Expand Down
2 changes: 1 addition & 1 deletion settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
pluginManagement {
plugins {
id("com.github.ben-manes.versions") version "0.39.0"
id("com.github.johnrengelman.shadow") version "7.0.0"
id("com.github.johnrengelman.shadow") version "7.1.0"
id("org.unbroken-dome.test-sets") version "4.0.0"
id("io.github.gradle-nexus.publish-plugin") version "1.1.0"
id("nebula.release") version "16.0.0"
Expand Down

0 comments on commit 7ca901a

Please sign in to comment.