First time custom project Gradlew Failures

First time setup using the github repository for the OpenRemote custom project. When I run the ./gradlew modelWatch command from the directory I’m encountering the following errors:

  1. Task :ui:component:model:generateTypeScript FAILED

    Could not initialize class org.graalvm.polyglot.Engine$ImplHolder

File Location: /home/myuseraccount/custom-project/test/build.gradle
Messages:
Invocation of Task.project at execution time has been deprecated
The AbstractTestTask.afterSuite(Closure) method has been deprecated
The AbstractTestTask.afterTest(Closure) method has been deprecated

  1. Execution failed for task ‘:test:compileTestGroovy’

    Bug! exception in phase ‘semantic analysis’ in source unit ‘/home/myuseraccount/custom-project/test/src/test/groovy/org/openremote/test/custom/CustomTest.groovy’ Unsupported class file major version 69

Any guidance on resolving these would be appreciated!

Perhaps you are using Java 25 instead of Java 21?
You can check your Java version using java -version
Some dependencies may still need to be updated before everything compiles with Java 25. :wink:

Thanks for the response wborn! I took a more aggressive approach, completely wiped the server and rebuilt it from scratch and I don’t have those problems anymore. I had cloned it the day before the update so I figured why not?

I also initially rolled Java 25 on that machine but this install seems to be running with no issues. Thanks!

Time to start configuring stuff :grinning:

1 Like