Skip to content

Commit 9dd8e4a

Browse files
committed
Publish directly to Sonatype
1 parent cab149f commit 9dd8e4a

File tree

3 files changed

+7
-11
lines changed

3 files changed

+7
-11
lines changed

build.sbt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ ThisBuild / homepage := Some(url("https://github.com/sbt/sbinary"))
66
ThisBuild / version := "0.5.2-SNAPSHOT"
77
ThisBuild / scalaVersion := scala212
88
ThisBuild / crossScalaVersions := Seq(scala210, scala211, scala212, scala213, scala3)
9-
ThisBuild / bintrayPackage := "sbinary"
109
ThisBuild / developers := List(
1110
Developer(
1211
"drmaciver",
@@ -22,6 +21,11 @@ ThisBuild / licenses := Seq("MIT" -> new URL("https://github.com/sbt/sbinary/blo
2221
ThisBuild / scmInfo := Some(
2322
ScmInfo(url("https://github.com/sbt/sbinary"), "git@github.com:sbt/sbinary.git")
2423
)
24+
ThisBuild / pomIncludeRepository := (_ => false) // drop repos other than Maven Central from POM
25+
ThisBuild / publishTo := {
26+
val nexus = "https://oss.sonatype.org/"
27+
Some("releases" at nexus + "service/local/staging/deploy/maven2")
28+
}
2529

2630
lazy val root = (project in file("."))
2731
.aggregate(core, treeExample)

project/HouseRulesPlugins.scala

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,16 @@
11
import sbt._
22
import Keys._
3-
import bintray.BintrayPlugin
4-
import bintray.BintrayPlugin.autoImport._
53

64
object HouseRulesPlugin extends AutoPlugin {
7-
override def requires = plugins.JvmPlugin && BintrayPlugin
5+
override def requires = plugins.JvmPlugin
86
override def trigger = allRequirements
97

108
override def buildSettings: Seq[Def.Setting[_]] = baseBuildSettings
119
override def projectSettings: Seq[Def.Setting[_]] = baseSettings
1210

13-
lazy val baseBuildSettings: Seq[Def.Setting[_]] = Seq(
14-
bintrayOrganization := Some("sbt"),
15-
bintrayRepository := "maven-releases",
16-
)
11+
lazy val baseBuildSettings: Seq[Def.Setting[_]] = Seq()
1712

1813
lazy val baseSettings: Seq[Def.Setting[_]] = Seq(
19-
bintrayPackage := (ThisBuild / bintrayPackage).value,
20-
bintrayRepository := (ThisBuild / bintrayRepository).value,
2114
scalacOptions ++= Seq("-encoding", "utf8"),
2215
scalacOptions ++= Seq("-deprecation", "-feature", "-unchecked", "-Xlint"),
2316
scalacOptions += "-language:higherKinds",

project/plugins.sbt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
addSbtPlugin("org.foundweekends" % "sbt-bintray" % "0.5.6")
21
addSbtPlugin("com.jsuereth" % "sbt-pgp" % "2.0.1")
32
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.3.4")
43
addSbtPlugin("com.typesafe" % "sbt-mima-plugin" % "1.0.1")

0 commit comments

Comments
 (0)