From 5661fde757e2720f7cc7b1b1bbfe5e053dddd6c9 Mon Sep 17 00:00:00 2001 From: Muneyuki Noguchi Date: Sun, 12 Jul 2020 14:11:10 +0900 Subject: [PATCH] Update sonatype settings --- project/plugins.sbt | 2 +- publish.sbt | 27 +++++++++++++++++++++++++++ sonatype.sbt | 23 ----------------------- 3 files changed, 28 insertions(+), 24 deletions(-) create mode 100644 publish.sbt delete mode 100644 sonatype.sbt diff --git a/project/plugins.sbt b/project/plugins.sbt index d57a176..2e4f0b9 100644 --- a/project/plugins.sbt +++ b/project/plugins.sbt @@ -2,4 +2,4 @@ logLevel := Level.Warn addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "2.0") -addSbtPlugin("com.jsuereth" % "sbt-pgp" % "1.1.1") +addSbtPlugin("com.jsuereth" % "sbt-pgp" % "2.0.1") diff --git a/publish.sbt b/publish.sbt new file mode 100644 index 0000000..5eacbd9 --- /dev/null +++ b/publish.sbt @@ -0,0 +1,27 @@ +ThisBuild / scmInfo := Some( + ScmInfo( + url("https://github.com/mnogu/gatling-kafka"), + "scm:git:github.com/mnogu/gatling-kafka.git" + ) +) +ThisBuild / developers := List( + Developer( + id = "mnogu", + name = "Muneyuki Noguchi", + email = "nogu.dev@gmail.com", + url = url("https://github.com/mnogu") + ) +) + +ThisBuild / description := "Some descripiton about your project." +ThisBuild / licenses := List("Apache 2" -> new URL("http://www.apache.org/licenses/LICENSE-2.0.txt")) +ThisBuild / homepage := Some(url("https://github.com/mnogu/gatling-kafka")) + +// Remove all additional repository other than Maven Central from POM +ThisBuild / pomIncludeRepository := { _ => false } +ThisBuild / 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") +} +ThisBuild / publishMavenStyle := true diff --git a/sonatype.sbt b/sonatype.sbt deleted file mode 100644 index c735306..0000000 --- a/sonatype.sbt +++ /dev/null @@ -1,23 +0,0 @@ -sonatypeProfileName := "com.github.mnogu" - -pomExtra in Global := { - https://github.com/mnogu/gatling-kafka - - - Apache 2 - http://www.apache.org/licenses/LICENSE-2.0.txt - - - - scm:git:github.com/mnogu/gatling-kafka.git - scm:git:git@github.com:mnogu/gatling-kafka.git - github.com/mnogu/gatling-kafka.git - - - - mnogu - Muneyuki Noguchi - https://github.com/mnogu - - -}