Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

substrate 0.0.26 trial #1

Open
Richie-Jang opened this issue Jul 20, 2020 · 0 comments
Open

substrate 0.0.26 trial #1

Richie-Jang opened this issue Jul 20, 2020 · 0 comments

Comments

@Richie-Jang
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant