Bump org.apache.rat:apache-rat-plugin from 0.16.1 to 0.18#574
Bump org.apache.rat:apache-rat-plugin from 0.16.1 to 0.18#574dependabot[bot] wants to merge 1 commit into
Conversation
slawekjaranowski
left a comment
There was a problem hiding this comment.
To check .... 0.18 requires JDK 17+
https://issues.apache.org/jira/browse/RAT-478
https://creadur.apache.org/rat/changes.html#a0.18
|
@slawekjaranowski if I'm not too mistaken you may run with older JDKs, but any animal-sniffer-runs will fail as we rely on dependencies requiring >=JDK17. As a compromise Creadur 0.17 could be used within the ASF parent. |
slawekjaranowski
left a comment
There was a problem hiding this comment.
Last time we revert updates to 0.17
|
I would like to update to 0.18, in ASF parent we don't have any execution neither configuration, we only manage a version. Child projects should manage executing in proper JDK, eg by profiles if needed. |
This comment was marked as resolved.
This comment was marked as resolved.
Bumps org.apache.rat:apache-rat-plugin from 0.16.1 to 0.18. --- updated-dependencies: - dependency-name: org.apache.rat:apache-rat-plugin dependency-version: '0.18' dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
5b67328 to
eb5843f
Compare
|
Agree, better to use latest version |
|
ctubbsii
left a comment
There was a problem hiding this comment.
If I'm understanding this correctly, executing this plugin requires JDK 17, but the POM specifies a minimalJavaBuildVersion using the javaVersion property, which defaults to 8.
You can't use rat 0.18 with the default settings.
I think upstream creadur/rat needs to fix this before it is updated in the Apache parent POM. They should set a minimalJavaBuildVersion to 17, and set maven.compiler.release to 8 instead of setting maven.compiler.source and maven.compiler.target to 17. It seems that was the intent with their use of the animal sniffer plugin to enforce that it works with Java 8, but they couldn't figure out how to get that to work when building with newer java versions, or something, so they opened mojohaus/animal-sniffer#316 about it and built 0.18 in a way that requires Java 17. I commented on that issue explaining how it needs to be fixed.
I recommend rat remove the animal sniffer plugin, fix their build to target Java 8 release while using a build JDK of 17 and the release flag, and then re-release as 0.19, and then update the Apache parent POM to 0.19 with the fixed rat plugin.
Also, there was another PR against this project that tried to bump to 0.18 (and a redundant issue), which also removed the commons-lang3 dependency override, which this PR does not do.
ctubbsii
left a comment
There was a problem hiding this comment.
https://issues.apache.org/jira/browse/RAT-478 and other patches in 0.18 have already gone down the path of strictly requiring at least Java 11 at runtime (tika dependencies require Java 11) and has already made code changes that only compile with Java 17 (pattern matching instanceof). So, it's a bit tricky to have a RAT version that supports the current default Java version in this parent POM, unless RAT is willing to revert some things.
It will not be possible to update rat in this POM unless the minimalJavaBuildVersion is also bumped to 17. That's the path I would recommend. The minimal is currently set to the same as javaVersion, but it doesn't need to be.
| <!-- java version used to to set maven.compiler.* --> | ||
| <javaVersion>8</javaVersion> | ||
| <minimalMavenBuildVersion>3.9</minimalMavenBuildVersion> | ||
| <minimalJavaBuildVersion>${javaVersion}</minimalJavaBuildVersion> |
There was a problem hiding this comment.
| <minimalJavaBuildVersion>17</minimalJavaBuildVersion> |
| <dependencies> | ||
| <!-- avoid - WARNING: Use of the three-letter time zone ID ... on JDK 25 --> | ||
| <!-- https://issues.apache.org/jira/browse/RAT-490 --> | ||
| <!-- TODO remove with next version of RAT --> | ||
| <dependency> | ||
| <groupId>org.apache.commons</groupId> | ||
| <artifactId>commons-lang3</artifactId> | ||
| <version>3.20.0</version> | ||
| </dependency> | ||
| </dependencies> |
Bumps org.apache.rat:apache-rat-plugin from 0.16.1 to 0.18.