-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
41 lines (37 loc) · 1.46 KB
/
build.sbt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
import NativePackagerHelper._
val scala3Version = "3.3.1"
lazy val shar = RootProject(uri("https://github.com/pseifer/shar.git"))
// Native Packager plugin.
enablePlugins(JavaAppPackaging)
lazy val root = project
.in(file("."))
.dependsOn(shar)
.settings(
// Project metadata.
name := "shardik",
maintainer := "[email protected]",
organization := "de.pseifer",
version := "0.1.1",
// Project settings.
run / fork := true,
run / outputStrategy := Some(StdoutOutput),
run / javaOptions += "-Xmx4G",
run / javaOptions += "-Dfile.encoding=UTF-8",
scalaVersion := scala3Version,
scalacOptions ++= Seq("-unchecked", "-deprecation", "-feature"),
// Settings for native packer.
Compile / mainClass := Some("de.pseifer.shardik.main"),
Compile / discoveredMainClasses := Seq(),
Universal / mappings += file("README.md") -> "README.md",
Universal / packageName := "shar",
// Logging.// Dependencies.
// Development dependency, local only - install manually and comment out 'dependsOn(shar)'.
// Note: This is only needed so metals works correctly with the GitHub dependency for SHAR.
//libraryDependencies += "de.pseifer" %% "shar" % "1.0.0",
// CLI application.
libraryDependencies += "org.rogach" %% "scallop" % "4.1.0",
// Logging.
libraryDependencies += "org.slf4j" % "slf4j-simple" % "2.0.12" % Runtime,
// Testing
libraryDependencies += "org.scalameta" %% "munit" % "0.7.29" % Test
)