-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.sbt
122 lines (108 loc) · 3.71 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
name := "sqlite4s"
organization := "com.github.david-bouyssie"
version := "0.6.0"
scalaVersion := "3.3.3"
crossScalaVersions := Seq("3.3.3", "2.13.14", "2.12.19")
enablePlugins(ScalaNativePlugin)
// import to add Scala Native options
import scala.scalanative.build._
val linkingOptions = Seq(
"-L", file(".").getAbsolutePath ++ "/nativelib"
)
// defaults set with common options shown
nativeConfig ~= { c =>
c.withLTO(LTO.none) // thin
.withMode(Mode.releaseFast) // releaseFast
.withGC(GC.commix) // commix
.withLinkStubs(true)
.withLinkingOptions(linkingOptions)
}
libraryDependencies ++= List(
"com.outr" %%% "scribe" % "3.15.0",
"com.lihaoyi" %%% "utest" % "0.8.3" % Test
)
testFrameworks += new TestFramework("utest.runner.Framework")
// Disable parallel execution of tests (as they need to be launched independently)
Test / parallelExecution := false
// Your profile name of the sonatype account. The default is the same with the organization value
//sonatypeProfileName := "david-bouyssie"
scmInfo := Some(
ScmInfo(
url("https://github.com/david-bouyssie/sqlite4s"),
"scm:[email protected]:david-bouyssie/sqlite4s.git"
)
)
developers := List(
Developer(
id = "david-bouyssie",
name = "David Bouyssié",
email = "",
url = url("https://github.com/david-bouyssie")
)
)
description := "A Scala Native wrapper of the SQLite C library."
licenses := List("Apache 2" -> new URL("http://www.apache.org/licenses/LICENSE-2.0.txt"))
homepage := Some(url("https://github.com/david-bouyssie/sqlite4s"))
pomIncludeRepository := { _ => false }
publishMavenStyle := true
publishTo := {
val nexus = "https://oss.sonatype.org/"
if (isSnapshot.value) Some("snapshots" at nexus + "content/repositories/snapshots")
else Some("releases" at nexus + "service/local/staging/deploy/maven2")
}
// Workaround for issue https://github.com/sbt/sbt/issues/3570 (fixed in 1.3.x)
//updateOptions := updateOptions.value.withGigahorse(false)
// To publish to central:
// export GPG_TTY=$(tty) # gpg issue (https://github.com/keybase/keybase-issues/issues/2798)
// sbt ++publishSigned
//useGpg := true // (since 2.0.0): useGpg is true by default
//pgpPublicRing := file("~/.gnupg/pubring.kbx")
//pgpSecretRing := file("~/.gnupg/pubring.kbx")
Test / publish / skip := true
/*
val commonSettings = Seq(
version := "0.2.0",
organization := "com.github.david-bouyssie",
scalaVersion := "2.11.12",
//nativeLinkStubs := true,
nativeMode := "release",
libraryDependencies ++= Seq(
"biz.enef" %%% "slogging" % "0.6.1",
//"biz.enef" % "slogging_native0.3_2.11" % "0.6.1",
"com.lihaoyi" %%% "utest" % "0.6.6" % "test"
),
Test / nativeLinkStubs := true
)
val publishSettings = Seq(
scmInfo := Some(
ScmInfo(
url("https://github.com/david-bouyssie/sqlite4s"),
"scm:[email protected]:david-bouyssie/sqlite4s.git"
)
),
developers := List(
Developer(
id = "david-bouyssie",
name = "David Bouyssié",
email = "",
url = url("https://github.com/david-bouyssie")
)
),
description := "A Scala Native wrapper of the SQLite C library.",
licenses := List("Apache 2" -> new URL("http://www.apache.org/licenses/LICENSE-2.0.txt")),
homepage := Some(url("https://github.com/david-bouyssie/sqlite4s")),
pomIncludeRepository := { _ => false },
publishTo := {
val nexus = "https://oss.sonatype.org/"
if (isSnapshot.value) Some("snapshots" at nexus + "content/repositories/snapshots")
else Some("releases" at nexus + "service/local/staging/deploy/maven2")
},
publishMavenStyle := true,
useGpg := true,
Test / skip in publish := true
)
val sqlite4s = project
.settings(commonSettings)
.settings(publishSettings)
.enablePlugins(ScalaNativePlugin)
*/