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

dependency cleanup with grails-bom #411

Merged
merged 13 commits into from
Oct 26, 2024
Merged

Conversation

jamesfredley
Copy link
Contributor

@jamesfredley jamesfredley commented Oct 23, 2024

This PR uses Gradle Release Flag instead of Java Toolchain to provide more control over the version of Java. sourceCompatibility is deprecated and marked for removal in Gradle 9. https://docs.gradle.org/current/userguide/building_java_projects.html#sec:compiling_with_release

    compileJava.options.release = 17

bumps Gradle down to 8.6 in the project and the generated Grails app until there is a resolution for grails/grails-testing-support#443

implementation platform has to be applied to buildSrc also until #406

@jamesfredley
Copy link
Contributor Author

This PR addresses the current breakage on Grails apps generated on https://start.grails.org/

Copy link
Contributor

@matrei matrei left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe there are also some version declarations that can be removed in grails-versions.properties and pom.xml.

@@ -105,24 +105,29 @@ public void apply(GeneratorContext generatorContext) {
.artifactId("geb")
.test());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be included as integrationTestImplementation testFixtures('org.grails.plugins:geb')

However, to be able to run the create-functional-test command (which has not been upgraded to a Grails 6 GrailsApplicationCommand), I'm not yet sure what needs to be put where. Is there any point in rewriting the create-functional-test command as a GrailsApplicationCommand now that the grails-shell cli is back?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll test this with a generated app and then make the changes in forge. It was not loading the transitive geb-spock dependency as is, but it wasn't using integrationTestImplementation testFixtures

Copy link
Contributor Author

@jamesfredley jamesfredley Oct 26, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"integrationTestImplementation testFixtures('org.grails.plugins:geb' worked great and that scope is now an option in forge.

I think we should hold off on command conversions.

@jamesfredley jamesfredley requested a review from matrei October 26, 2024 02:34
@jamesfredley jamesfredley merged commit 60ba6ae into 7.0.x Oct 26, 2024
11 checks passed
@jamesfredley jamesfredley deleted the dependency-cleanup-grails-bom branch October 26, 2024 14:07
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

Successfully merging this pull request may close these issues.

3 participants