Skip to content

Commit a7e7634

Browse files
committed
Clean up build configuration
1 parent 304224a commit a7e7634

File tree

3 files changed

+15
-16
lines changed

3 files changed

+15
-16
lines changed

.jvmopts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
-Xmx4g
2-
-XX:MaxMetaspaceSize=512m
3-
-XX:ReservedCodeCacheSize=256m
2+
-XX:MaxMetaspaceSize=1g
3+
-XX:ReservedCodeCacheSize=512m
44
-XX:+UseParallelGC
55
-Dfile.encoding=UTF8

build.sbt

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ lazy val commonSettings = Seq(
2424
),
2525
),
2626
scalaVersion := "2.12.10",
27-
resolvers += "Sonatype OSS Staging" at "https://oss.sonatype.org/content/repositories/staging",
27+
resolvers += Resolver.sonatypeRepo("staging"),
2828
scalacOptions ++= Seq(
2929
"-deprecation",
3030
"-encoding", "UTF-8",
@@ -35,17 +35,8 @@ lazy val commonSettings = Seq(
3535
"-Xlint"
3636
),
3737
testOptions in Test += Tests.Argument("-oDF"),
38-
parallelExecution in ThisBuild := false
39-
)
40-
41-
lazy val noPublishSettings = Seq(
42-
skip in publish := true,
43-
publishTo := Some(if (isSnapshot.value) Opts.resolver.sonatypeSnapshots else Opts.resolver.sonatypeStaging),
44-
mimaPreviousArtifacts := Set()
45-
)
46-
47-
lazy val publishSettings = Seq(
48-
publishTo := Some(if (isSnapshot.value) Opts.resolver.sonatypeSnapshots else Opts.resolver.sonatypeStaging),
38+
parallelExecution in ThisBuild := false,
39+
publishTo := sonatypePublishToBundle.value,
4940
sonatypeProfileName := "com.github.plokhotnyuk",
5041
scmInfo := Some(
5142
ScmInfo(
@@ -54,7 +45,15 @@ lazy val publishSettings = Seq(
5445
)
5546
),
5647
publishMavenStyle := true,
57-
pomIncludeRepository := { _ => false },
48+
pomIncludeRepository := { _ => false }
49+
)
50+
51+
lazy val noPublishSettings = Seq(
52+
skip in publish := true,
53+
mimaPreviousArtifacts := Set()
54+
)
55+
56+
lazy val publishSettings = Seq(
5857
mimaCheckDirection := {
5958
def isPatch = {
6059
val Array(newMajor, newMinor, _) = version.value.split('.')

project/plugins.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
resolvers += "Sonatype OSS Staging" at "https://oss.sonatype.org/content/repositories/staging"
1+
resolvers += Resolver.sonatypeRepo("staging")
22

33
addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "3.8")
44
addSbtPlugin("com.github.gseitz" % "sbt-release" % "1.0.11")

0 commit comments

Comments
 (0)