/
build.sbt
48 lines (39 loc) · 1.58 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
ThisBuild / organization := "com.mchange"
ThisBuild / version := "0.2.2"
ThisBuild / resolvers += Resolver.sonatypeRepo("releases")
ThisBuild / resolvers += Resolver.sonatypeRepo("snapshots")
ThisBuild / publishTo := {
if (isSnapshot.value) Some(Resolver.sonatypeRepo("snapshots")) else Some(Resolver.url("sonatype-staging", url("https://oss.sonatype.org/service/local/staging/deploy/maven2")))
}
lazy val root = project
.in(file("."))
.settings(
name := "superflex",
scalaVersion := "2.11.12",
libraryDependencies += "com.mchange" %% "mchange-commons-scala" % "0.4.16",
libraryDependencies += "com.mchange" %% "mlog-scala" % "0.3.14",
libraryDependencies += "org.scala-lang.modules" %% "scala-xml" % "1.3.0",
pomExtra := pomExtraForProjectName_LGPLv21( name.value )
)
// publication, pom extra stuff, note this is single-licensed under LGPL v2.1
def pomExtraForProjectName_LGPLv21( projectName : String ) = {
<url>https://github.com/swaldman/{projectName}</url>
<licenses>
<license>
<name>GNU Lesser General Public License, Version 3</name>
<url>https://www.gnu.org/licenses/lgpl-2.1.html</url>
<distribution>repo</distribution>
</license>
</licenses>
<scm>
<url>https://github.com/swaldman/{projectName}</url>
<connection>scm:git:git@github.com:swaldman/{projectName}.git</connection>
</scm>
<developers>
<developer>
<id>swaldman</id>
<name>Steve Waldman</name>
<email>swaldman@mchange.com</email>
</developer>
</developers>
}