This repository has been archived by the owner on Sep 14, 2023. It is now read-only.
forked from benhutchison/ScalaSwingContrib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
67 lines (61 loc) · 2.04 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
lazy val baseName = "ScalaSwingTree"
lazy val baseNameL = "scala-swing-tree"
lazy val projectVersion = "0.2.0"
lazy val mimaVersion = "0.2.0"
lazy val commonSettings = Seq(
name := baseName,
organization := "de.sciss",
moduleName := baseNameL,
version := projectVersion,
scalaVersion := "2.12.8",
crossScalaVersions := Seq("2.11.12", "2.12.8", "2.13.0-RC1"),
licenses := Seq("LGPL v2.1+" -> url("http://www.gnu.org/licenses/lgpl-2.1.txt")),
homepage := Some(url(s"https://git.iem.at/sciss/${name.value}")),
description := "A Scala Swing wrapper for the JTree component",
mimaPreviousArtifacts := Set("de.sciss" %% baseNameL % mimaVersion),
libraryDependencies ++= Seq(
"de.sciss" %% "swingplus" % deps.main.swingPlus,
"org.scala-lang.modules" %% "scala-xml" % deps.test.scalaXml % Test
),
scalacOptions ++= Seq("-deprecation", "-unchecked", "-feature", "-encoding", "utf8", "-Xlint", "-Xsource:2.13")
) ++ publishSettings
lazy val deps = new {
val main = new {
val swingPlus = "0.4.2"
}
val test = new {
val scalaXml = "1.2.0"
}
}
lazy val root = project.in(file("."))
.settings(commonSettings)
lazy val publishSettings = Seq(
publishMavenStyle := true,
publishTo := {
Some(if (isSnapshot.value)
"Sonatype Snapshots" at "https://oss.sonatype.org/content/repositories/snapshots"
else
"Sonatype Releases" at "https://oss.sonatype.org/service/local/staging/deploy/maven2"
)
},
publishArtifact in Test := false,
pomIncludeRepository := { _ => false },
pomExtra := { val n = name.value
<scm>
<url>[email protected]:Sciss/{n}.git</url>
<connection>scm:git:[email protected]:Sciss/{n}.git</connection>
</scm>
<developers>
<developer>
<id>sciss</id>
<name>Hanns Holger Rutz</name>
<url>http://www.sciss.de</url>
</developer>
<developer>
<id>kenbot</id>
<name>Ken Scambler</name>
<url>http://github.com/kenbot</url>
</developer>
</developers>
}
)