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

7.x - Upgrade to Gradle 8 - set source/target compatibility to Java 17 #305

Closed
codeconsole opened this issue Jul 18, 2024 · 3 comments
Closed

Comments

@codeconsole
Copy link
Contributor

codeconsole commented Jul 18, 2024

The 7.x branch should be running on Gradle 8.x with a min source/target compatibility of Java 17

https://docs.gradle.org/current/userguide/compatibility.html

https://github.com/orgs/grails/projects/3/views/2?pane=issue&itemId=71425178

@codeconsole
Copy link
Contributor Author

#290

@codeconsole
Copy link
Contributor Author

Installing: gradle 8.5
Done installing!

Do you want gradle 8.5 to be set as default? (Y/n): n
grails-gradle-plugin % gradle clean assemble 

> Task :compileGroovy FAILED
startup failed:
/grails-gradle-plugin/src/main/groovy/org/grails/gradle/plugin/web/gsp/GspCompileOptions.groovy: 21: You cannot create an instance from the abstract class 'org.gradle.api.tasks.compile.GroovyForkOptions'.
 @ line 21, column 37.
       GroovyForkOptions forkOptions = new GroovyForkOptions()
                                       ^

1 error


FAILURE: Build failed with an exception.

@davydotcom
Copy link
Contributor

GroovyForkOptions is now an abstract class i fixed this already but have a new error (not pushed yet)

> Unrecoverable compilation error: startup failed:
  General error during canonicalization: java.lang.NoClassDefFoundError: org.springframework.boot.loader.tools.LoaderImplementation
  
  java.lang.RuntimeException: java.lang.NoClassDefFoundError: org.springframework.boot.loader.tools.LoaderImplementation

I have this fixed on another machine i'll add the missing dependency in a bit to finish this part

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

2 participants