Skip to content

Releases: tbroyer/gradle-errorprone-plugin

v5.1.0

28 Feb 15:07

Choose a tag to compare

Add support for argument files (d7e1a7a)

v5.0.0

28 Jan 21:00

Choose a tag to compare

  • Minimum Gradle version has been bumped to 7.1
  • Minimum JDK version has been bumped to 11 (even though this is not guaranteed by tests, Gradle can run with a Java 8 JVM, but must use a JDK 11 toolchain –or newer– for Java compilation)
  • isEnabled and isCompilingTestOnlyCode properties have been renamed to enabled and compilingTestOnlyCode in Kotlin DSL, to align with the core Gradle practice of not having such is prefixes in Kotlin DSL, or different property names between Groovy DSL and Kotlin DSL
  • other small changes (mostly internal, including a rewrite from Kotlin to Java), but that do not break binary compatibility for common usage, so plugins compiled against previous versions should continue to work

A note regarding the rewrite to Java, before I get questions about it: as much as I like Kotlin, I'm more familiar with Java tooling (specifically Error Prone and NullAway) and Java compatibility rules, and Android Lint is too heavyweight to my tastes.

v4.4.0

09 Jan 14:45

Choose a tag to compare

Pass -XDaddTypeAnnotationsToSymbol=true (#132, 672a7af)

It helps NullAway and has been recommended for some time, and Error Prone 2.46.0 now requires it.
It's only needed/useful/required for JDK 21 but it's harmless to pass it unconditionally to any version of JavaC.

v4.3.0

26 Jun 13:33

Choose a tag to compare

Add support for -XepAllSuggestionsAsWarnings (a9b6516)

v4.2.0

17 Apr 16:57

Choose a tag to compare

Handle configurations more lazily

This is in preparation for Gradle 8.14 which will no longer realize all configurations in the base plugin, allowing truly lazily-initialized configurations.

This change should allow the javacConfiguration to only be initialized when JDK 8 is being used, and the various annotationProcessor configurations from source sets to only be initialized when needed, e.g. when a compilation tasks for that source set is run (it's likely that the java plugin doesn't yet take advantage of this new possibility itself though)

v4.1.0

20 Oct 16:07

Choose a tag to compare

  • Pass --should-stop=ifError=FLOW to the compiler; it fixes a few issues in all versions of Error Prone, and the next version will make it mandatory (should have been the case in 2.34 already, but didn't actually apply to the JavaC plugin).
  • Add metadata to the published POM (#100)

v4.0.1

21 Jun 22:35

Choose a tag to compare

Only assign options.isFork if needed

This is a first step in preparation for some changes coming in Gradle 9.

v4.0.0

02 Jun 18:26

Choose a tag to compare

The errorprone configuration can no longer be resolved. It only exists to declare dependencies, i.e. as a dependency scope configuration.

v3.1.0

22 Apr 01:22

Choose a tag to compare

Avoid forking if Gradle already has appropriate --add-exports/--add-opens passed through the org.gradle.jvmargs property.

✨ Potentially breaking changes

When using JDK 16+, users configuring additional JVM arguments on their compile tasks and expecting a forked compiler daemon from the plugin should now explicitly configure the tasks to fork if they want their JVM arguments to be enforced in all cases.

v3.0.1

11 Oct 10:54

Choose a tag to compare

Fixes Gradle Module Metadata to target Java 8 (#73), otherwise strictly identical to 3.0.0.