Skip to content

Commit 1e4a7be

Browse files
Bump spotless-plugin-gradle from 6.12.1 to 6.13.0 (open-telemetry#5126)
* Bump spotless-plugin-gradle from 6.12.1 to 6.13.0 Bumps [spotless-plugin-gradle](https://github.com/diffplug/spotless) from 6.12.1 to 6.13.0. - [Release notes](https://github.com/diffplug/spotless/releases) - [Changelog](https://github.com/diffplug/spotless/blob/main/CHANGES.md) - [Commits](diffplug/spotless@gradle/6.12.1...plugin-gradle/6.13.0) --- updated-dependencies: - dependency-name: com.diffplug.spotless:spotless-plugin-gradle dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> * Fix build Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Jack Berg <[email protected]>
1 parent 04db62f commit 1e4a7be

File tree

50 files changed

+70
-51
lines changed

Some content is hidden

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

50 files changed

+70
-51
lines changed

all/build.gradle.kts

+1-1
Original file line numberDiff line numberDiff line change
@@ -113,4 +113,4 @@ tasks.named<JacocoReport>("jacocoTestReport") {
113113
// without any external tools
114114
html.required.set(true)
115115
}
116-
}
116+
}

api/all/build.gradle.kts

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ dependencies {
2222
tasks.test {
2323
// Configure environment variable for ConfigUtilTest
2424
environment("CONFIG_KEY", "environment")
25-
}
25+
}

api/logs/build.gradle.kts

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ otelJava.moduleName.set("io.opentelemetry.api.logs")
1010

1111
dependencies {
1212
api(project(":api:all"))
13-
}
13+
}

build.gradle.kts

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,4 +72,4 @@ tasks {
7272
}
7373
}
7474
}
75-
}
75+
}

buildSrc/build.gradle.kts

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ repositories {
3232
dependencies {
3333
implementation("com.google.auto.value:auto-value-annotations:1.10.1")
3434
// When updating, update above in plugins too
35-
implementation("com.diffplug.spotless:spotless-plugin-gradle:6.12.1")
35+
implementation("com.diffplug.spotless:spotless-plugin-gradle:6.13.0")
3636
// Needed for japicmp but not automatically brought in for some reason.
3737
implementation("com.google.guava:guava:31.1-jre")
3838
implementation("com.squareup:javapoet:1.13.0")

buildSrc/src/main/kotlin/otel.protobuf-conventions.gradle.kts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import com.google.protobuf.gradle.*
22

33
plugins {
4-
id("com.google.protobuf")
5-
64
id("otel.java-conventions")
5+
6+
id("com.google.protobuf")
77
}
88

99
protobuf {

buildSrc/src/main/kotlin/otel.spotless-conventions.gradle.kts

+12-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,18 @@ spotless {
2222
}
2323
plugins.withId("org.jetbrains.kotlin.jvm") {
2424
kotlin {
25-
ktlint().editorConfigOverride(mapOf("indent_size" to "2", "continuation_indent_size" to "2", "disabled_rules" to "no-wildcard-imports"))
25+
ktlint().editorConfigOverride(mapOf(
26+
"indent_size" to "2",
27+
"continuation_indent_size" to "2",
28+
"max_line_length" to "160",
29+
"ktlint_standard_no-wildcard-imports" to "disabled",
30+
// ktlint does not break up long lines, it just fails on them
31+
"ktlint_standard_max-line-length" to "disabled",
32+
// ktlint makes it *very* hard to locate where this actually happened
33+
"ktlint_standard_trailing-comma-on-call-site" to "disabled",
34+
// also very hard to find out where this happens
35+
"ktlint_standard_wrapping" to "disabled"
36+
))
2637
licenseHeaderFile(rootProject.file("buildscripts/spotless.license.java"), "(package|import|class|// Includes work from:)")
2738
}
2839
}

context/build.gradle.kts

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,4 +71,4 @@ tasks {
7171
check {
7272
dependsOn(testing.suites)
7373
}
74-
}
74+
}

exporters/common/build.gradle.kts

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,4 @@ dependencies {
3636
testImplementation("com.google.api.grpc:proto-google-common-protos")
3737
testImplementation("io.grpc:grpc-testing")
3838
testRuntimeOnly("io.grpc:grpc-netty-shaded")
39-
}
39+
}

exporters/jaeger-proto/build.gradle.kts

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ tasks {
2222
compilerArgs.add("-Xlint:-serial")
2323
}
2424
}
25-
}
25+
}

exporters/jaeger-thrift/build.gradle.kts

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@ dependencies {
2525
testImplementation("com.google.guava:guava-testlib")
2626

2727
testImplementation(project(":sdk:testing"))
28-
}
28+
}

