Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
sdavids opened this issue Feb 22, 2017 · 3 comments
Open

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

sdavids opened this issue Feb 22, 2017 · 3 comments

Comments

@sdavids
Copy link

sdavids commented Feb 22, 2017

The generated class could be annotated with @Generated.

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

@mfuerstenau
Copy link
Owner

@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
Copy link
Author

sdavids commented Mar 25, 2017

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

@sdavids
Copy link
Author

sdavids commented Sep 22, 2017

plugins {
  id 'net.ltgt.errorprone' version '0.0.11'
}

apply plugin: 'net.ltgt.errorprone'

jfcameron added a commit to jfcameron/gradle-buildconfig-plugin that referenced this issue Jul 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants