+1, and if you don't want to impose that plugin to all users (if you're 
contributing to an open source project for example), try applying it from 
an init script dropped into your ~/.gradle/init.d/ (add the dependency to 
the buildscript, and apply the plugin to the project; see 
https://docs.gradle.org/current/dsl/org.gradle.api.invocation.Gradle.html#org.gradle.api.invocation.Gradle:projectsLoaded(groovy.lang.Closure)
 
as a hint)

On Saturday, February 27, 2021 at 2:38:34 PM UTC+1 m.conr...@gmail.com 
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ć <gordan...@steatoda.com> 
> 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 google-web-tool...@googlegroups.com.
>> To view this discussion on the web visit 
>> 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 google-web-toolkit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit/2956c7c2-c883-4fda-a72b-e552d63a9b19n%40googlegroups.com.

Reply via email to