Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Maven Central publishing #130

Merged
merged 1 commit into from
Jun 2, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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