Build of Grails project swallows assets using Gradle

I have a running Grails 3.3.x application using the client-dependencies plugin.

When building (clean and afterwards assemble or bootRepackage) within IntelliJ everything works fine and I am getting a big jar containing all the files. This jar also contains application.js and application.css. These two files are a result of the standard asset-pipelin plugin.

When doing the same in TeamCity I also get a big jar but not as big as the other one. This jar also contains many javascript and stylesheet files handled by the mentioned plugin but the two application files are missing.

Why? I don't know what to do anymore.

Thank you very much for your help.

0
1 comment

Hi Bernd,

I'm not all too familiar with grails, but I can recommend two things:
-Examine the build log from within teamcity and the gradle log from idea. You might find differences there, maybe tasks aren't being run or the gradle version is different (using the wrapper helps here)
-Follow the troubleshooting steps here: https://confluence.jetbrains.com/display/TCD18/Common+Problems#CommonProblems-BuildworkslocallybutfailsormisbehavesinTeamCity

0

Please sign in to leave a comment.