aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--build.sbt4
-rw-r--r--project/plugins.sbt3
-rw-r--r--publish.sbt14
3 files changed, 14 insertions, 7 deletions
diff --git a/build.sbt b/build.sbt
index 3700da5..9d48522 100644
--- a/build.sbt
+++ b/build.sbt
@@ -48,7 +48,3 @@ lazy val root = (project in file("."))
yamlesqueNative,
`yamlesque-spray-jsonJVM`
)
- .settings(
- publish := {},
- publishLocal := {}
- )
diff --git a/project/plugins.sbt b/project/plugins.sbt
index 7768bd5..9030e19 100644
--- a/project/plugins.sbt
+++ b/project/plugins.sbt
@@ -4,3 +4,6 @@ addSbtPlugin("org.scala-js" % "sbt-scalajs" % "0.6.22")
addSbtPlugin("org.scala-native" % "sbt-scala-native" % "0.3.7")
addSbtPlugin("com.geirsson" % "sbt-scalafmt" % "1.4.0")
+
+addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "2.3")
+addSbtPlugin("com.jsuereth" % "sbt-pgp" % "1.1.1")
diff --git a/publish.sbt b/publish.sbt
index 04e6ba1..12101e0 100644
--- a/publish.sbt
+++ b/publish.sbt
@@ -3,19 +3,19 @@ licenses in ThisBuild := Seq(
("Apache 2.0", url("https://www.apache.org/licenses/LICENSE-2.0")))
homepage in ThisBuild := Some(url("https://github.com/jodersky/yamlesque"))
publishMavenStyle in ThisBuild := true
-publishTo := Some(
+publishTo in ThisBuild := Some(
if (isSnapshot.value)
Opts.resolver.sonatypeSnapshots
else
Opts.resolver.sonatypeStaging
)
-scmInfo := Some(
+scmInfo in ThisBuild := Some(
ScmInfo(
url("https://github.com/jodersky/yamlesque"),
"scm:git@github.com:jodersky/yamlesque.git"
)
)
-developers := List(
+developers in ThisBuild := List(
Developer(
id = "jodersky",
name = "Jakob Odersky",
@@ -23,3 +23,11 @@ developers := List(
url = url("https://crashbox.io")
)
)
+
+// settings for root project
+publishArtifact := false
+publish := {}
+publishLocal := {}
+// make sbt-pgp happy
+publishTo := Some(Resolver.file("Unused transient repository", target.value / "unusedrepo"))
+skip in publish := true