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

Update Gradle install documentation for 4.7+ according to new annotationProcessor configuration #1734

Open
coderatchet opened this issue Jun 20, 2018 · 2 comments

Comments

@coderatchet
Copy link

The gradle installation documentation does not include the new gradle 4.7+ annotation processor configuration instructions:

The following is recommended when configuring a gradle project:

ext['lombok.version'] = 1.16.22

dependencies {
  annotationProcessor 'org.projectlombok:lombok:${lombok.version}'
  implementation 'org.projectlombok:lombok:${lombok.version}'

  // if using lombok in test classes
  testAnnotationProcessor 'org.projectlombok:lombok:${lombok.version}'
  testImplementation 'org.projectlombok:lombok:${lombok.version}'

  // if using lombok in any other source set configuration
  // <sourceset>AnnotationProcessor 'org.projectlombok:lombok:${lombok.version}'
  // <sourceset>Implementation 'org.projectlombok:lombok:${lombok.version}'
}

Here is the Gradle documentation on including annotationProcessors on the compile classpath

Here is the stackoverflow question showing the problem I encountered when configuring lombok.

@larsgrefer
Copy link
Contributor

larsgrefer commented Jun 21, 2018

I've created a simple Gradle plugin which does this: https://plugins.gradle.org/plugin/io.freefair.lombok

apply plugin: "io.freefair.lombok"
lombok.version = "1.18.0"

@soberich
Copy link

soberich commented Jun 23, 2018

@coderatchet
cool, you're right.
That's a big one. I thought you messed up with implementation <=> compileOnly

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

3 participants