This repository has been archived by the owner on Mar 22, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathbuild.sbt
72 lines (50 loc) · 1.92 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
67
68
69
70
71
name := "logback-journal"
organization := "org.gnieh"
version := "0.3.0"
licenses += ("The Apache Software License, Version 2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0.txt"))
homepage := Some(url("https://github.com/gnieh/logback-journal"))
javaOptions += "-Djna.nosys=true"
libraryDependencies += "net.java.dev.jna" % "jna" % "4.4.0"
libraryDependencies += "ch.qos.logback" % "logback-classic" % "1.2.3"
libraryDependencies += "com.novocode" % "junit-interface" % "0.11" % "test"
// OSGi settings
osgiSettings
resourceDirectories in Compile := List()
OsgiKeys.exportPackage := Seq("org.gnieh.logback")
OsgiKeys.additionalHeaders := Map (
"Bundle-Name" -> "systemd journal appender for logback"
)
OsgiKeys.bundleSymbolicName := "org.gnieh.logback.journal"
OsgiKeys.privatePackage := Seq()
// publish settings
publishMavenStyle := true
publishArtifact in Test := false
// do not happen the scala version
crossPaths := false
// exclude scala library, this is a pure java project
autoScalaLibrary := false
// The Nexus repo we're publishing to.
publishTo := (version { (v: String) =>
val nexus = "https://oss.sonatype.org/"
if (v.trim.endsWith("SNAPSHOT")) Some("snapshots" at nexus + "content/repositories/snapshots")
else Some("releases" at nexus + "service/local/staging/deploy/maven2")
}).value
pomIncludeRepository := { x => false }
pomExtra :=
<scm>
<url>https://github.com/gnieh/logback-journal</url>
<connection>scm:git:git://github.com/gnieh/logback-journal.git</connection>
<developerConnection>scm:git:[email protected]:gnieh/logback-journal.git</developerConnection>
<tag>HEAD</tag>
</scm>
<developers>
<developer>
<id>satabin</id>
<name>Lucas Satabin</name>
<email>[email protected]</email>
</developer>
</developers>
<issueManagement>
<system>github</system>
<url>https://github.com/gnieh/logback-journal/issues</url>
</issueManagement>