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

fix(build): Cleanup dependency management #273

Merged
merged 2 commits into from
Jan 26, 2024

Conversation

matrei
Copy link
Contributor

@matrei matrei commented Jan 16, 2024

All dependencies were declared with the api scope which is not necessary and which leaks dependencies to downstream projects. After this change it should no longer be necessary for Grails apps to force the version of groovy-xml. Several unused dependencies have also been removed.

All dependencies were declared with the api scope which is not necessary and which leaks dependencies to downstream projects. After this change it should no longer be necessary for Grails apps to force the version of groovy-xml. Several unused dependencies have also been removed.
@matrei
Copy link
Contributor Author

matrei commented Jan 18, 2024

@puneetbehl I have now tested this pull request on https://github.com/grails/grails-functional-tests by:

  • Publishing this branch as org.grails:grails-gradle-plugin:6.1.2-SNAPSHOT to mavenLocal
  • Adding mavenLocal() as repository to all the subprojects buildscript sections in grails-functional-tests
  • Changing to grailsGradlePluginVersion=6.1.2-SNAPSHOT (was 6.1.0) in gradle.properties in grails-functional-tests

And the build runs without issues.
(The only thing I needed to change was geb/selenium/webdriver versions/config to be able to run the integration test suite it on my computer.)

I have also previously successfully built https://github.com/grails/grails-spring-security-core (which also has several grails apps for testing) with these changes. In this project there is also code in buildSrc/src/main/groovy which would not compile without forcing groovy-xml:3.0.13. With the changes in this branch the forcing can be removed.

Project depends on grails-bootstrap and grails-gradle-model.
These were previously transitive dependencies pulled in by grails-shell
but as classes from them are used in the project they should be declared.
@puneetbehl puneetbehl merged commit 42ba793 into grails:6.1.x Jan 26, 2024
4 checks passed
@matrei matrei deleted the matrei/fix-dependencies branch January 26, 2024 22:36
matrei added a commit to matrei/grails-forge that referenced this pull request Feb 1, 2024
This configuration is no longer necessary as
the groovy-xml version no longer leaks from
the gradle-gradle-plugin (via grails-bootstrap
and grails-shell).

Related: grails/grails-gradle-plugin#273
puneetbehl pushed a commit to grails/grails-forge that referenced this pull request Feb 2, 2024
This configuration is no longer necessary as
the groovy-xml version no longer leaks from
the gradle-gradle-plugin (via grails-bootstrap
and grails-shell).

Related: grails/grails-gradle-plugin#273
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.

2 participants