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

Grails Publish Improvements #364

Open
jdaugherty opened this issue Dec 3, 2024 · 4 comments · Fixed by #375
Open

Grails Publish Improvements #364

jdaugherty opened this issue Dec 3, 2024 · 4 comments · Fixed by #375
Labels
bug Something isn't working

Comments

@jdaugherty
Copy link
Contributor

There are 2 bugs I'm tracking down:

  1. Sometimes when using the newer plugins {} method instead of apply plugin: 'org.grails.grails-publish' in a multiproject build it fails.
  2. Having a simple build file at the root and including the plugin under a subproject can cause a failure (grails-spring-security-acl). For now the fix is to include the plugin at the root dependency and apply in the subproject.
    I'll create a ticket to look at these before the 7.0.0 release.
@jdaugherty jdaugherty added the bug Something isn't working label Dec 3, 2024
@jdaugherty
Copy link
Contributor Author

These issues are not blockers and the plugin is still useful for most gradle publish scenarios. This ticket will be lower priority in the earlier Grails 7 development cycle.

@jdaugherty
Copy link
Contributor Author

If root project = project, this can fail with:

  • What went wrong:
    An exception occurred applying plugin request [id: 'org.grails.grails-publish']

Failed to apply plugin class 'io.github.gradlenexus.publishplugin.NexusPublishPlugin'.
Cannot run Project.afterEvaluate(Action) when the project is already evaluated.

@jdaugherty
Copy link
Contributor Author

Releases are required to be signed when using grailsPublish. This ticket needs to add better documentation for these requirements.

@jdaugherty
Copy link
Contributor Author

closeAndReleaseSonatypeStagingRepository is missing on subprojects when grailsPublish is applied there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Done
1 participant