specifying java version for smithy generator #706
Unanswered
micro-jumbo
asked this question in
Q&A
Replies: 1 comment 2 replies
-
Hey Cyprian! The Type Safe API code generation should be compatible with Java 11+ 😄 It looks here like you're using Smithy codegen... I'm not super familiar with that just yet as we're still figuring out how we start to add that support natively in Type Safe API, but I wonder if it's the Gradle JDK version that needs to be specified here? Perhaps you could try adding the following to your java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(11))
}
} Happy to have a chat if it helps - feel free to ping me on the https://cdk.dev/ slack! Cheers, |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I have a model defined in smithy and I'm trying to build it using github actions. On my local machine everything works fine, but when run as an actions I get the following error:
I'm guessing that's because github action runs using Java 11, but smithy libraries are built for Java 17. Where can I set the java version to be using by the generator?
Beta Was this translation helpful? Give feedback.
All reactions