Floh
1
I want to get started with developing custom assets and dashboard elements for OR. Therefore i followed the instructions in the docs. https://docs.openremote.io/docs/developer-guide/preparing-the-environment and https://docs.openremote.io/docs/developer-guide/setting-up-an-ide
My system is:
commit: 160fc3d7fc of custom_project
OS: Manjaro
IDE: Intellij comunity edition
> java -version
openjdk version "21.0.6" 2025-01-21
OpenJDK Runtime Environment (build 21.0.6+7)
OpenJDK 64-Bit Server VM (build 21.0.6+7, mixed mode, sharing)
> node -v
v23.9.0
> yarn -v
4.1.0
when building the project i get the following errors
> Task :test:compileTestGroovy
startup failed:
custom-project/test/src/test/groovy/org/openremote/test/custom/CustomTest.groovy: 28: unable to resolve class org.openremote.test.ManagerContainerTrait
@ line 28, column 1.
import org.openremote.test.ManagerContainerTrait
^
custom-project/test/src/test/groovy/org/openremote/test/custom/CustomTest.groovy: 29: unable to resolve class spock.lang.Specification
@ line 29, column 1.
import spock.lang.Specification
^
custom-project/test/src/test/groovy/org/openremote/test/custom/CustomTest.groovy: 30: unable to resolve class spock.util.concurrent.PollingConditions
@ line 30, column 1.
import spock.util.concurrent.PollingConditions
^
3 errors
It seems like some missing dependencies, but I can’t figure out which.
wborn
2
Hi @Floh! We recently made a fix for this, see:
We still need to create a new OpenRemote release so the artifact with the fixes gets published.
In the mean time, in test/build.gradle, replacing
testImplementation "io.openremote:openremote-test:$openremoteVersion"
with
testImplementation "io.openremote:openremote-test:$openremoteVersion:test-fixtures"
testImplementation platform("org.spockframework:spock-bom:2.4-M5-groovy-4.0")
testImplementation 'org.spockframework:spock-core'
should fix the issue.
But please revert when upgrading to the next OR release (when published)
Floh
4
Thank you.
Good to hear that. Is there a date for the next release?
Hi!
Currently there is no date scheduled for the next release.
Don’t quote me on this, but I’m expecting one sometime next week.
wborn
6
There’s now a 1.3.4 release that should fix this issue. To use it in your custom project follow these docs: