Skip to content
This repository has been archived by the owner on Dec 7, 2020. It is now read-only.

Commit

Permalink
fix compatibility open-telemetry#3
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin Muskalla committed Nov 27, 2020
1 parent 2333223 commit 006906f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
4 changes: 3 additions & 1 deletion gradle/java.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,9 @@ tasks.withType(JavaCompile) {
// options.release = project.ext.release.majorVersion.toInteger()
//}
tasks.withType(ScalaCompile) {
options.release = project.ext.release.majorVersion.toInteger()
// options.release = project.ext.release.majorVersion.toInteger()
sourceCompatibility = JavaVersion.toVersion(project.ext.release)
targetCompatibility = JavaVersion.toVersion(project.ext.release)
}

apply plugin: "eclipse"
Expand Down
10 changes: 5 additions & 5 deletions instrumentation/rmi/rmi.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ test.dependsOn "rmic"
// We cannot use "--release" javac option here because that will forbid importing "sun.rmi" package.
// We also can't seem to use the toolchain without the "--release" option. So disable everything.

java {
toolchain {
languageVersion = null
}
}
//java {
// toolchain {
// languageVersion = null
// }
//}

tasks.withType(JavaCompile) {
options.release = null
Expand Down

0 comments on commit 006906f

Please sign in to comment.