-
-
Notifications
You must be signed in to change notification settings - Fork 75
Conversation
Goal of cleanup was to use the `org.grails.grails-publish` plugin and use a more composition based build approach.
use GrailsStringUtils.trimToNull() instead of apache commons version
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for doing this work. Some minor comments ...
@@ -26,20 +26,20 @@ class HibernateGrailsPlugin extends Plugin { | |||
|
|||
public static final String DEFAULT_DATA_SOURCE_NAME = HibernateDatastoreSpringInitializer.DEFAULT_DATA_SOURCE_NAME | |||
|
|||
def grailsVersion = '3.1.0 > *' | |||
def grailsVersion = '7.0.0 > *' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doesn't this need to be 7.0.0-SNAPSHOT?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think so. Is it enforced somewhere?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We had several PRs to update '7.0.0 > *' to '7.0.0-SNAPSHOT > *' is the only reason I ask. I assumed it was enforced by this code https://github.com/grails/grails-core/blob/80792f89dc73f349f029c544786a7422f962859d/grails-core/src/main/groovy/grails/plugins/DefaultGrailsPluginManager.java#L398
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It can generate the following warning, but does not error. We have set some of these to 7.0.0
and some to 7.0.0-SNAPSHOT
.
Plugin [myplugin:0.1.0-rc3] may not be compatible with this application as the application Grails version is less than the plugin requires. Plugin is compatible with Grails version 3.3.10 > * but app is 4.0.0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does it even make sense to set a SNAPSHOT version here?
Goal of cleanup is to use the
org.grails.grails-publish
plugin and use a more composition based build approach.