Hello Sir,
I just cloned your file and tried to compile with the latest depenencie
libraryDependencies += "com.gluonhq" % "substrate" % "0.0.26" in build.sbt
I got the fail, so I tried to figure out.
ProjectConfiguration's constructor changed in the update substrate,
I changed following as ClientPlugin.scala
def clientConfig(): Def.Initialize[Task[ProjectConfiguration]] = Def.task {
val mainClassValue = (mainClass in Compile).value.get
val classpath = (fullClasspath in Compile)
.value
.map(.data)
.map(.getAbsolutePath)
.mkString(File.pathSeparator)
val clientConfig = new ProjectConfiguration(mainClassValue, classpath)
clientConfig.setGraalPath(Paths.get(graalPath.value))
clientConfig.setTarget(Triplet.fromCurrentOS)
clientConfig.setAppId(organization.value + "." + name.value)
clientConfig.setAppName(name.value)
clientConfig.setCompilerArgs(nativeImageArgs.value.asJava)
clientConfig
}
Also two methods are not necessary "classpath: parameter
val result = dispatcher.nativeCompile()
val result = dispatcher.nativeLink()
in projectSettings
Sorry, I am beginner of using github.
Best Regards,
Richie.
Hello Sir,
I just cloned your file and tried to compile with the latest depenencie
libraryDependencies += "com.gluonhq" % "substrate" % "0.0.26" in build.sbt
I got the fail, so I tried to figure out.
ProjectConfiguration's constructor changed in the update substrate,
I changed following as ClientPlugin.scala
def clientConfig(): Def.Initialize[Task[ProjectConfiguration]] = Def.task {
val mainClassValue = (mainClass in Compile).value.get
val classpath = (fullClasspath in Compile)
.value
.map(.data)
.map(.getAbsolutePath)
.mkString(File.pathSeparator)
}
Also two methods are not necessary "classpath: parameter
val result = dispatcher.nativeCompile()
val result = dispatcher.nativeLink()
in projectSettings
Sorry, I am beginner of using github.
Best Regards,
Richie.