-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.sbt
71 lines (61 loc) · 2.23 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
import sbtrelease.ReleasePlugin.autoImport.ReleaseTransformations._
name := "JOOQ-scala-mappings"
organization := "com.github.gabadi.scalajooq"
scalaVersion := Dependencies.scalaV
lazy val macros = project.in(file("."))
.settings(Dependencies.settings: _*)
.settings(TestSettings.testSettings: _*)
.settings(
crossScalaVersions := Seq("2.10.2", "2.10.3", "2.10.4", "2.10.5", "2.11.0", "2.11.1", "2.11.2", "2.11.3", "2.11.4", "2.11.5", "2.11.6", "2.11.7"),
addCompilerPlugin("org.scalamacros" % "paradise" % Dependencies.paradiseV cross CrossVersion.full)
)
scalacOptions in ThisBuild ++= Seq(
"-target:jvm-1.7",
"-encoding", "UTF-8",
"-deprecation", // warning and location for usages of deprecated APIs
"-feature", // warning and location for usages of features that should be imported explicitly
"-unchecked", // additional warnings where generated code depends on assumptions
"-Xlint", // recommended additional warnings
"-Ywarn-adapted-args", // Warn if an argument list is modified to match the receiver
"-Ywarn-value-discard", // Warn when non-Unit expression results are unused
"-Ywarn-inaccessible",
"-Ywarn-dead-code"
)
releaseVersionBump := sbtrelease.Version.Bump.Bugfix
publishMavenStyle := true
publishArtifact in Test := false
releaseProcess := Seq[ReleaseStep](
checkSnapshotDependencies,
inquireVersions,
runClean,
runTest,
setReleaseVersion,
commitReleaseVersion,
tagRelease,
ReleaseStep(action = Command.process("publishSigned", _)),
setNextVersion,
commitNextVersion,
ReleaseStep(action = Command.process("sonatypeReleaseAll", _)),
pushChanges
)
pomExtra in Global := {
<url>(your project URL)</url>
<licenses>
<license>
<name>Apache 2</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
</license>
</licenses>
<scm>
<connection>scm:git:github.com/gabadi/JOOQ-scala-mappings</connection>
<developerConnection>scm:git:git@github.com:gabadi/JOOQ-scala-mappings</developerConnection>
<url>github.com/gabadi/JOOQ-scala-mappings</url>
</scm>
<developers>
<developer>
<id>1</id>
<name>gabriel.d.abadi@gmail.com</name>
<url>https://github.com/gabadi</url>
</developer>
</developers>
}