google/dagger

After updating from 2.51.1 to 2.52, my GWT application does not compile

natros opened this issue · 14 comments

Hi,

After updating from 2.51.1 to 2.52, my GWT application does not compile. It fails with the following error:

Tracing compile failure path for type 'dagger.internal.Provider'
      [ERROR] Errors in 'jar:file:/Users/fsousa/.gradle/caches/modules-2/files-2.1/com.google.dagger/dagger/2.52/12ad96b4d53d511ac21cc2c19d77aa76dd388691/dagger-2.52-sources.jar!/dagger/internal/Provider.java'
         [ERROR] Line 23: No source code is available for type jakarta.inject.Provider<T>; did you forget to inherit a required module?

I think the problem might be related to the fact that 2.52 does not provide the source dependency of jakarta.inject-api in the com.google.dagger:dagger-gwt:2.52.Additionally, it may require a jakarta/inject/Inject.gwt.xml and changes to dagger/Dagger.gwt.xml

Thanks.