From 456a186e8e07d774120a17afc3cfa056059963f3 Mon Sep 17 00:00:00 2001 From: ngohgia Date: Thu, 6 May 2021 08:37:54 -0400 Subject: [PATCH] Set up publication to Sonatype --- build.sbt | 14 +++++++++----- project/plugins.sbt | 2 +- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/build.sbt b/build.sbt index 2476b87..d1edc37 100644 --- a/build.sbt +++ b/build.sbt @@ -2,12 +2,20 @@ lazy val `sbt-webpack` = project in file(".") enablePlugins(SbtWebBase) -organization := "givers.webpack" +organization := "io.github.givesocialmovement" +homepage := Some(url("https://github.com/GIVESocialMovement/sbt-webpack")) +developers := List(Developer("tanin", "tanin", "developers@giveasia.org", url("https://github.com/tanin47"))) name := "sbt-webpack" version in ThisBuild := "0.10.0" scalaVersion := "2.12.11" +publishTo := { + val nexus = "https://s01.oss.sonatype.org/" + if (isSnapshot.value) Some("snapshots" at nexus + "content/repositories/snapshots") + else Some("releases" at nexus + "service/local/staging/deploy/maven2") +} + libraryDependencies ++= Seq( "com.typesafe.play" %% "play-json" % "2.8.1", "org.mockito" % "mockito-core" % "2.18.3" % Test, @@ -18,10 +26,6 @@ testFrameworks += new TestFramework("utest.runner.Framework") publishMavenStyle := true -bintrayOrganization := Some("givers") - -bintrayRepository := "maven" - publishArtifact in Test := false pomIncludeRepository := { _ => false } diff --git a/project/plugins.sbt b/project/plugins.sbt index 6203f4c..17f5ead 100644 --- a/project/plugins.sbt +++ b/project/plugins.sbt @@ -1,3 +1,3 @@ addSbtPlugin("com.typesafe.sbt" % "sbt-web-build-base" % "1.2.3") addSbtPlugin("org.scoverage" % "sbt-scoverage" % "1.5.1") -addSbtPlugin("org.foundweekends" % "sbt-bintray" % "0.5.4") +addSbtPlugin("com.github.sbt" % "sbt-pgp" % "2.1.2")