-
Notifications
You must be signed in to change notification settings - Fork 41
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
Problem with Gradle 7.5 #55
Comments
To any future reader: E.g. if you have
The important line here is |
came across this issue as well. probably related to the fact that Gradle 7.5 now runs Checkstyle tasks within a Worker and using the Toolchain support. thanks for the workaround @asodja, it works for me. I suspect that the path in which the checkstyle analysis is actually executed has changed with the move to workers, and that this line of code results in a wrong relative path: nohttp/nohttp-gradle/src/main/java/io/spring/nohttp/gradle/NoHttpCheckstylePlugin.java Line 197 in fb544d5
|
The problem is in the check itself, sort of: nohttp/nohttp-checkstyle/src/main/java/io/spring/nohttp/checkstyle/check/NoHttpCheck.java Line 171 in 61fa587
This assumes the path will be relative to the current working directory. For Gradle 7.4 and below, the current working directory seen by Checkstyle is the current working directory of the shell. In Gradle 7.5, the current working directory is always the worker directory. There's another subtle problem that It's probably safest if...
|
Apply local fix for spring-io/nohttp#55 Update io.spring.nohttp to version 0.0.11 Update com.gradle.enterprise to version 3.12.2 Update com.github.ben-manes.to versions to version 0.44.0 Update biz.aQute.bnd.builder to version 6.4.0 Remove org.gradle.test-retry as it is integrated into gradle-enterprise
Apply local fix for spring-io/nohttp#55 Update io.spring.nohttp to version 0.0.11 Update com.gradle.enterprise to version 3.12.2 Update com.github.ben-manes.to versions to version 0.44.0 Update biz.aQute.bnd.builder to version 6.4.0 Remove org.gradle.test-retry as it is integrated into gradle-enterprise
Apply local fix for spring-io/nohttp#55 Update io.spring.nohttp to version 0.0.11 Update com.gradle.enterprise to version 3.12.2 Update com.github.ben-manes.to versions to version 0.44.0 Update biz.aQute.bnd.builder to version 6.4.0 Remove org.gradle.test-retry as it is integrated into gradle-enterprise
Apply local fix for spring-io/nohttp#55 Update io.spring.nohttp to version 0.0.11 Update com.gradle.enterprise to version 3.12.3 Update com.github.ben-manes.to versions to version 0.45.0 Update biz.aQute.bnd.builder to version 6.4.0 Remove org.gradle.test-retry as it is integrated into gradle-enterprise
Apply local fix for spring-io/nohttp#55 Update io.spring.nohttp to version 0.0.11 Update com.gradle.enterprise to version 3.12.3 Update com.github.ben-manes.to versions to version 0.45.0 Update biz.aQute.bnd.builder to version 6.4.0 Remove org.gradle.test-retry as it is integrated into gradle-enterprise
The plugin seems to have a problem with Gradle 7.5 the
:checkstyleNohttp
task fails, while it worked fine with Gradle 7.4.2Full Stacktrace: https://ge.spockframework.org/s/v657tmnb3ld2u/failure?anchor=e30&expanded-stacktrace=WyIwLTEtMi0zLTQiXQ&focused-exception-line=0-1-2-3-4-0
The text was updated successfully, but these errors were encountered: