-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
69 lines (51 loc) · 1.54 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
scalaVersion := "3.3.3"
enablePlugins(ScalaNativePlugin)
enablePlugins(ScalaNativeJUnitPlugin)
organization := "io.github.quelgar"
name := "scala-uv"
version := "0.1.0"
ThisBuild / versionScheme := Some("early-semver")
// set to Debug for compilation details (Info is default)
logLevel := Level.Info
// 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
.withMultithreading(false)
}
scalacOptions ++= Seq(
"-new-syntax",
"-no-indent",
"-Wvalue-discard",
"-Wunused:all",
"-Werror",
"-deprecation",
"-explain"
)
publishTo := sonatypePublishToBundle.value
sonatypeCredentialHost := "s01.oss.sonatype.org"
sonatypeRepository := "https://s01.oss.sonatype.org/service/local"
// credentials += Credentials(Path.userHome / ".sbt" / "sonatype_credentials")
licenses := Seq("APL2" -> url("http://www.apache.org/licenses/LICENSE-2.0.txt"))
import xerial.sbt.Sonatype._
sonatypeProjectHosting := Some(
GitHubHosting("quelgar", "scala-uv", "[email protected]")
)
autoAPIMappings := true
apiURL := Some(
url(
s"https://javadoc.io/doc/io.github.quelgar/scala-uv_native0.4_3/${version.value}/index.html"
)
)
Compile / doc / scalacOptions ++= Seq(
"-social-links:github::https://github.com/quelgar,twitter::https://twitter.com/quelgar",
"-groups",
"-project-version",
version.value,
"-doc-root-content",
"doc-root.txt",
"-skip-by-id:scalauv.main"
)