From 622e8507e751481ccd90d4b80d282249f7df9351 Mon Sep 17 00:00:00 2001 From: Ang Hao Yang Date: Mon, 10 Dec 2018 01:52:59 +0800 Subject: [PATCH] Fixed sonatype.sbt. --- build.sbt | 2 -- sonatype.sbt.sample | 22 ++++++++++++++++++---- 2 files changed, 18 insertions(+), 6 deletions(-) diff --git a/build.sbt b/build.sbt index 71c2593..4723a4e 100644 --- a/build.sbt +++ b/build.sbt @@ -17,8 +17,6 @@ lazy val root = project in file(".") aggregate(core, contrib) dependsOn core set name := "wartremover-suppressor" ) -ThisBuild / publishTo := sonatypePublishTo.value - import ReleaseTransformations._ releaseCrossBuild := true diff --git a/sonatype.sbt.sample b/sonatype.sbt.sample index 4e0c945..3ea277a 100644 --- a/sonatype.sbt.sample +++ b/sonatype.sbt.sample @@ -1,6 +1,20 @@ -publishMavenStyle := true +ThisBuild / publishMavenStyle := true -licenses := Seq("APL2" -> url("http://www.apache.org/licenses/LICENSE-2.0.txt")) +ThisBuild / licenses := Seq("APL2" -> url("http://www.apache.org/licenses/LICENSE-2.0.txt")) -import xerial.sbt.Sonatype._ -sonatypeProjectHosting := ??? +//import xerial.sbt.Sonatype._ +//ThisBuild / sonatypeProjectHosting := ??? + +//Above did not work so this +ThisBuild / homepage := Some(url("https://github.com/yangzai/wartremover-suppressor")) +ThisBuild / scmInfo := Some( + ScmInfo( + url("https://github.com/yangzai/wartremover-suppressor"), + "scm:git@github.com:yangzai/wartremover-suppressor.git" + ) +) +ThisBuild / developers := List( + ??? +) + +ThisBuild / publishTo := sonatypePublishTo.value