TeamCity doesn't copy necessary resources to build project

Answered

I have a class right now that depends on a resource bundle buried under src/resources/org.company.project/messages/[resource bundle].

But TeamCity can't seem to find the bundle when it builds the project or copy it over into it's build directory, and my class that depends on the bundle throws an exception, causing the whole build to fail.

The project builds just fine in Intellij and it has no problem building the resources with the rest of my classes.

1 comment

The problem was resolved via email. The solution is:

Gradle related files are defined in .idea/libraries/Gradle__*, these files are computer specific and are regenerated by IDEA.
To workaround the problem, you can use Gradle IDEA plugin: https://docs.gradle.org/current/userguide/idea_plugin.html. It generates files that are used by IntelliJ IDEA.
To use it replace the first build step with Gradle build step with task "idea": 
Thought the recommended approach is to use Gradle runner. I think you'd better ask at https://discuss.gradle.org/ how to deal with running tests with Gradle.

0

Please sign in to leave a comment.