Problem building from sources

Hi,

I’m trying to build the project from sources on a MacBook following the instructions in README.md and HOW_TO_CREATE_GWT_CLIENT.txt.

I try to build the master branch but it fails for me with this error:

JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_144.jdk/Contents/Home ./gradlew buildCoreUIPackageUsingJDK8 -x test

Configure project :lib-commonbase
execute: git log -1 --format=%at
BUILD INFO for project ‘:lib-commonbase’: SNAPSHOT:1743091210:clean

Configure project :lib-common
execute: git log -1 --format=%at
BUILD INFO for project ‘:lib-common’: SNAPSHOT:1743091210:clean

Configure project :lib-json
execute: git log -1 --format=%at
BUILD INFO for project ‘:lib-json’: SNAPSHOT:1743091210:clean

Configure project :api-openbis-java
execute: git log -1 --format=%at
BUILD INFO for project ‘:api-openbis-java’: SNAPSHOT:1743091210:clean

Configure project :lib-dbmigration
execute: git log -1 --format=%at
BUILD INFO for project ‘:lib-dbmigration’: SNAPSHOT:1743091210:clean

Configure project :lib-authentication
execute: git log -1 --format=%at
BUILD INFO for project ‘:lib-authentication’: SNAPSHOT:1743091210:clean

Configure project :lib-openbis-common
execute: git log -1 --format=%at
BUILD INFO for project ‘:lib-openbis-common’: SNAPSHOT:1743091210:clean

Configure project :api-openbis-javascript
execute: git log -1 --format=%at
BUILD INFO for project ‘:api-openbis-javascript’: SNAPSHOT:1743091210:clean

Configure project :api-data-store-server-javascript
execute: git log -1 --format=%at
BUILD INFO for project ‘:api-data-store-server-javascript’: SNAPSHOT:1743091210:clean

Configure project :server-application-server
execute: git log -1 --format=%at
BUILD INFO for project ‘:server-application-server’: SNAPSHOT:1743091210:clean

Configure project :server-original-data-store
execute: git log -1 --format=%at
BUILD INFO for project ‘:server-original-data-store’: SNAPSHOT:1743091210:clean

Configure project :server-screening
execute: git log -1 --format=%at
BUILD INFO for project ‘:server-screening’: SNAPSHOT:1743091210:clean

Configure project :api-openbis-typescript
execute: git log -1 --format=%at
BUILD INFO for project ‘:api-openbis-typescript’: SNAPSHOT:1743091210:clean

FAILURE: Build failed with an exception.

  • Where:
    Build file ‘<…>/openbis/api-openbis-typescript/build.gradle’ line: 23

  • What went wrong:
    A problem occurred evaluating project ‘:api-openbis-typescript’.
    java.lang.UnsupportedClassVersionError: cz/habarta/typescript/generator/gradle/TypeScriptGeneratorPlugin has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0

  • Try:
    Run with --stacktrace option to get the stack trace.
    Run with --info or --debug option to get more log output.
    Run with --scan to get full insights.

Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.

You can use ‘–warning-mode all’ to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

BUILD FAILED in 3s

The problem seems to be that GWT compilation requires Java 8, while other parts (typescript generation plugin) Java 11.

Am I doing this wrong? What could be the solution? Or is this step not required?

Thanks!

You don’t need to compile the GWT UI with JDK 8 necessarily. There is a static build of the UI available that will be automatically deployed when running the system with JDK 17.

1 Like

Thanks for the clarifications!