kamax-matrix / mxisd

Federated Matrix Identity Server
GNU Affero General Public License v3.0
220 stars 112 forks source link

Build failure #17

Closed tigre-bleu closed 7 years ago

tigre-bleu commented 7 years ago

Hello,

I tried building mxisd but without success on Ubuntu 14.04. Here is the output:

:compileGroovy (Thread[Daemon worker Thread 2,5,main]) started.
:compileGroovy
Putting task artifact state for task ':compileGroovy' into context took 0.0 secs.
Task :compileGroovy class loader hash: 01d9458a7e5b59caccdb01424c57a842
Task :compileGroovy actions class loader hash: 18198991b357e4282b88db10fdb1e992
Executing task ':compileGroovy' (up-to-date check took 0.008 secs) due to:
  No history is available.
Starting process 'Gradle Worker Daemon 1'. Working directory: /home/mxisd/mxisd Command: /usr/lib/jvm/java-7-openjdk-amd64/bin/java -Djava.security.manager=worker.org.gradle.process.internal.worker.child.BootstrapSecurityManager -Dfile.encoding=UTF-8 -Duser.country=US -Duser.language=en -Duser.variant -cp /root/.gradle/caches/3.3/workerMain/gradle-worker.jar worker.org.gradle.process.internal.worker.GradleWorkerMain 'Gradle Worker Daemon 1'
Successfully started process 'Gradle Worker Daemon 1'
Started Gradle worker daemon (0.372 secs) with fork options DaemonForkOptions{minHeapSize=null, maxHeapSize=null, jvmArgs=[], classpath=[/root/.gradle/caches/modules-2/files-2.1/org.codehaus.groovy/groovy-all/2.4.7/c5371aaa20bcdca1175d9477fc0811f4fd99b68a/groovy-all-2.4.7.jar, /root/.gradle/wrapper/dists/gradle-3.3-bin/64bhckfm0iuu9gap9hg3r7ev2/gradle-3.3/lib/ant-1.9.6.jar, /root/.gradle/wrapper/dists/gradle-3.3-bin/64bhckfm0iuu9gap9hg3r7ev2/gradle-3.3/lib/ant-launcher-1.9.6.jar]}.
Initialized native services in: /root/.gradle/native
Executing org.gradle.api.internal.tasks.compile.ApiGroovyCompiler in worker daemon.
Compiling with JDK Java compiler API.
/home/mxisd/mxisd/src/main/groovy/io/kamax/mxisd/lookup/provider/BridgeFetcher.java:35: error: cannot find symbol
import java.util.Optional;
                ^
  symbol:   class Optional
  location: package java.util
/home/mxisd/mxisd/src/main/groovy/io/kamax/mxisd/lookup/provider/BridgeFetcher.java:49: error: cannot find symbol
    public Optional<?> find(SingleLookupRequest request) {
           ^
  symbol:   class Optional
  location: class BridgeFetcher
/home/mxisd/mxisd/build/tmp/compileGroovy/groovy-java-stubs/io/kamax/mxisd/lookup/fetcher/IBridgeFetcher.java:13: error: cannot find symbol
 Optional<?> find(io.kamax.mxisd.lookup.SingleLookupRequest request);
 ^
  symbol:   class Optional
  location: interface IBridgeFetcher
/home/mxisd/mxisd/build/tmp/compileGroovy/groovy-java-stubs/io/kamax/mxisd/lookup/provider/RemoteIdentityServerFetcher.java:22: error: cannot find symbol
@java.lang.Override() public  Optional<?> find(java.lang.String remote, java.lang.String type, java.lang.String threePid) { return (Optional<?>)null;}
                              ^
  symbol:   class Optional
  location: class RemoteIdentityServerFetcher
/home/mxisd/mxisd/build/tmp/compileGroovy/groovy-java-stubs/io/kamax/mxisd/lookup/fetcher/IRemoteIdentityServerFetcher.java:14: error: cannot find symbol
 Optional<?> find(java.lang.String remote, java.lang.String type, java.lang.String threePid);
 ^
  symbol:   class Optional
  location: interface IRemoteIdentityServerFetcher
/home/mxisd/mxisd/src/main/groovy/io/kamax/mxisd/lookup/provider/BridgeFetcher.java:50: error: cannot find symbol
        Optional<String> mediumUrl = Optional.ofNullable(cfg.getMappings().get(request.getType()));
        ^
  symbol:   class Optional
  location: class BridgeFetcher
/home/mxisd/mxisd/src/main/groovy/io/kamax/mxisd/lookup/provider/BridgeFetcher.java:50: error: cannot find symbol
        Optional<String> mediumUrl = Optional.ofNullable(cfg.getMappings().get(request.getType()));
                                     ^
  symbol:   variable Optional
  location: class BridgeFetcher
/home/mxisd/mxisd/src/main/groovy/io/kamax/mxisd/lookup/provider/BridgeFetcher.java:62: error: cannot find symbol
            return Optional.empty();
                   ^
  symbol:   variable Optional
  location: class BridgeFetcher
/home/mxisd/mxisd/build/tmp/compileGroovy/groovy-java-stubs/io/kamax/mxisd/lookup/provider/RemoteIdentityServerFetcher.java:22: error: cannot find symbol
@java.lang.Override() public  Optional<?> find(java.lang.String remote, java.lang.String type, java.lang.String threePid) { return (Optional<?>)null;}
                                                                                                                                    ^
  symbol:   class Optional
  location: class RemoteIdentityServerFetcher
9 errors
startup failed:
Compilation failed; see the compiler error output for details.

1 error

Exception executing org.gradle.api.internal.tasks.compile.ApiGroovyCompiler in worker daemon: org.gradle.api.internal.tasks.compile.CompilationFailedException: Compilation failed; see the compiler error output for details..
:compileGroovy FAILED
:compileGroovy (Thread[Daemon worker Thread 2,5,main]) completed. Took 3.175 secs.

FAILURE: Build failed with an exception.
maxidorius commented 7 years ago

Seems like you don't have JDK 8 installed, but only 7 which is the default on Ubuntu 14.04

tigre-bleu commented 7 years ago

Exact. That was the problem. Thanks. I suggest that this requirement is added in the readme file.

maxidorius commented 7 years ago

It's already present, I should put a table of content maybe tho.