New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[core] No supported build listeners found with Gradle #1288

Closed
john3300 opened this Issue Aug 6, 2018 · 4 comments

Comments

Projects
None yet
2 participants
@john3300

john3300 commented Aug 6, 2018

Affects PMD Version:
6.6.0

Description:
Using Gradle I get the following log messages with every pmdMain execution:

Could not determine ant log level, no supported build listeners found. Log level is set to FINEST

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 (--debug) has no effect.

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:
Gradle 4.9

@adangel adangel self-assigned this Aug 7, 2018

@adangel

This comment has been minimized.

Member

adangel commented Aug 7, 2018

Hi @john3300 , do you have a small test project with gradle, so that we can reproduce the problem? Thanks!

@adangel

This comment has been minimized.

Member

adangel commented Aug 7, 2018

Nevermind, I've created a sample project myself.

java-application-pmd-sample.zip

Run it with ./gradlew clean pmdMain

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.
And it seems, it is the only logger, that's why we log out the warning...

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.

@adangel

This comment has been minimized.

Member

adangel commented Aug 7, 2018

@adangel adangel added this to the 6.7.0 milestone Aug 9, 2018

adangel added a commit to adangel/pmd that referenced this issue Aug 9, 2018

@adangel adangel added the has:pr label Aug 9, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment