You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@grails.apache.org by "gschueler (via GitHub)" <gi...@apache.org> on 2025/04/15 16:17:53 UTC
[I] war contents for WEB-INF/classes/META-INF/services are wrong after updating to grails-gradle-plugin 5.1.3 [grails-core]
gschueler opened a new issue, #14147:
URL: https://github.com/apache/grails-core/issues/14147
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
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@grails.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org