Skip to content

Commit

Permalink
Publish to Sonatype
Browse files Browse the repository at this point in the history
eed3si9n committed Feb 17, 2022
1 parent 79fe6bd commit f06ff4e
Showing 3 changed files with 19 additions and 9 deletions.
25 changes: 18 additions & 7 deletions build.sbt
Original file line number Diff line number Diff line change
@@ -10,16 +10,27 @@ lazy val root = (project in file("."))
.enablePlugins(SbtPlugin)
.settings(
name := "sbt-buildinfo",
pluginCrossBuild / sbtVersion := "1.2.8",
scalacOptions := Seq("-Xlint", "-Xfatal-warnings", "-unchecked", "-deprecation", "-feature", "-language:implicitConversions"),
scalacOptions += "-language:experimental.macros",
libraryDependencies += "org.scala-lang" % "scala-reflect" % scalaVersion.value % Provided,
description := "sbt plugin to generate build info",
homepage := Some(url("https://github.com/sbt/sbt-buildinfo")),
licenses := Seq("MIT License" -> url("https://github.com/sbt/sbt-buildinfo/blob/master/LICENSE")),
scriptedLaunchOpts ++= Seq("-Xmx1024M", "-Xss4M", "-Dplugin.version=" + version.value),
scriptedBufferLog := false,
publishTo := (bintray / publishTo).value,
publishMavenStyle := false,
bintrayOrganization := Some("eed3si9n"),
(pluginCrossBuild / sbtVersion) := {
scalaBinaryVersion.value match {
case "2.12" => "1.2.8"
}
}
)

ThisBuild / description := "sbt plugin to generate build info"
ThisBuild / licenses := Seq("MIT License" -> url("https://github.com/sbt/sbt-buildinfo/blob/master/LICENSE"))
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
ThisBuild / homepage := Some(url("https://github.com/sbt/sbt-buildinfo"))
2 changes: 1 addition & 1 deletion project/build.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
sbt.version=1.3.13
sbt.version=1.6.2
1 change: 0 additions & 1 deletion project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
addSbtPlugin("org.foundweekends" % "sbt-bintray" % "0.6.0")
addSbtPlugin("com.geirsson" % "sbt-ci-release" % "1.5.3")

0 comments on commit f06ff4e

Please sign in to comment.