You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the "Refresh Gradle Project" command is executed, the Processor options specified in build.gradle are displayed on the Annotation Processing screen.
Current Behavior
When the "Refresh Gradle Project" command is executed, the Processor options specified in build.gradle are reflected in the .settings/org.eclipse.jdt.apt.core.prefs file, but they are not reflected on the Annotation Processing screen.
Context
I want to use synchronizationTasks to ensure that all settings related to annotation processing are reflected from Gradle to Eclipse.
Steps to Reproduce
Create a Gradle Project.
Replace the contents of build.gradle with the following:
plugins {
id 'java-library'
id 'com.diffplug.eclipse.apt' version '3.44.0'
}
compileJava {
aptOptions {
processorArgs = ['myOption' : 'hello']
}
}
eclipse {
synchronizationTasks 'cleanEclipse', 'eclipse'
}
Execute the "Refresh Gradle Project" command.
0pen the .settings/org.eclipse.jdt.apt.core.prefs file and verify that the processor options specified in build.gradle are reflected in it:
In your Gradle script the configuration of the JDT Annotation Processing (APT) is done by the Gradle plugin com.diffplug.eclipse.apt and not Eclipse Buildship. Any problems with this plugin should be reported here: https://github.com/diffplug/goomph/issues
The problem seems to be an unsupported combination of using Buildship (e.g. Refresh Gradle Project) and standalone project generation (cleanEclipse, eclipse).
Using the standalone project generator you could try these steps:
Remove the block eclipse (with synchronizationTasks) from your build.gradle.
Run ./gradlew eclipse
Import the project into Eclipse: File > Import... > General > Existing Projects into Workspace (notExisting Gradle Project)
Now the configured processor option should be shown in the Annotation Processing dialog.
Expected Behavior
When the "Refresh Gradle Project" command is executed, the Processor options specified in build.gradle are displayed on the Annotation Processing screen.
Current Behavior
When the "Refresh Gradle Project" command is executed, the Processor options specified in build.gradle are reflected in the .settings/org.eclipse.jdt.apt.core.prefs file, but they are not reflected on the Annotation Processing screen.
Context
I want to use synchronizationTasks to ensure that all settings related to annotation processing are reflected from Gradle to Eclipse.
Steps to Reproduce
You will notice that the processorOptions remain empty in the Annotation Processing screen.
Your Environment
The text was updated successfully, but these errors were encountered: