I see the problem is described here http://stackoverflow.com/questions/17104455/guava-abstractiterator-duplicate-class pretty well. we can’t use Optional class from Google Guava because it triggers the compilation error:
\.gradle\caches\artifacts-24\filestore\com.google.guava\guava-gwt2.0\jar7db9cba72410110a02558741de7766939b864a0\guava-gwt-12.
0.jar(com/google/common/collect/AbstractIterator.java):64: error: duplicate class: com.google.common.collect.AbstractIterator
public abstract class AbstractIterator<T> extends UnmodifiableIterator<T> {
^
.gradle\caches\artifacts-24\filestore\com.google.guava\guava-gwt2.0\jar7db9cba72410110a02558741de7766939b864a0\guava-gwt-12.
0.jar(com/google/common/base/Optional.java):216: error: cannot access AbstractIterator
return new AbstractIterator<T>() {
^
bad source file: .gradle\caches\artifacts-24\filestore\com.google.guava\guava-gwt2.0\jar7db9cba72410110a02558741de7766939b
864a0\guava-gwt-12.0.jar(com/google/common/base/AbstractIterator.java)
file does not contain class com.google.common.base.AbstractIterator
Please remove or make sure it appears in the correct subdirectory of the sourcepath.
we already have
compileJava.options.compilerArgs = ["-implicit:none"]
in the build.gradle file.
compilation in the IDE (Jetbrains IDEA) works fine.