Hi,
How can I install a plugin in Scala ?
Example:
https://github.com/sbt/sbt-native-packager
I see in in /src/ :
object JavaAppPackaging extends AutoPlugin
As JavaAppPackaging is used in enablePlugins(JavaAppPackaging)
but how can I have JavaAppPackaging to be used in my own build.sbt ?
Thank you,
Best regards
Have you added the line to plugins.sbt
as described here?
Hi,
Yes I did: I added
addSbtPlugin(“com.github.sbt” % “sbt-native-packager” % “1.9.4”)
to project/plugins.sbt.
In fact, how would be the steps to install sbt-native-packager on Windows ?
Thank you
Best regards,
Shouldn’t be any different for Windows. (In theory – I haven’t used Windows for Scala development for a long time, but…)
What sort of errors are you getting when you try to compile? So far, it looks like you’re doing the right things…
Thank you for the response.
I haed to put .enablePlugins() in build.sbt
Finally, I used GraalVM to convert to native image.
Best regards