@@ -17,6 +17,16 @@ lazy val commonSettings = Seq(
17
17
javacOptions ++= Seq (" -target" , " 1.8" , " -J-Xmx512m" , " -J-Xms128m" , " -J-Xss10m" ),
18
18
javaOptions ++= Seq (" -Xmx512m" , " -Djava.awt.headless=true" ),
19
19
scalacOptions ++= Seq (" -deprecation" , " -unchecked" ),
20
+ credentials += Credentials (Path .userHome / " .sbt" / " sonatype.credentials" ),
21
+ publishTo := {
22
+ val nexus = " https://oss.sonatype.org/"
23
+ if (version.value.trim.endsWith(" SNAPSHOT" ))
24
+ Some (" snapshots" at nexus + " content/repositories/snapshots" )
25
+ else
26
+ Some (" releases" at nexus + " service/local/staging/deploy/maven2" )
27
+ },
28
+ publishMavenStyle := true ,
29
+ publishArtifact in Test := false ,
20
30
pomIncludeRepository := { _ => false },
21
31
licenses := Seq (" Apache 2" -> url(" http://www.apache.org/licenses/LICENSE-2.0.txt" )),
22
32
pomExtra := (
@@ -42,6 +52,7 @@ lazy val root = (project in file("."))
42
52
.aggregate(metricsScala, metricsScalaHdr, metricsAkka24, metricsAkka25)
43
53
.settings(
44
54
publishArtifact := false ,
55
+ skip in publish := true ,
45
56
name := " metrics-scala-root"
46
57
)
47
58
@@ -98,17 +109,3 @@ lazy val metricsAkka25 = (project in file("metrics-akka-25"))
98
109
),
99
110
sourceDirectory := baseDirectory.value.getParentFile / " metrics-akka" / " src"
100
111
)
101
-
102
- credentials += Credentials (Path .userHome / " .sbt" / " sonatype.credentials" )
103
-
104
- publishTo := {
105
- val nexus = " https://oss.sonatype.org/"
106
- if (version.value.trim.endsWith(" SNAPSHOT" ))
107
- Some (" snapshots" at nexus + " content/repositories/snapshots" )
108
- else
109
- Some (" releases" at nexus + " service/local/staging/deploy/maven2" )
110
- }
111
-
112
- publishMavenStyle := true
113
-
114
- publishArtifact in Test := false
0 commit comments