mirror of
https://github.com/ij-plugins/ijp-imagej-launcher.git
synced 2024-11-13 16:29:01 -08:00
50 lines
1.5 KiB
Scala
50 lines
1.5 KiB
Scala
scalaVersion := "3.3.0"
|
|
//name := "IJP-ImageJ-Launcher"
|
|
version := "0.1.1-SNAPSHOT"
|
|
versionScheme := Some("early-semver")
|
|
organization := "net.sf.ij-plugins"
|
|
homepage := Some(new URI("https://github.com/ij-plugins/ijp-imagej-launcher").toURL)
|
|
startYear := Some(2023)
|
|
ThisBuild / licenses := Seq(("Apache-2", new URI("https://opensource.org/license/apache-2-0").toURL))
|
|
ThisBuild / developers := List(
|
|
Developer(id = "jpsacha", name = "Jarek Sacha", email = "jpsacha@gmail.com", url = url("https://github.com/jpsacha"))
|
|
)
|
|
|
|
enablePlugins(ScalaNativePlugin)
|
|
|
|
// set to Debug for compilation details (Info is default)
|
|
logLevel := Level.Info
|
|
|
|
libraryDependencies ++= Seq(
|
|
"com.github.scopt" %%% "scopt" % "4.1.0",
|
|
"com.lihaoyi" %%% "os-lib" % "0.9.1",
|
|
"org.scalatest" %%% "scalatest" % "3.2.16" % Test
|
|
)
|
|
|
|
scalacOptions ++= Seq(
|
|
"-unchecked",
|
|
"-deprecation",
|
|
"-explain",
|
|
"-explain-types",
|
|
"-rewrite",
|
|
"-source:3.3-migration",
|
|
// "-Wvalue-discard",
|
|
"-Wunused:all"
|
|
)
|
|
|
|
Compile / run / mainClass := Some("ij_plugins.imagej_launcher.Main")
|
|
|
|
// import to add Scala Native options
|
|
import scala.scalanative.build.*
|
|
|
|
// defaults set with common options shown
|
|
nativeConfig ~= { c =>
|
|
c.withLTO(LTO.none) // thin
|
|
.withMode(Mode.debug) // releaseFast
|
|
.withGC(GC.immix) // commix
|
|
}
|
|
|
|
//// Enable verbose reporting during compilation
|
|
//nativeConfig ~= { c =>
|
|
// c.withCompileOptions(c.compileOptions ++ Seq("-v"))
|
|
//}
|