Skip to content

substrate 0.0.26 trial #1

Description

@Richie-Jang

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions