Skip to content

Commit

Permalink
Revert "move to 11"
Browse files Browse the repository at this point in the history
This reverts commit 1ee6ddc.
  • Loading branch information
kishansairam9 committed Jan 23, 2024
1 parent 1ee6ddc commit c21cfdb
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 3 deletions.
4 changes: 2 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ subprojects {
apply(from = "$rootDir/gradle/spotless.gradle")
pluginManager.withPlugin("java-library") {
configure<JavaPluginExtension> {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}

repositories {
Expand Down
9 changes: 9 additions & 0 deletions otel-extensions/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,15 @@ dependencies {
implementation("io.opentelemetry.javaagent:opentelemetry-javaagent-extension-api")
implementation("io.opentelemetry.instrumentation:opentelemetry-instrumentation-api")
implementation("io.opentelemetry.javaagent:opentelemetry-javaagent-tooling") {
constraints {
implementation("io.opentelemetry.javaagent:opentelemetry-javaagent-tooling-java9") {
attributes {
// this transitive dependency creates classes compatible with Java 9 and up, but is only referenced in safe ways for
// java 8 by the javaagent-tooling dependency
attribute(Attribute.of("org.gradle.jvm.version", Integer::class.java), 9 as Integer)
}
}
}
exclude("io.opentelemetry.javaagent", "opentelemetry-javaagent-bootstrap")
}

Expand Down
12 changes: 11 additions & 1 deletion testing-common/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,17 @@ dependencies {
testFixturesApi("com.squareup.okhttp3:logging-interceptor:4.9.0")
testFixturesImplementation("io.opentelemetry:opentelemetry-exporter-logging")
testFixturesImplementation("io.opentelemetry.javaagent:opentelemetry-javaagent-bootstrap")
testFixturesImplementation("io.opentelemetry.javaagent:opentelemetry-javaagent-tooling")
testFixturesImplementation("io.opentelemetry.javaagent:opentelemetry-javaagent-tooling") {
constraints {
testFixturesImplementation("io.opentelemetry.javaagent:opentelemetry-javaagent-tooling-java9") {
attributes {
// this transitive dependency creates classes compatible with Java 9 and up, but is only referenced in safe ways for
// java 8 by the javaagent-tooling dependency
attribute(Attribute.of("org.gradle.jvm.version", Integer::class.java), 9 as Integer)
}
}
}
}
testFixturesImplementation("io.opentelemetry.javaagent:opentelemetry-javaagent-extension-api")
testFixturesImplementation("io.opentelemetry.instrumentation:opentelemetry-instrumentation-api")
testFixturesImplementation("ch.qos.logback:logback-classic:1.4.6")
Expand Down

0 comments on commit c21cfdb

Please sign in to comment.