Open sdavids opened 7 years ago
@sdavids Can do. But @Generated has @Retention(value=SOURCE)
, and I compile the buildconfig class and THEN add it as library/dependency. So the annotation no longer exists.
errorprone "replaces" javac therefore "your" compilation also goes through errorprone.
plugins {
id 'net.ltgt.errorprone' version '0.0.11'
}
apply plugin: 'net.ltgt.errorprone'
The generated class could be annotated with @Generated.
Tools such as errorprone can be configured to ignore generated classes.