forked from stephenwilliams/JSyntaxPane
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.sbt
53 lines (47 loc) · 1.81 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
lazy val baseName = "SyntaxPane"
lazy val baseNameL = baseName.toLowerCase
lazy val gitHost = "codeberg.org"
lazy val gitUser = "sciss"
lazy val gitRepo = baseName
lazy val projectVersion = "1.2.1"
lazy val mimaVersion = "1.2.0" // for comparison wrt binary compatibility
// sonatype plugin requires that these are in global
ThisBuild / version := projectVersion
ThisBuild / organization := "de.sciss"
ThisBuild / versionScheme := Some("pvp")
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")
)
),
scmInfo := {
val h = gitHost
val a = s"$gitUser/$gitRepo"
Some(ScmInfo(url(s"https://$h/$a"), s"scm:git@$h:$a.git"))
},
)