Struggling to use Dagger 2 with groovy-eclipse-compiler

239 views
Skip to first unread message

Alex Kouzemtchenko

unread,
Feb 13, 2015, 4:37:43 PM2/13/15
to dagger-...@googlegroups.com
Hi,

I have a combined Maven/Java + Groovy project that I'm interested in using Dagger 2 in, but I've been unable to get things to work together.

I tried to modify the simple example to see if it could be something in the way I was trying to use it, but the moment I switched from maven's default compiler to groovy-eclipse-compiler, sources stopped being generated. I've tried this both on windows and linux systems with the same errors on both; the sources don't seem to get generated.

Does anyone have any idea about how I could use Dagger 2 with a mixed Java/Groovy codebase? Or would I be better off simply looking for another project which does things at runtime?

 - Alex

Kenneth Westelinck

unread,
Jan 7, 2016, 8:42:38 AM1/7/16
to Dagger Discuss
I have the same problem. I get this:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.3:compile (default-compile) on project impl: Compilation failure: Compilation failure:
[ERROR] C:\Projects\Service.groovy:
[ERROR] 1. ERROR in C:\Projects\Service.groovy (at line 0)
[ERROR] package package
[ERROR] ^
[ERROR] Internal compiler error: java.lang.IllegalStateException: Optional.get() cannot be called on an absent value at com.google.common.base.Absent.get(Absent.java:47)
[ERROR] ----------
[ERROR] 1 problem (1 error)
[ERROR]
[ERROR] Found 1 error and 0 warnings.
[ERROR] -> [Help 1]
Reply all
Reply to author
Forward
0 new messages