Closed michaelruocco closed 4 years ago
FYI I have just updated the example project that recreates the issue to the latest version 16.15.6 (previously it was using 16.9.1) build the issue is still occurring.
I've also created a fork which has a failing unit test that recreates the issue too which is here:
https://github.com/michaelruocco/gradle-lint-plugin/commit/90f891c1634db9de2bb934aa1aa8652e47ec671d
I will have a dig around myself and see if I can see the issue. From a quick look I can see the code is expecting a jar but finding a folder, so Ill have to investigate more to find out why.
I've raise this pull request which seems to resolve the issue: https://github.com/nebula-plugins/gradle-lint-plugin/pull/316
Has been fixed now PR has been merged.
Hi,
I have just started making use of this plugin in my gradle projects and it is proving very useful for cleaning up the classpaths on my projects and it is working well.
However, I recently tried to apply it to a project which also makes use of the java-test-fixtures plugin: https://docs.gradle.org/current/userguide/java_testing.html#sec:java_test_fixtures, and in that case I ran into an error, that particular project used spring and had some other issues, so I decided to try it out on a smaller project which did not already use the test fixtures plugin, and again on that repo everything was working fine. This can be seen on the master branch of this project: https://github.com/michaelruocco/file-loader.
Adding the java-test-fixtures plugin itself does not cause an issue, but as soon as I try to move any code under the new test fixtures folder that is what causes the issue. It seems the root cause of the problem is:
Caused by: java.io.FileNotFoundException: /Users/michaelruocco/git/github/file-loader/build/classes/java/testFixtures (Is a directory)
so the code seems to be expecting the testFixtures directory to be a file instead.I have created a branch where the issue can be easily recreated by pulling the branch and then running
./gradlew lintGradle
, the branch is here available: https://github.com/michaelruocco/file-loader/tree/feature/nebula-plugin-fixtures-errorI would be happy to try to help provide more info and details if required, but hopefully this is enough to get started looking at the issue?
Stack trace details: