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

APT not takein into account while importing project #486

Closed
eximius313 opened this issue Jun 5, 2017 · 1 comment
Closed

APT not takein into account while importing project #486

eximius313 opened this issue Jun 5, 2017 · 1 comment

Comments

@eximius313
Copy link

I have Gradle project that uses apt plugin (apply plugin: 'net.ltgt.apt')

When I use ./gradlew eclipse task, it recognizes and creates APT bindings:

:eclipseClasspath
:eclipseJdt
:eclipseProject
:eclipse
:backend:eclipseClasspath
:backend:eclipseFactorypath
:backend:eclipseJdt
:backend:eclipseJdtApt
:backend:eclipseProject
:backend:eclipse

creates .factorypath file:

<factorypath>
  <factorypathentry kind='EXTJAR' id='C:\Users\U\.gradle\caches\modules-2\files-2.1\org.projectlombok\lombok\1.16.16\245b50f714bf89ed7659266ace12f9e509d13551\lombok-1.16.16.jar' enabled='true' runInBatchMode='false' />
  <factorypathentry kind='EXTJAR' id='C:\Users\U\.gradle\caches\modules-2\files-2.1\org.mapstruct\mapstruct-processor\1.2.0.Beta2\5eb4495e9e78d7eef8c5a5a90813ee2edfed1fdc\mapstruct-processor-1.2.0.Beta2.jar' enabled='true' runInBatchMode='false' />
</factorypath>

and .settings/org.eclipse.jdt.apt.core.prefs

eclipse.preferences.version=1
org.eclipse.jdt.apt.aptEnabled=true
org.eclipse.jdt.apt.genSrcDir=.apt_generated
org.eclipse.jdt.apt.reconcileEnabled=true

but when I import the project using Buildship - APT is just ignored

@oehme
Copy link
Member

oehme commented Jun 6, 2017

This is a combination of #267 and #265. If these two were implemented, then the APT plugin could tell Gradle that it needs some additional preferences and that it also needs to generate some additional file. Right now this information is opaque to Buildship. We can't just run the eclipse task, because that would break some of Buildship's features like a portable classpath container.

I'm closing this as a duplicate of #267 and #265. Please add your vote to these two.

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

No branches or pull requests

3 participants