[OBSOLETE] Gradle plugin making it easier/safer to use Java annotation processors
net.ltgt.apt
plugin is a no-op in Gradle 5.2 (except for the aptOptions
DSL)eclipse.jdt.apt.gentestSrcDir
(#95, ce474d51a22e0faff5c9fbe160768fc9a473f400)Mission accomplished!
This version is likely to be the last release, as Gradle 5.2 and IntelliJ IDEA 2019.1 will make this plugin redundant. It's expected that the plugin will continue to work in the foreseeable future with other configurations, and combinations of Gradle and IDE versions.
sourceSet.output.generatedSourcesDirs
(6e375fe)Small fixes to net.ltgt.apt-eclipse
(e.g. #90)
Tasks are configured lazily in Gradle 4.9+ (5e8b10f76d13584ed54f183c771fbd10ec3036a0, 432509ec85d1ab49296d4f9b21fad876523c6a8a)
Same as v0.16 except without the “Add generated sources to source sets' allJava and allSource” change, as it broke too many things (see #78 and #85)
WARNING: this release breaks many other plugins, as well as IDE integration; see #78 and #85. Please use v0.17 instead.
allJava
and allSource
, though only in Gradle ≥ 3.2, earlier versions are missing features to properly support it (#78, aedc842a6d19e6f8dd0c9e650cddf13fb4a68118 and 644da5f2030bcc23a8c1d2ff51bbff181a81e084)CommandLineArgumentProvider
used in options.compilerArgumentProviders
in Gradle ≥ 4.6, for better traceability in Gradle 4.7 (68eaca2e9f17da2b58d6b9774585fa1a5b696f45)SourceSet
's annotationProcessorPath
); if you're using Gradle 4.6, you're encouraged to use v0.15.<sourceSet>Apt
configurations are deprecated, replaced with <sourceSet>AnnotationProcessor
(this also applies to source sets' processorpath
, renamed to annotationProcessorPath
)aptOptions.processorpath
is deprecated when used with Gradle 3.4+, users should migrate to the built-in options.annotationProcessorPath
generatedSourcesDestinationDir
is deprecated when used with Gradle 4.3+, users should migrate to the built-in options.annotationProcessorGeneratedSourcesDirectory
gradle idea
or gradle eclipseFactorypath
) should now trigger builds of project dependencies (#77)src/main/java
and src/main/groovy
), unless they are reconfigured to use distinct generated sources destination directories.idea { module { apt { … } } }
and idea { project { configureAnnotationProcessing } } }
DSLs