-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
54 lines (48 loc) · 1.87 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
val nexus = "https://oss.sonatype.org/"
val nexusSnapshots = nexus + "content/repositories/snapshots"
val nexusStaging = nexus + "service/local/staging/deploy/maven2"
ThisBuild / resolvers += ("releases" at nexusStaging)
ThisBuild / resolvers += ("snapshots" at nexusSnapshots)
ThisBuild / resolvers += ("Typesafe repository" at "https://repo.typesafe.com/typesafe/releases/")
ThisBuild / publishTo := {
if (isSnapshot.value) Some("snapshots" at nexusSnapshots ) else Some("staging" at nexusStaging )
}
val projectName = "mlog-scala"
val pomExtraXml = (
<url>https://github.com/swaldman/{projectName}</url>
<licenses>
<license>
<name>GNU Lesser General Public License, Version 2.1</name>
<url>http://www.gnu.org/licenses/lgpl-2.1.html</url>
<distribution>repo</distribution>
</license>
<license>
<name>Eclipse Public License, Version 1.0</name>
<url>http://www.eclipse.org/org/documents/epl-v10.html</url>
<distribution>repo</distribution>
</license>
</licenses>
<scm>
<url>[email protected]:swaldman/{projectName}.git</url>
<connection>scm:git:[email protected]:swaldman/{projectName}</connection>
</scm>
<developers>
<developer>
<id>swaldman</id>
<name>Steve Waldman</name>
<email>[email protected]</email>
</developer>
</developers>
)
lazy val root = project
.in(file("."))
.settings(
organization := "com.mchange",
name := projectName,
version := "0.3.15",
scalaVersion := "2.12.18",
crossScalaVersions := Seq("2.10.7","2.11.12","2.12.18","2.13.12","3.3.1"),
scalacOptions ++= Seq("-deprecation", "-feature"),
libraryDependencies += "com.mchange" % "mchange-commons-java" % "0.2.20",
pomExtra := pomExtraXml
)