exporters/jaeger/build.gradle.kts

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,4 @@ sourceSets {
4646
main {
4747
java.srcDir("$buildDir/generated/source/wire")
4848
}
49-
}
49+
}

exporters/logging-otlp/build.gradle.kts

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@ dependencies {
2525
testImplementation(project(":sdk:trace"))
2626

2727
testImplementation("org.skyscreamer:jsonassert")
28-
}
28+
}

exporters/logging/build.gradle.kts

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ dependencies {
1717

1818
testImplementation(project(":sdk:testing"))
1919
testImplementation(project(":sdk:logs-testing"))
20-
}
20+
}

exporters/otlp/all/build.gradle.kts

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,4 +80,4 @@ tasks {
8080
},
8181
)
8282
}
83-
}
83+
}

exporters/otlp/common/build.gradle.kts

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,4 @@ sourceSets {
5757
main {
5858
java.srcDir("$buildDir/generated/source/wire")
5959
}
60-
}
60+
}

exporters/otlp/logs/build.gradle.kts

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,4 +62,4 @@ tasks {
6262
named("check") {
6363
dependsOn(testing.suites)
6464
}
65-
}
65+
}

exporters/otlp/testing-internal/build.gradle.kts

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,4 @@ dependencies {
3030
implementation("com.linecorp.armeria:armeria-junit5")
3131
implementation("io.github.netmikey.logunit:logunit-jul")
3232
implementation("org.assertj:assertj-core")
33-
}
33+
}

exporters/prometheus/build.gradle.kts

+1-1
Original file line numberDiff line numberDiff line change
@@ -90,4 +90,4 @@ tasks {
9090
compilerArgs.add("--add-reads=io.opentelemetry.exporters.prometheus.test=org.junit.jupiter.api")
9191
}
9292
}
93-
}
93+
}

exporters/zipkin/build.gradle.kts

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ dependencies {
2323

2424
testImplementation("com.linecorp.armeria:armeria")
2525
testImplementation("org.testcontainers:junit-jupiter")
26-
}
26+
}

extensions/incubator/build.gradle.kts

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ dependencies {
1313
api(project(":api:all"))
1414

1515
testImplementation(project(":sdk:testing"))
16-
}
16+
}

extensions/kotlin/build.gradle.kts

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,4 +59,4 @@ tasks {
5959
check {
6060
dependsOn(testing.suites)
6161
}
62-
}
62+
}

extensions/kotlin/src/main/kotlin/io/opentelemetry/extension/kotlin/ContextExtensions.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,4 @@ fun CoroutineContext.getOpenTelemetryContext(): Context {
3434
return element.context
3535
}
3636
return Context.root()
37-
}
37+
}

extensions/kotlin/src/test/kotlin/io/opentelemetry/extension/kotlin/KotlinCoroutinesTest.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -101,4 +101,4 @@ class KotlinCoroutinesTest {
101101
}
102102
}
103103
}
104-
}
104+
}

extensions/kotlin/src/testStrictContext/kotlin/io/opentelemetry/extension/kotlin/StrictContextWithCoroutinesTest.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -149,4 +149,4 @@ class StrictContextWithCoroutinesTest {
149149
assertThat(Context.current().get(ANIMAL)).isEqualTo(animal)
150150
}
151151
}
152-
}
152+
}

extensions/trace-propagators/build.gradle.kts

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ dependencies {
1616

1717
testImplementation("io.jaegertracing:jaeger-client")
1818
testImplementation("com.google.guava:guava")
19-
}
19+
}

integration-tests/build.gradle.kts

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ dependencies {
1313
testImplementation("com.linecorp.armeria:armeria-junit5")
1414
testImplementation("org.junit.jupiter:junit-jupiter-params")
1515
testImplementation("org.testcontainers:junit-jupiter")
16-
}
16+
}

integration-tests/graal/build.gradle.kts

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@ graalvmNative {
2626
}
2727
}
2828
toolchainDetection.set(false)
29-
}
29+
}

integration-tests/otlp/build.gradle.kts

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,4 @@ tasks {
4040
check {
4141
dependsOn(testing.suites)
4242
}
43-
}
43+
}

integration-tests/tracecontext/build.gradle.kts

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,4 @@ tasks {
3030

3131
jvmArgs("-Dio.opentelemetry.testArchive=${shadowJar.get().archiveFile.get().asFile.absolutePath}")
3232
}
33-
}
33+
}

opencensus-shim/build.gradle.kts

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@ tasks.named<Test>("test") {
2828
// methods available.
2929
setForkEvery(1)
3030
maxParallelForks = 3
31-
}
31+
}

