mfuerstenau / gradle-buildconfig-plugin

A BuildConfig plugin for Gradle java projects
MIT License
173 stars 20 forks source link

Please add @Generated("gradle-buildconfig-plugin") #14

Open sdavids opened 7 years ago

sdavids commented 7 years ago

The generated class could be annotated with @Generated.

Tools such as errorprone can be configured to ignore generated classes.

mfuerstenau commented 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.

sdavids commented 7 years ago

errorprone "replaces" javac therefore "your" compilation also goes through errorprone.

sdavids commented 7 years ago
plugins {
  id 'net.ltgt.errorprone' version '0.0.11'
}

apply plugin: 'net.ltgt.errorprone'