Unable to build SDK with JDK 8 or 11? #6644
-
I'm new to OpenTelemetry and Gradle. I'm trying to build the sdk with a container with openjdk-8 install but I'm unable to build it. From the versioning, it seems like all artifacts support Java language level 8 or higher. However when I try to build just the sdk with openjdk-8 using
When I try to build it with openjdk11, I still get the same error message:
However, I'm able to successfully build it with jdk17. So does OTel Java SDK only support jdk17 or above? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Artifacts from So java 8+ is required to consume project artifacts, java 17 is required to build from source locally. |
Beta Was this translation helpful? Give feedback.
Artifacts from
opentelemetry-java
are compile / published with support for java8+. However, the building the project uses various gradle features which require later versions of java, and thus requires java 17.So java 8+ is required to consume project artifacts, java 17 is required to build from source locally.