opentracing-shim/build.gradle.kts

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ tasks {
2424
showStandardStreams = true
2525
}
2626
}
27-
}
27+
}

perf-harness/build.gradle.kts

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ dependencies {
1717
implementation("org.testcontainers:junit-jupiter")
1818

1919
runtimeOnly("io.grpc:grpc-netty-shaded")
20-
}
20+
}

sdk-extensions/autoconfigure-spi/build.gradle.kts

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ dependencies {
1515
// implementation dependency to require users to add the artifact directly to their build to use
1616
// SdkLoggerProviderBuilder.
1717
implementation(project(":sdk:logs"))
18-
}
18+
}

sdk-extensions/autoconfigure/build.gradle.kts

+1-1
Original file line numberDiff line numberDiff line change
@@ -114,4 +114,4 @@ tasks {
114114
check {
115115
dependsOn(testing.suites)
116116
}
117-
}
117+
}

sdk-extensions/incubator/build.gradle.kts

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,4 @@ dependencies {
3030
testImplementation(project(":sdk-extensions:autoconfigure"))
3131

3232
testImplementation("com.google.guava:guava-testlib")
33-
}
33+
}

sdk-extensions/jaeger-remote-sampler/build.gradle.kts

+9-1
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,14 @@ testing {
4949
}
5050
}
5151

52+
afterEvaluate {
53+
// Classpath when compiling testGrpcNetty, we add dependency management directly
54+
// since it doesn't follow Gradle conventions of naming / properties.
55+
dependencies {
56+
add("testGrpcNettyCompileProtoPath", platform(project(":dependencyManagement")))
57+
}
58+
}
59+
5260
tasks {
5361
check {
5462
dependsOn(testing.suites)
@@ -74,4 +82,4 @@ tasks {
7482
compilerArgs.add("-Xlint:-serial")
7583
}
7684
}
77-
}
85+
}

sdk/all/build.gradle.kts

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@ dependencies {
2525
testAnnotationProcessor("com.google.auto.value:auto-value")
2626

2727
testImplementation(project(":sdk:testing"))
28-
}
28+
}

sdk/common/build.gradle.kts

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,4 +79,4 @@ tasks {
7979
check {
8080
dependsOn(testing.suites)
8181
}
82-
}
82+
}

sdk/logs-testing/build.gradle.kts

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ dependencies {
2121
testImplementation(project(":sdk:logs-testing"))
2222

2323
testImplementation("junit:junit")
24-
}
24+
}

sdk/logs/build.gradle.kts

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ dependencies {
1818
testImplementation("org.awaitility:awaitility")
1919

2020
annotationProcessor("com.google.auto.value:auto-value")
21-
}
21+
}

sdk/metrics-testing/build.gradle.kts

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ dependencies {
1818
annotationProcessor("com.google.auto.value:auto-value")
1919

2020
testImplementation("junit:junit")
21-
}
21+
}

sdk/metrics/build.gradle.kts

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,4 +54,4 @@ tasks {
5454
check {
5555
dependsOn(testing.suites)
5656
}
57-
}
57+
}

sdk/testing/build.gradle.kts

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ dependencies {
2020

2121
testImplementation("junit:junit")
2222
testImplementation("org.junit.vintage:junit-vintage-engine")
23-
}
23+
}

sdk/trace-shaded-deps/build.gradle.kts

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,4 @@ tasks {
3030
tasks.withType<Test>().configureEach {
3131
// JcToolsSecurityManagerTest interferes with JcToolsTest
3232
setForkEvery(1)
33-
}
33+
}

sdk/trace/build.gradle.kts

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,4 +65,4 @@ tasks {
6565
exclude("**/internal/shaded/jctools/**")
6666
exclude("**/internal/JcTools*")
6767
}
68-
}
68+
}

semconv/build.gradle.kts

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ otelJava.moduleName.set("io.opentelemetry.semconv")
1010

1111
dependencies {
1212
api(project(":api:all"))
13-
}
13+
}

settings.gradle.kts

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,4 +77,4 @@ gradleEnterprise {
7777
tag("CI")
7878
}
7979
}
80-
}
80+
}

testing-internal/build.gradle.kts

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ otelJava.moduleName.set("io.opentelemetry.internal.testing")
88
dependencies {
99
api("org.junit.jupiter:junit-jupiter-api")
1010
implementation("org.slf4j:jul-to-slf4j")
11-
}
11+
}

version.gradle.kts

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ allprojects {
1010
ver += "-SNAPSHOT"
1111
}
1212
version = ver
13-
}
13+
}

0 commit comments

Comments
 (0)