mirror of https://github.com/sbt/sbt.git
Enable sbt-native-packager test
This commit is contained in:
parent
6a2e0a9b04
commit
6c56a769fd
|
|
@ -1,4 +1,4 @@
|
|||
ThisBuild / scalaVersion := "2.12.20"
|
||||
ThisBuild / scalaVersion := "3.7.4"
|
||||
|
||||
name := "hello"
|
||||
enablePlugins(JavaAppPackaging)
|
||||
|
|
@ -6,7 +6,7 @@ enablePlugins(JavaAppPackaging)
|
|||
lazy val check = taskKey[Unit]("")
|
||||
|
||||
check := {
|
||||
val cmd = "target/universal/stage/bin/hello"
|
||||
val cmd = "target/out/jvm/scala-3.7.4/hello/universal/stage/bin/hello"
|
||||
val cmd0 =
|
||||
if (sys.props("os.name").toLowerCase(java.util.Locale.ROOT).contains("windows"))
|
||||
cmd + ".bat"
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
ThisBuild / libraryDependencySchemes += "org.scala-lang.modules" %% "scala-xml" % VersionScheme.Always
|
||||
|
||||
addSbtPlugin("com.typesafe.sbt" % "sbt-native-packager" % "1.3.20")
|
||||
// addSbtPlugin("com.typesafe.sbt" % "sbt-native-packager" % "1.3.20")
|
||||
libraryDependencies += Defaults.sbtPluginExtra("com.github.sbt" % "sbt-native-packager" % "1.11.4", "2", "3.7.3")
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
import java.io.File
|
||||
import java.nio.file.Files
|
||||
|
||||
object Main extends App {
|
||||
@main def hello() =
|
||||
Files.write(new File("output").toPath, "OK".getBytes("UTF-8"))
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue