-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
90 lines (78 loc) · 2.66 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
name := "SCROLLAnnotations"
scalaVersion := "2.12.6"
version := "0.0.1"
organization := "com.github.max-leuthaeuser"
javacOptions in Compile ++= Seq("-source", "1.8", "-target", "1.8")
scalacOptions := Seq(
"-unchecked",
"-deprecation",
"-feature",
"-language:reflectiveCalls",
"-target:jvm-1.8",
"-encoding", "utf8",
"-Xlint",
"-Xlint:-missing-interpolator",
"-Yno-adapted-args",
"-Ywarn-numeric-widen",
"-Ywarn-value-discard",
"-Xfuture",
"-Ywarn-unused-import")
libraryDependencies ++= Seq(
"com.github.max-leuthaeuser" %% "scroll" % "1.5",
"org.scala-lang" % "scala-reflect" % scalaVersion.value,
"org.scalatest" %% "scalatest" % "3.0.5" % "test"
)
addCompilerPlugin("org.scalamacros" % "paradise" % "2.1.1" cross CrossVersion.full)
test in assembly := {}
assembleArtifact in assemblyPackageScala := false
assemblyMergeStrategy in assembly := {
case PathList(ps@_*)
if ps.last.endsWith("plugin.xml") ||
ps.last.endsWith("properties") ||
ps.last.endsWith(".exsd") => MergeStrategy.discard
case x =>
val oldStrategy = (assemblyMergeStrategy in assembly).value
oldStrategy(x)
}
scalacOptions in console in Compile += ((assembly in Compile) map {
pluginJar => "-Xplugin:" + pluginJar
}).value
scalacOptions in Test ++= ((assembly in Compile) map {
pluginJar => Seq("-Xplugin:" + pluginJar, "-Jdummy=" + pluginJar.lastModified)
}).value
artifact in(Compile, assembly) := {
val art = (artifact in(Compile, assembly)).value
art.withClassifier(Some("assembly"))
}
addArtifact(artifact in(Compile, assembly), assembly)
publishTo := {
val nexus = "https://oss.sonatype.org/"
if (isSnapshot.value)
Some("snapshots" at nexus + "content/repositories/snapshots")
else
Some("releases" at nexus + "service/local/staging/deploy/maven2")
}
publishMavenStyle := true
publishArtifact in Test := false
pomIncludeRepository := { _ => false }
pomExtra :=
<url>https://github.com/max-leuthaeuser/SCROLLAnnotations</url>
<licenses>
<license>
<name>LGPL 3.0 license</name>
<url>http://www.opensource.org/licenses/lgpl-3.0.html</url>
<distribution>repo</distribution>
</license>
</licenses>
<scm>
<connection>scm:git:github.com/max-leuthaeuser/SCROLLAnnotations.git</connection>
<developerConnection>scm:git:[email protected]:max-leuthaeuser/SCROLLAnnotations.git</developerConnection>
<url>github.com/max-leuthaeuser/SCROLLAnnotations</url>
</scm>
<developers>
<developer>
<id>max-leuthaeuser</id>
<name>Max Leuthaeuser</name>
<url>https://wwwdb.inf.tu-dresden.de/rosi/investigators/doctoral-students/</url>
</developer>
</developers>