Skip to content
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

Workaround for excessive Checkstyle output fails for Gradle 7 #54

Open
AdamCarroll opened this issue Mar 21, 2021 · 2 comments
Open

Workaround for excessive Checkstyle output fails for Gradle 7 #54

AdamCarroll opened this issue Mar 21, 2021 · 2 comments

Comments

@AdamCarroll
Copy link
Member

The workaround to stop Checkstyle from producing exceesive logging (#11) fails under Gradle 7.

As a temporary measure, I've commented it out:

VocabHunter/build.gradle

Lines 65 to 68 in 749432e

// TODO Restore this for Gradle 7.0
// [checkstyleMain, checkstyleTest].each { task ->
// task.logging.setLevel(LogLevel.LIFECYCLE)
// }

@AdamCarroll
Copy link
Member Author

For the record, here's the error:

$ ./gradlew clean build
Starting a Gradle Daemon, 1 busy Daemon could not be reused, use --status for details

FAILURE: Build failed with an exception.

* Where:
Build file '/Users/adam/Documents/IntelliJ/VocabHunter/build.gradle' line: 67

* What went wrong:
A problem occurred evaluating root project 'vocabhunter'.
> No signature of method: org.gradle.internal.logging.services.DefaultLoggingManager.setLevel() is applicable for argument types: (org.gradle.api.logging.LogLevel) values: [LIFECYCLE]
  Possible solutions: getLevel()

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

@AdamCarroll
Copy link
Member Author

I've removed the commented out code to clean things up ready for the release

@AdamCarroll AdamCarroll removed this from the Switch to JDK 16 milestone Jun 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant