forked from dpolivaev/SyntaxPane
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
62 lines (56 loc) · 2.13 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
lazy val baseName = "SyntaxPane"
lazy val baseNameL = baseName.toLowerCase
lazy val gitHost = "github.com"
lazy val gitUser = "freeplane"
lazy val gitRepo = baseName
lazy val projectVersion = "1.2.3"
lazy val mimaVersion = "1.2.0" // for comparison wrt binary compatibility
// sonatype plugin requires that these are in global
ThisBuild / version := projectVersion
ThisBuild / organization := "org.freeplane.de.sciss"
ThisBuild / versionScheme := Some("pvp")
ThisBuild / sonatypeCredentialHost := "s01.oss.sonatype.org"
lazy val commonSettings = Seq(
name := baseName,
description := "An extension of Java Swing's JEditorKit that supports syntax highlighting for several languages.",
homepage := Some(url(s"https://$gitHost/$gitUser/$gitRepo")),
licenses := Seq("Apache 2.0 License" -> url("http://www.apache.org/licenses/LICENSE-2.0.txt")),
scalaVersion := "2.13.8", // not used
crossPaths := false, // this is just a Java project right now!
autoScalaLibrary := false,
Compile / mainClass := Some("de.sciss.syntaxpane.SyntaxTester"),
Compile / compile / javacOptions ++= Seq("-g", "-source", "1.8", "-target", "1.8"),
run / fork := true,
mimaPreviousArtifacts := Set("de.sciss" % baseNameL % mimaVersion)
)
lazy val root = project.in(file("."))
.settings(commonSettings)
.settings(publishSettings)
.settings(SbtJFlexPlugin.jflexSettings)
// ---- publishing ----
lazy val publishSettings = Seq(
publishMavenStyle := true,
Test / publishArtifact := false,
pomIncludeRepository := { _ => false },
developers := List(
Developer(
id = "sciss",
name = "Hanns Holger Rutz",
email = "[email protected]",
url = url("https://www.sciss.de")
),
Developer(
id = "dpolivaev",
name = "Dimitry Polivaev",
email = "[email protected]",
url = url("https://www.freeplane.org")
)
),
scmInfo := {
val h = gitHost
val a = s"$gitUser/$gitRepo"
Some(ScmInfo(url(s"https://$h/$a"), s"scm:git@$h:$a.git"))
},
publishTo := sonatypePublishToBundle.value,
sonatypeProfileName := "org.freeplane",
)