Skip to content
This repository has been archived by the owner on Jan 27, 2020. It is now read-only.

Can Gradle 4.9 be used to automatically configure APT when using Buildship? #86

Closed
ChristianCiach opened this issue Jul 11, 2018 · 1 comment
Labels

Comments

@ChristianCiach
Copy link

This may be wishful thinking, but I really want to avoid executing "eclipseFactorypath", "eclipseJdtApt" and "eclipseJdt" every time when importing projects into Eclipse or when the factorypath changes. (There is no way I can convince my colleages to do this).

I've just read the Gradle 4.9 rc-1 release notes, where it states:

The EclipseClasspath and EclipseProject tasks both accept beforeMerged and whenMerged closures, for advanced Eclipse-specific customisation.

Previous versions of Gradle did not execute the closures defined in EclipseProject when invoked from Buildship (only those in EclipseClasspath). Now Gradle executes them both, similarly to when invoked from the command-line.

Can this be used to avoid the need to manually execute said tasks?

@ChristianCiach ChristianCiach changed the title Can gradle 4.9 be used to automatically configure APT when using Buildship? Can Gradle 4.9 be used to automatically configure APT when using Buildship? Jul 11, 2018
@tbroyer
Copy link
Owner

tbroyer commented Jul 11, 2018

Can this be used to avoid the need to manually execute said tasks?

No. Those tasks (and their closures) only deal with the .project and .classpath files; eclipseFactorypath, eclipseJdt and eclipseJdtApt all deal with different configuration files.

Follow eclipse-buildship/buildship#329 and gradle/gradle#2300 for better Buildship and Gradle integration of annotation processors.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants