Running IntelliJ Inspections via Gradle/TeamCity

I've been unable to run TeamCity Inspections for a Gradle project, unless I also check in the .idea directory and *.iml files.  Is it possible to do so?  The documentation is a bit unclear (to me, at least) as to what is supported.  I've also asked the question here: http://stackoverflow.com/q/33882192/2895277.  Any help is much appreciated; I'll be happy to provide more details and/or a sample project if that would be helpful.

5 comments

Hello Chad,

Basically, you should not need the project files for Idea to run inspections on Gradle-based project.

Please give us more details about the issue:
* What version of TeamCity do you use?
* What version of Gradle is used?
* Do you have Gradle wrapper set up?

0

TeamCity 9.1.4 and Gradle 2.8.  I am using  the Gradle wrapper.

0

It should definetly work with this combination.

Would you mind attaching a zipped build log with a _failure_ sample?
0

Here is a zip of a test project I created (test-project.zip), and a build log from an attempt to run inspections on this project (test_project_test_commit_10.log.zip).



Attachment(s):
test_project_test_commit_10.log.zip
test-project.zip
0

Hello Chald,

You are facing a known issue https://youtrack.jetbrains.com/issue/TW-42485
we plan to deliver the fix in next bugfix release 9.1.5 along with https://youtrack.jetbrains.com/issue/TW-43303

Unfortunately there is no simple workaround at the moment.

0

Please sign in to leave a comment.