-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.sbt
71 lines (52 loc) · 1.7 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 := "mongoless"
organization := "com.github.a14e"
version := "0.3.01"
scalaVersion := "2.12.4"
crossScalaVersions := Seq("2.11.8", "2.12.4")
libraryDependencies ++= Seq(
"com.chuusai" %% "shapeless" % "2.3.2",
"org.mongodb" % "mongodb-driver-async" % "3.6.1",
"org.scalatest" %% "scalatest" % "3.0.4" % "test"
)
javacOptions in(Compile, compile) ++= {
val javaVersion = "1.8"
Seq("-source", javaVersion, "-target", javaVersion)
}
publishArtifact in Test := false
////////////////////
// publishing
pomExtra := {
<url>https://github.com/a14e/MongoLess/</url>
<licenses>
<license>
<name>MIT</name>
<url>https://github.com/a14e/MongoLess/blob/master/LICENSE.txt</url>
<distribution>repo</distribution>
</license>
</licenses>
<scm>
<connection>scm:git:[email protected]:a14e/MongoLess.git</connection>
<url>https://github.com/a14e/MongoLess.git</url>
</scm>
<developers>
<developer>
<id>AndrewInstance</id>
<name>Andrew</name>
<email>[email protected]</email>
</developer>
</developers>
}
publishMavenStyle := true
publishTo := {
val base = "https://oss.sonatype.org/"
if (version.value.trim.endsWith("SNAPSHOT"))
Some("snapshots" at base + "content/repositories/snapshots/")
else
Some("releases" at base + "service/local/staging/deploy/maven2/")
}
//credentials += Credentials(Path.userHome / ".ivy2" / ".credentials")
// только чтобы переписывать файлы при сборке по http://stackoverflow.com/questions/27530507/sbt-publish-only-when-version-does-not-exist
isSnapshot := true
pomIncludeRepository := { x => false }
pgpReadOnly := false
//useGpg := true