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

Gradle + Eclipse + Annotation Processors (Share the Knowledge) #13

Open
michael-newsrx opened this issue Jun 29, 2021 · 0 comments
Open
Labels
documentation Improvements or additions to documentation enhancement New feature or request gradle

Comments

@michael-newsrx
Copy link

(Share the Knowledge)

Please update the build.gradle and settings.gradle files to enable automatic annotation processor configuration for Eclipse (or provide a documentation fragment):

settings.gradle snippet

pluginManagement {
  plugins {
    /* ... other plugins ... */
    id "com.diffplug.eclipse.apt" version "3.29.1"
  }
}

build.gradle snippets

plugins {
    id "java"
    id "eclipse-wtp"

    // Required for correct setup of APT in Eclipse
    id "com.diffplug.eclipse.apt"

    // ... other plugins
}
// Required for correct setup of APT in Eclipse
eclipseJdt.dependsOn cleanEclipseJdt, eclipseJdtApt
eclipseJdtApt.dependsOn cleanEclipseJdtApt, eclipseFactorypath
eclipseFactorypath.dependsOn cleanEclipseFactorypath
eclipse {

    // Required for correct setup of APT in Eclipse
    synchronizationTasks eclipseJdt

    project { /* ... */ }

    classpath { /* ... */ }

    jdt {
        apt { /* optional configuration entries */ }
        factorypath { /* optional configuration entries */ }
    }
}
@caalador caalador added documentation Improvements or additions to documentation enhancement New feature or request gradle labels Jun 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request gradle
Projects
None yet
Development

No branches or pull requests

2 participants