Several hours later, after upgrading Gradle and learning something new about annotation processing in both Gradle and Eclipse, I can confirm that this plugin successfully configures Eclipse project to properly invoke annotation processors.

Thanks Michael and Thomas.


On 27. 02. 2021. 14:37, Michael Conrad wrote:
I think you need to add the "goomph" plugin to your build.gradle, close the project, then run the shell script below, then open the project and do a clean.

# buildscript {
# repositories {
# //...
# }}
# dependencies {
//...
# classpath "com.diffplug.gradle:goomph:3.24.0"//Required for apt processing in Eclipse.
# }
# }

apply plugin:'com.diffplug.eclipse.apt'//Required for apt processing in Eclipse.

The shell script:

#!/bin/bash

# set-e
# set-o pipefail
#
# cd "$(dirname "$0")"
#
# rm .settings/org.eclipse.jdt.apt.core.prefs ||true
# rm .settings/org.eclipse.jdt.core.prefs ||true
# ../gradlew eclipseJdtApt
#
# rm .factorypath ||true
# ../gradlew eclipseFactorypath
#
# ../gradlew eclipseJdt


On Sat, Feb 27, 2021 at 5:06 AM Gordan Krešić <[email protected] <mailto:[email protected]>> wrote:

    Did anyone got Eclipse to invoke annotation processor from gwt-places
    module
    that should generate PlaceHistoryMapper implementations?

    I have interface that extends
    org.gwtproject.place.shared.PlaceHistoryMapper
    and is annotated with org.gwtproject.place.shared.WithTokenizers. I'm
    creating instances by instancing class with my class name suffixed with
    "Impl".

    However, it seems Eclipse doesn't run annotation processor and consequently
    can't find implementation class.

    Gradle build works fine.

    I even explicitly specified gwt-places-processor.jar in project settings in
    Eclipse (Java Compiler -> Annotation Processing -> Factory Path), but
    folder
    where generated files should be placed (.apt_generated) is still empty.

    Any ideas?

    Sidenote: it seems Eclipse has some issue with annotation processors
    classpath, because I had to add auto-common.jar
    (PlaceHistoryMapperProcessor
    is based on BasicAnnotationProcessor from auto-common) on Factory Path, too.

             -gkresic.

-- You received this message because you are subscribed to the Google
    Groups "GWT Users" group.
    To unsubscribe from this group and stop receiving emails from it, send
    an email to [email protected]
    <mailto:google-web-toolkit%[email protected]>.
    To view this discussion on the web visit
    
https://groups.google.com/d/msgid/google-web-toolkit/0ff5fa68-0de1-f84e-8298-5c6a16c19b64%40steatoda.com
    
<https://groups.google.com/d/msgid/google-web-toolkit/0ff5fa68-0de1-f84e-8298-5c6a16c19b64%40steatoda.com>.

--
You received this message because you are subscribed to the Google Groups "GWT Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected] <mailto:[email protected]>. To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit/CAFHWztzM_aSvmBC-ZxCapSvYesXHA9wvV-11gV2POdroPuw%3DsA%40mail.gmail.com <https://groups.google.com/d/msgid/google-web-toolkit/CAFHWztzM_aSvmBC-ZxCapSvYesXHA9wvV-11gV2POdroPuw%3DsA%40mail.gmail.com?utm_medium=email&utm_source=footer>.

--
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit/0e0847a0-e8f8-4cbf-933f-fd6fce25a052%40steatoda.com.

Reply via email to