-
Notifications
You must be signed in to change notification settings - Fork 73
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
Fix mvn variable name for checkstyle version #586
Comments
as you fix names, you can send us PR to enable your project in CI regression testing. |
Thanks for the heads up about this! Can you show me what exactly fails? I did change names but the behavior from your side should be unaffected. Of course it's possible I made a mistake, but I don't know what it is. Another change I made is the fact that all static analysis, including checkstyle, now only triggers on JDK17. Could that be the problem? What JDK does your CI use? Anyway, I'll have some time to make a PR tomorrow. |
First link in issue description is link to full log of execution. In commit to disable, you can see that we used jdk8, good to know that it should be jdk17 |
Ah ok, if I can just specify JDK17, that will be an easy fix. I'll also add a comment in my pom file to send you a PR if I ever update that to a newer JDK (probably when the next LTS rolls around). I don't know yet if Travis support JDK 17 yet though. I think I moved away from them because of slow adoption, but I'm not sure anymore. Otherwise, I'll create a Maven profile for checkstyle. |
Please look at referenced PR above, Travis support jdk17, but we need variable to work. |
I have created a PR to update the pom variable: checkstyle/checkstyle#11258 I took a look at the JDK17 PR, it seems to fail on something other than the pom variable. I'm totally willing and able to put checkstyle in a separate Maven profile so that it can run on any JDK version. I'll also update the PR to incorporate that into your scripts, if you want. Just say the word! |
no problem , do what you think is good, and just let us know (send PR) how we should run it. |
we are migrating now (I hope to be done in next few days) from jdk8 to jdk11, so the most convenient for us is openjdk11. Most ideal for us case is execution of checkstyle without any other plugins/tools or validation to let us test only checkstyle and avoid any other validation problems. |
I made pass by usage of profile and extra hack in your pom but better to make it less hacky. you might can use some variables to choose args based on jdk. |
Haha, nice use of |
I've created a profile and updated the PR. |
fixed in Checkstyle repo. |
And thank you for your patience, @romani . After all, I'm the one who completely changed my build without thinking about the consequences for you rproject :). |
Is your feature request related to a problem? Please describe.
Checkstyle CI is failing:
https://app.travis-ci.com/github/checkstyle/checkstyle/jobs/557586875#L545
Describe the solution you'd like
8d9703e#r65114830
Describe alternatives you've considered
NA
Additional context
in checkstyle repo:
mvn -e --no-transfer-progress clean install -Pno-validations
./.ci/validation.sh no-error-equalsverifier
should pass.
The text was updated successfully, but these errors were encountered: