Skip to content

Commit

Permalink
Maven Central publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
dwijnand committed Jun 2, 2021
1 parent 3b058e3 commit 7f354e3
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 23 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:

- stage: publish
script:
- sbt publish
- sbt publishSigned

stages:
# runs on master commits and PRs
Expand Down
9 changes: 8 additions & 1 deletion RELEASING.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,17 @@
### Releasing

See the [prerequisites](#prerequisites) if this is your first release.

1. Check [closed issues without a milestone](https://github.com/sbt/sbt-java-formatter/issues?utf8=%E2%9C%93&q=is%3Aissue%20is%3Aclosed%20no%3Amilestone) and either assign them the upcoming release milestone or 'invalid'
1. Create a [new release](https://github.com/sbt/sbt-java-formatter/releases/new) with:
* the next tag version (e.g. `v0.4.0`)
* title and release description including notable changes
* link to the [milestone](https://github.com/sbt/sbt-java-formatter/milestones) showing an overview of closed issues for this release
* overview of contributors generated by [`sbt-authors`](https://github.com/2m/authors)
1. Travis CI will start a [CI build](https://travis-ci.org/sbt/sbt-java-formatter/builds) for the new tag and publish artifacts to Bintray
1. Travis CI will start a [CI build](https://travis-ci.org/sbt/sbt-java-formatter/builds) for the new tag and publish artifacts to Sonatype
1. Close/Release the staging repository on oss.sonatype.org.
1. Close the milestone for this release and create a new one

## Prerequisites

* You need oss.sontaype.org publish permissions by means of a request to [OSSRH-1324](https://issues.sonatype.org/browse/OSSRH-1324).
3 changes: 1 addition & 2 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ lazy val plugin = project
startYear := Some(2015),
description := "Formats Java code in your project.",
licenses += ("Apache-2.0", url("https://www.apache.org/licenses/LICENSE-2.0.html")),
bintrayRepository := "sbt-plugins",
bintrayOrganization := Some("ktosopl"),
publishTo := Some(if (isSnapshot.value) Opts.resolver.sonatypeSnapshots else Opts.resolver.sonatypeStaging),
crossSbtVersions := List("1.3.0"),
scalacOptions ++= Seq("-encoding", "UTF-8", "-unchecked", "-deprecation", "-feature"),
javacOptions ++= Seq("-encoding", "UTF-8"),
Expand Down
1 change: 0 additions & 1 deletion plugin/project/build.properties

This file was deleted.

17 changes: 0 additions & 17 deletions plugin/project/plugins.sbt

This file was deleted.

1 change: 0 additions & 1 deletion project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
addSbtPlugin("com.jsuereth" % "sbt-pgp" % "2.0.1")
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.4.2")
addSbtPlugin("de.heikoseeberger" % "sbt-header" % "5.6.0")
addSbtPlugin("org.foundweekends" % "sbt-bintray" % "0.5.6")
addSbtPlugin("com.dwijnand" % "sbt-dynver" % "4.1.1")

libraryDependencies += "org.scala-sbt" %% "scripted-plugin" % sbtVersion.value

0 comments on commit 7f354e3

Please sign in to comment.