Skip to content

Commit

Permalink
Add comment explaining need for Java 11
Browse files Browse the repository at this point in the history
  • Loading branch information
psx95 committed Jun 24, 2024
1 parent a8019b3 commit c04a59f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions e2e-test-server/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ application {
mainClass.set('com.google.cloud.opentelemetry.endtoend.Server')
}

// Java 11 required to build this module since it has a dependency on Cloud Functions.
// Cloud Functions (Gen2) have Java 11 minimum requirement.
afterEvaluate {
tasks.named("compileJava"){
// This is only possible since the toolchain guarantees Java 11 presence.
Expand Down
1 change: 1 addition & 0 deletions examples/otlp-spring/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ repositories {
mavenCentral()
}

// Uses built-in HTTP client and WebSocket APIs introduced in Java 11.
afterEvaluate {
tasks.named("compileJava"){
// This is only possible since the toolchain guarantees Java 11 presence.
Expand Down

0 comments on commit c04a59f

Please sign in to comment.