Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Project cleanup #992

Merged
merged 7 commits into from
Mar 7, 2025
Merged

Project cleanup #992

merged 7 commits into from
Mar 7, 2025

Conversation

matrei
Copy link
Contributor

@matrei matrei commented Mar 7, 2025

Goal of cleanup is to use the org.grails.grails-publish plugin and use a more composition based build approach.

Goal of cleanup was to use the `org.grails.grails-publish` plugin
and use a more composition based build approach.
@matrei matrei changed the title chore: major project cleanup Project cleanup Mar 7, 2025
use GrailsStringUtils.trimToNull() instead of apache commons version
Copy link
Contributor

@jdaugherty jdaugherty left a 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 > *'
Copy link
Contributor

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?

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 don't think so. Is it enforced somewhere?

Copy link
Contributor

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

Copy link
Contributor

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

Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor Author

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?

@matrei matrei merged commit 35606cd into 9.0.x Mar 7, 2025
7 checks passed
@matrei matrei deleted the matrei/project-cleanup branch March 7, 2025 23:01
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants