diff --git a/build.sbt b/build.sbt index 41821fd..0a7fe50 100644 --- a/build.sbt +++ b/build.sbt @@ -1,3 +1,25 @@ +inThisBuild( + List( + organization := "com.github.sbt", + homepage := Some(url("https://github.com/olafurpg/sbt-ci-release")), + licenses := Seq( + "Apache-2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0") + ), + developers := List( + Developer( + "olafurpg", + "Ólafur Páll Geirsson", + "olafurpg@gmail.com", + url("https://geirsson.com") + ) + ) + ) +) + +import xerial.sbt.Sonatype.sonatypeCentralHost + +ThisBuild / sonatypeCredentialHost := sonatypeCentralHost + name:= "HL7-PET" //githubOwner := "cdc.gov" @@ -65,6 +87,17 @@ libraryDependencies += "com.google.code.gson" % "gson" % "2.10.1" // case x => MergeStrategy.first //} -crossPaths:= true +// crossPaths:= true + +// publishArtifact in (Compile, packageSrc) := true -publishArtifact in (Compile, packageSrc) := true +lazy val plugin = project + .enablePlugins(SbtPlugin) + .settings( + moduleName := "sbt-ci-release", + pluginCrossBuild / sbtVersion := "1.0.4", + addSbtPlugin("com.github.sbt" % "sbt-dynver" % "5.0.1"), + addSbtPlugin("com.github.sbt" % "sbt-git" % "2.0.1"), + addSbtPlugin("com.github.sbt" % "sbt-pgp" % "2.2.1"), + addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "3.11.2") + )