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

war contents for WEB-INF/classes/META-INF/services are wrong after updating to grails-gradle-plugin 5.1.3 #100

Open
gschueler opened this issue Mar 29, 2022 · 0 comments

Comments

@gschueler
Copy link

Our app (https://github.com/rundeck/rundeck) uses grails 5.1.2, and we were upgrading to 5.1.4. We simultaneously attempted to update grails-gradle-plugin version from 5.1.1 to 5.1.3 and encountered an error:

The war file contents now are incorrect. Previously the /WEB-INF/classes/META-INF/services path contained the java service definitions. When building with grails-gradle-plugin 5.1.3, it seems the service definitions are instead placed in /META-INF/services/. Reverting to grails-gradle-plugin 5.1.2 seems to restore the correct behavior.

Using 5.1.3:

 jar tvf rundeckapp/build/libs/rundeck-4.0.0-SNAPSHOT.war  | grep META-INF/services
     0 Tue Mar 29 16:45:26 PDT 2022 META-INF/services/
   124 Tue Mar 29 16:44:00 PDT 2022 META-INF/services/org.grails.datastore.mapping.services.Service
   133 Tue Mar 29 15:58:16 PDT 2022 META-INF/services/com.dtolabs.rundeck.core.encrypter.PasswordUtilityEncrypter
   179 Tue Mar 29 15:58:16 PDT 2022 META-INF/services/org.rundeck.app.bootstrap.PreBootstrap
    47 Tue Mar 29 15:58:16 PDT 2022 META-INF/services/org.eclipse.jetty.util.security.CredentialProvider
   485 Tue Mar 29 15:58:16 PDT 2022 META-INF/services/org.rundeck.core.plugins.PluginProviderServices
     0 Tue Mar 29 16:44:00 PDT 2022 WEB-INF/classes/META-INF/services/

Reverting to 5.1.1 (or 5.1.2):

jar tvf rundeckapp/build/libs/rundeck-4.0.0-SNAPSHOT.war  | grep META-INF/services
     0 Tue Mar 29 16:40:50 PDT 2022 WEB-INF/classes/META-INF/services/
   124 Tue Mar 29 16:40:50 PDT 2022 WEB-INF/classes/META-INF/services/org.grails.datastore.mapping.services.Service
   133 Tue Mar 29 15:58:16 PDT 2022 WEB-INF/classes/META-INF/services/com.dtolabs.rundeck.core.encrypter.PasswordUtilityEncrypter
   179 Tue Mar 29 15:58:16 PDT 2022 WEB-INF/classes/META-INF/services/org.rundeck.app.bootstrap.PreBootstrap
    47 Tue Mar 29 15:58:16 PDT 2022 WEB-INF/classes/META-INF/services/org.eclipse.jetty.util.security.CredentialProvider
   485 Tue Mar 29 15:58:16 PDT 2022 WEB-INF/classes/META-INF/services/org.rundeck.core.plugins.PluginProviderServices
     
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

No branches or pull requests

1 participant