Skip to content

Commit

Permalink
publish to sonatype
Browse files Browse the repository at this point in the history
  • Loading branch information
wing328 committed Feb 25, 2024
1 parent 4ae9bf0 commit 5056e59
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 6 deletions.
5 changes: 0 additions & 5 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,6 @@ lazy val `sbt-openapi-generator` = (project in file("."))

publishMavenStyle := false,

bintrayRepository := "sbt-plugins",
bintrayOrganization := Option("openapitools"),
bintrayPackageLabels := Seq("sbt", "plugin", "oas", "openapi", "openapi-generator"),
bintrayVcsUrl := Some("[email protected]:OpenAPITools/sbt-openapi-generator.git"),

scriptedLaunchOpts := {
scriptedLaunchOpts.value ++ Seq("-Xmx1024M", "-server", "-Dplugin.version=" + version.value)
},
Expand Down
3 changes: 2 additions & 1 deletion project/plugin.sbt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// Manages publishing.
addSbtPlugin("org.foundweekends" % "sbt-bintray" % "0.5.6")
//addSbtPlugin("org.foundweekends" % "sbt-bintray" % "0.5.6")
addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "3.9.13")

// Versions the build.
addSbtPlugin("com.dwijnand" % "sbt-dynver" % "4.1.1")
36 changes: 36 additions & 0 deletions publish.sbt
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
ThisBuild / organization := "org.openapitools.sbt-openapi-generator"
ThisBuild / organizationName := "OpenAPITools"
ThisBuild / organizationHomepage := Some(url("http://openapitools.org"))

ThisBuild / scmInfo := Some(
ScmInfo(
url("https://github.com/openapitools/sbt-openapi-generator"),
"scm:[email protected]:openapitools/sbt-openapi-generator.git"
)
)
ThisBuild / developers := List(
Developer(
id = "openapitools",
name = "OpenAPI Tools",
email = "[email protected]",
url = url("http://openapitools.org")
)
)

ThisBuild / description := "openapi-generator sbt plugin."
ThisBuild / licenses := List(
"Apache 2" -> new URL("http://www.apache.org/licenses/LICENSE-2.0.txt")
)
ThisBuild / homepage := Some(url("https://github.com/openapitools/sbt-openapi-generator"))

// Remove all additional repository other than Maven Central from POM
ThisBuild / pomIncludeRepository := { _ => false }
ThisBuild / publishTo := {
// For accounts created after Feb 2021:
// val nexus = "https://s01.oss.sonatype.org/"
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")
Some("releases" at nexus + "service/local/staging/deploy/maven2")
}
ThisBuild / publishMavenStyle := true

0 comments on commit 5056e59

Please sign in to comment.