-
Notifications
You must be signed in to change notification settings - Fork 6
/
build.sbt
70 lines (65 loc) · 2.16 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
import sbt._
import Keys._
lazy val slickjdbcextension = (project in file(".")).
settings(
name := "slick-jdbc-extension",
organization := "com.github.tarao",
scalaVersion := "2.13.12",
crossScalaVersions := Seq("2.12.18", "2.13.12"),
// Depenency
libraryDependencies ++= Seq(
"org.scala-lang" % "scala-reflect" % scalaVersion.value,
"com.typesafe.slick" %% "slick" % "3.5.0-M4",
"eu.timepit" %% "refined" % "0.11.0",
"org.scalatest" %% "scalatest" % "3.2.17" % "test",
"org.scalamock" %% "scalamock" % "5.0.0" % "test",
"com.h2database" % "h2" % "1.4.200" % "test"
),
// Compilation
scalacOptions ++= Seq(
"-unchecked",
"-deprecation",
"-feature"
),
// Documentation
Compile / doc / scalacOptions ++= Nil :::
"-groups" ::
"-sourcepath" ::
baseDirectory.value.getAbsolutePath ::
"-doc-source-url" ::
"https://github.com/tarao/slick-jdbc-extension-scala/tree/master€{FILE_PATH}.scala" ::
Nil,
// Publishing
releasePublishArtifactsAction := PgpKeys.publishSigned.value,
releaseCrossBuild := true,
publishMavenStyle := true,
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")
},
Test / publishArtifact := false,
pomIncludeRepository := { _ => false },
pomExtra := (
<url>https://github.com/tarao/slick-jdbc-extension-scala</url>
<licenses>
<license>
<name>MIT License</name>
<url>http://www.opensource.org/licenses/mit-license.php</url>
<distribution>repo</distribution>
</license>
</licenses>
<scm>
<url>git@github.com:tarao/slick-jdbc-extension-scala.git</url>
<connection>scm:git:git@github.com:tarao/slick-jdbc-extension-scala.git</connection>
</scm>
<developers>
<developer>
<id>tarao</id>
<name>INA Lintaro</name>
<url>https://github.com/tarao/</url>
</developer>
</developers>)
)