Skip to content
This repository has been archived by the owner on Aug 19, 2024. It is now read-only.

Commit

Permalink
Replace SBT release plugin with Git plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
marc0der committed Feb 3, 2024
1 parent e6f79ce commit 45551f4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 18 deletions.
19 changes: 3 additions & 16 deletions build.sbt
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
enablePlugins(JavaServerAppPackaging)

enablePlugins(DockerPlugin)
enablePlugins(GitVersioning)

name := """sdkman-website"""

organization := "io.sdkman"

git.formattedShaVersion := git.gitHeadCommit.value.map(_.take(7))

Docker / packageName := "registry.digitalocean.com/sdkman/sdkman-website"

dockerBaseImage := "openjdk:11"
Expand Down Expand Up @@ -34,18 +36,3 @@ libraryDependencies ++= Seq(
"com.iheart" %% "ficus" % "1.5.0"
)

import sbtrelease.ReleasePlugin.autoImport.ReleaseTransformations._

releaseProcess := Seq[ReleaseStep](
checkSnapshotDependencies,
inquireVersions,
runClean,
runTest,
setReleaseVersion,
commitReleaseVersion,
tagRelease,
ReleaseStep(releaseStepTask(publish in Docker)),
setNextVersion,
commitNextVersion,
pushChanges
)
2 changes: 1 addition & 1 deletion project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.8.8")
addSbtPlugin("org.foundweekends.giter8" % "sbt-giter8-scaffold" % "0.11.0")
addSbtPlugin("com.github.sbt" % "sbt-native-packager" % "1.9.1")
addSbtPlugin("com.github.sbt" % "sbt-release" % "1.1.0")
addSbtPlugin("com.github.sbt" % "sbt-git" % "2.0.1")
1 change: 0 additions & 1 deletion version.sbt

This file was deleted.

0 comments on commit 45551f4

Please sign in to comment.