Skip to content

Commit

Permalink
Add publishing & linting plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
stringbean committed Jun 1, 2023
1 parent 1215c59 commit 35601e9
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 0 deletions.
33 changes: 33 additions & 0 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,36 @@ scriptedLaunchOpts := {
}

scriptedBufferLog := false

organizationName := "Michael Stringer"
startYear := Some(2023)
licenses += ("Apache-2.0", new URL("https://www.apache.org/licenses/LICENSE-2.0.txt"))

developers := List(
Developer("stringbean", "Michael Stringer", "@the_stringbean", url("https://github.com/stringbean")),
)

homepage := Some(url("https://github.com/stringbean/sbt-jandex"))
scmInfo := Some(
ScmInfo(url("https://github.com/stringbean/sbt-jandex"), "https://github.com/stringbean/sbt-jandex.git"))
publishTo := sonatypePublishToBundle.value

import sbtrelease.ReleasePlugin.autoImport.ReleaseTransformations._

releasePublishArtifactsAction := PgpKeys.publishSigned.value

releaseProcess := Seq[ReleaseStep](
checkSnapshotDependencies,
inquireVersions,
runClean,
runTest,
releaseStepInputTask(scripted),
setReleaseVersion,
commitReleaseVersion,
tagRelease,
publishArtifacts,
releaseStepCommand("sonatypeBundleRelease"),
setNextVersion,
commitNextVersion,
pushChanges,
)
9 changes: 9 additions & 0 deletions project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// publishing
addSbtPlugin("com.github.sbt" % "sbt-pgp" % "2.2.1")
addSbtPlugin("com.github.sbt" % "sbt-release" % "1.1.0")
addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "3.9.21")

// code style
addSbtPlugin("de.heikoseeberger" % "sbt-header" % "5.9.0")
addSbtPlugin("com.sksamuel.scapegoat" %% "sbt-scapegoat" % "1.2.0")
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.5.0")
1 change: 1 addition & 0 deletions version.sbt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ThisBuild / version := "0.1.0-SNAPSHOT"

0 comments on commit 35601e9

Please sign in to comment.