Skip to content

Bump org.apache.rat:apache-rat-plugin from 0.16.1 to 0.18#574

Open
dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/maven/org.apache.rat-apache-rat-plugin-0.18
Open

Bump org.apache.rat:apache-rat-plugin from 0.16.1 to 0.18#574
dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/maven/org.apache.rat-apache-rat-plugin-0.18

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Mar 23, 2026

Copy link
Copy Markdown
Contributor

Bumps org.apache.rat:apache-rat-plugin from 0.16.1 to 0.18.

@dependabot dependabot Bot added dependencies Pull requests that update a dependency file java Pull requests that update Java code labels Mar 23, 2026

@slawekjaranowski slawekjaranowski left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@slawekjaranowski slawekjaranowski marked this pull request as draft May 5, 2026 21:57
@ottlinger

Copy link
Copy Markdown

@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.

@slachiewicz slachiewicz changed the title Bump org.apache.rat:apache-rat-plugin from 0.16.1 to 0.18 Bump org.apache.rat:apache-rat-plugin from 0.16.1 to 0.17 Jun 14, 2026
@slachiewicz slachiewicz marked this pull request as ready for review June 14, 2026 20:16

@slawekjaranowski slawekjaranowski left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Last time we revert updates to 0.17

@slawekjaranowski

Copy link
Copy Markdown
Member

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.

@slachiewicz

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>
@dependabot dependabot Bot changed the title Bump org.apache.rat:apache-rat-plugin from 0.16.1 to 0.17 Bump org.apache.rat:apache-rat-plugin from 0.16.1 to 0.18 Jun 27, 2026
@dependabot dependabot Bot force-pushed the dependabot/maven/org.apache.rat-apache-rat-plugin-0.18 branch from 5b67328 to eb5843f Compare June 27, 2026 12:39
@slachiewicz

Copy link
Copy Markdown
Member

Agree, better to use latest version

@slachiewicz

slachiewicz commented Jun 29, 2026

Copy link
Copy Markdown
Member
[INFO] --- apache-rat:0.18:check (rat-check) @ mvnd-build-maven-plugin ---
[WARNING] Use of deprecated option 'exclude'. Deprecated for removal since 0.17: Use <inputExclude> instead.

[WARNING]  * org.apache.rat:apache-rat-plugin:0.18
[WARNING]   Declared at location(s):
[WARNING]    * org.apache.maven:maven-parent:49 (/Users/xxx/.m2/repository/org/apache/maven/maven-parent/49/maven-parent-49.pom) @ line 1328
[WARNING]   Mojo INTERNAL issue(s):
[WARNING]    * Mojo apache-rat:check (org.apache.rat.mp.RatCheckMojo)
[WARNING]      - Parameter 'excludes' is deprecated: Deprecated for removal since 0.17: Use <inputExclude> instead.

@ctubbsii ctubbsii left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

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

Labels

dependencies Pull requests that update a dependency file java Pull requests that update Java code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants