Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Smithy Codegen: gradlew breaks on Java version 14, resulting in codegen not working. #187

Closed
alexforsyth opened this issue Jun 9, 2020 · 3 comments

Comments

@alexforsyth
Copy link
Contributor

Issue: Gradle does not work on java 14, resulting in the codegen quitting with an exception and not generating code.

Reproduction:
Using the newest version of Java (14), and gradle 6.5 running

./gradlew :sdk-codegen:build

from the codegen directory in aws-js-sdk-v3 results in error:

"Could not initialize class org.codehaus.groovy.runtime.InvokerHelper"

This issue is also documented with gradle here: gradle/gradle#12599, however the suggested fix if upgrading to 6.3+ does not clear the error. Downgrading to Java 11 fixes the issue.

@jmlavoier
Copy link

I had the same issue, I downgraded my Java to version 11 and started to work.

@deepxcode
Copy link

deepxcode commented Oct 18, 2020

If you are working on an Android Application, Just go to the root folder of your android project, open gradle-wrapper.properties, and then
replace the distributionUrl with the line below

distributionUrl=https\://services.gradle.org/distributions/gradle-6.3-all.zip

This thing Worked for my project, Maybe It will help you too.
( You can refer to this link: https://stackoverflow.com/a/64411239/12004934

@mtdowling
Copy link
Member

We've since upgraded to Gradle 7, which seems to have resolved this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants