Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
[core] No supported build listeners found with Gradle #1288
Affects PMD Version:
I don't know if this is just a configuration issue with my Gradle setup or what? No custom logging configuration has been done in Gradle. Specifying a Gradle logging level (
I was previously getting the error from #1178 but it has been replaced by this with the move to 6.6.0.
Is this something I need to configure in Gradle or is this an issue with PMD?
Running PMD through:
Nevermind, I've created a sample project myself.
Run it with
So, obviously, gradle is using https://github.com/gradle/gradle/blob/master/subprojects/core-api/src/main/java/org/gradle/api/internal/project/ant/AntLoggingAdapter.java as a build logger.
What we need to figure out is the log level, that gradle runs - if we don't do this, PMD is logging always in FINEST which will be a performance problem.
It seems, the default ant logger is deliberately removed and replaced by gradle's AntLoggingAdapter: https://github.com/gradle/gradle/blob/f001402c8b7f404c923d972f1bc524b2de7b3fcd/subprojects/core/src/main/java/org/gradle/api/internal/project/DefaultAntBuilderFactory.java#L41
The logger is actually configured here: https://github.com/gradle/gradle/blob/master/subprojects/core/src/main/java/org/gradle/api/internal/project/antbuilder/DefaultIsolatedAntBuilder.java#L190