diff --git a/docs/src/main/paradox/user/lang/java/gettingstarted.md b/docs/src/main/paradox/user/lang/java/gettingstarted.md index 373f61fc4..dbdcac108 100644 --- a/docs/src/main/paradox/user/lang/java/gettingstarted.md +++ b/docs/src/main/paradox/user/lang/java/gettingstarted.md @@ -19,11 +19,11 @@ In addition to the above, you will need to install the Cloudstate java support l Maven : @@@vars ```xml - + io.cloudstate cloudstate-java-support $cloudstate.java-support.version$ - + ``` @@@ diff --git a/java-support/src/main/resources/reference.conf b/java-support/src/main/resources/reference.conf index e6bfbe6fe..2a220fb21 100644 --- a/java-support/src/main/resources/reference.conf +++ b/java-support/src/main/resources/reference.conf @@ -1,4 +1,10 @@ cloudstate { + + library { + name = "cloudstate-java-support" + version = "0.4.3" + } + user-function-interface = "0.0.0.0" user-function-interface = ${?HOST} diff --git a/java-support/src/main/scala/io/cloudstate/javasupport/impl/EntityDiscoveryImpl.scala b/java-support/src/main/scala/io/cloudstate/javasupport/impl/EntityDiscoveryImpl.scala index a16fc1483..7cf381e1f 100644 --- a/java-support/src/main/scala/io/cloudstate/javasupport/impl/EntityDiscoveryImpl.scala +++ b/java-support/src/main/scala/io/cloudstate/javasupport/impl/EntityDiscoveryImpl.scala @@ -25,11 +25,13 @@ import io.cloudstate.javasupport.{BuildInfo, StatefulService} class EntityDiscoveryImpl(system: ActorSystem, services: Map[String, StatefulService]) extends EntityDiscovery { + private val config = system.settings.config.getConfig("cloudstate") + private val serviceInfo = ServiceInfo( serviceRuntime = sys.props.getOrElse("java.runtime.name", "") + " " + sys.props.getOrElse("java.runtime.version", ""), - supportLibraryName = BuildInfo.name, - supportLibraryVersion = BuildInfo.version + supportLibraryName = config.getString("library.name"), + supportLibraryVersion = config.getString("library.version") ) /**