forked from stephenwilliams/JSyntaxPane
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
56 lines (37 loc) · 1.37 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
name := "SyntaxPane"
version := "1.1.5-SNAPSHOT"
organization := "de.sciss"
description := "An extension of Java Swing's JEditorKit that supports syntax highlighting for several languages."
homepage := Some(url("https://github.com/Sciss/" + name.value))
licenses := Seq("Apache 2.0 License" -> url("http://www.apache.org/licenses/LICENSE-2.0.txt"))
scalaVersion := "2.11.7"
crossPaths := false // this is just a Java project right now!
autoScalaLibrary := false
mainClass in Compile := Some("de.sciss.syntaxpane.SyntaxTester")
javacOptions in (Compile, compile) ++= Seq("-g", "-source", "1.6", "-target", "1.6")
fork in run := true
// ---- JFlex ----
seq(jflexSettings: _*)
// ---- publishing ----
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>
</developers>
}