-
Notifications
You must be signed in to change notification settings - Fork 11
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
Grails 6 Completely Overcomplicated create-app build Environment #347
Comments
Since create-app generates a single-project build, the buildSrc has independent dependency version resolution and this makes managing security more complex by either adjusting versions and dependencySubstitutions in two locations or trying to configure includes that will work in both locations which can have overlapping dependencies. https://docs.gradle.org/7.6.2/userguide/plugins.html#sec:plugin_markers - support for local custom Gradle plugins in buildScript is still supported in Gradle 8.9 For a Grails single-project build, buildSrc and settings.gradle can be consolidated into:
with
|
@jamesfredley what about upcoming gradle 9 compatablility? |
@codeconsole I could not find anything on 9 in github, but 8.10 snapshots are coming from master and the plugin documentation is the same. |
Some other things we need to worry about in the current build:
|
Is there something coming in 9 that will help simplify the build? |
It's not a Gradle thing. Publishing the grails gradle plugin to the Gradle plugin repository would dramatically simplify the build further. |
What is it you are asking about when you asked about Gradle 9 compatibility? |
I was asking James if that was the motivation for why it got so complicated from 5 -> 6 and it was not. Using |
Grails 5.3.2 single file build.gradle
settings.gradle 1 line of code
became:
Grails 6.2
build.gradle
settings.gradle 16 lines of code
buildSrc/build.gradle
Dependencies went to
Why are the parenthesis added? Katlin/Groovy hybrid? Formatting should remain consistent and representative of the languoge.
I am fine with build dependencies in buildSrc/build.gradle if that is the new convention, but why is it necessary for settings.gradle?
Are dependencies needed in 3 different locations? if so, why not just go back to
buildscript {}
grails create-app
should be as simple as possible. Having an overcomplicated build environment will scare away new developers who are not gradle experts.Why historically so many dependencies?
grails-plugin-interceptors
depends ongrails-plugin-url-mappings
depends ongrails-plugin-controllers
depends ongrails-core
and a lot of other stuff.so why have
grails-plugin-url-mappings, grails-plugin-controllers, grails-core
listed redundantly if they are already going to be resolved?The text was updated successfully, but these errors were encountered: