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

use sbt-c-release plugin for releases #225

Merged
merged 3 commits into from
Oct 18, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
24 changes: 24 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Release
on:
push:
branches: [master, main]
ramazanyich marked this conversation as resolved.
Show resolved Hide resolved
tags: ["*"]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 8
cache: sbt
- uses: sbt/setup-sbt@v1
- run: sbt ci-release
env:
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }}
PGP_SECRET: ${{ secrets.PGP_SECRET }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
11 changes: 10 additions & 1 deletion build.sbt
Original file line number Diff line number Diff line change
@@ -1,7 +1,16 @@
import sbt.Keys.thisProjectRef

ThisBuild / organization := "io.waylay.kairosdb"

ThisBuild / homepage := Some(url("https://waylay.io"))
ThisBuild / developers := List(
Developer(
"ramazanyich",
"Ramil Israfilov",
"ramazanyich@gmail.com",
url("https://github.com/ramazanyich")
),
Developer("brunoballekens", "Bruno Ballekens", "bruno@waylay.io", url("https://github.com/brunoballekens"))
)
val playWsVersion = "3.0.5"
val playJsonVersion = "3.0.4"
val specs2Version = "4.20.9"
Expand Down
13 changes: 7 additions & 6 deletions project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
addSbtPlugin("com.github.sbt" % "sbt-site" % "1.7.0")
addSbtPlugin("com.github.sbt" % "sbt-release" % "1.4.0")
addSbtPlugin("com.github.sbt" % "sbt-ghpages" % "0.8.0")
addSbtPlugin("org.scoverage" % "sbt-scoverage" % "2.2.1")
addSbtPlugin("org.scoverage" % "sbt-coveralls" % "1.3.14")
addSbtPlugin("com.github.sbt" % "sbt-pgp" % "2.3.0")
addSbtPlugin("com.github.sbt" % "sbt-site" % "1.7.0")
addSbtPlugin("com.github.sbt" % "sbt-release" % "1.4.0")
ramazanyich marked this conversation as resolved.
Show resolved Hide resolved
addSbtPlugin("com.github.sbt" % "sbt-ghpages" % "0.8.0")
addSbtPlugin("org.scoverage" % "sbt-scoverage" % "2.2.1")
addSbtPlugin("org.scoverage" % "sbt-coveralls" % "1.3.14")
addSbtPlugin("com.github.sbt" % "sbt-pgp" % "2.3.0")
addSbtPlugin("com.github.sbt" % "sbt-ci-release" % "1.8.0")

// scala-xml issues
// TODO remove when everything has migrated to scala-xml 2.x
Expand Down
10 changes: 1 addition & 9 deletions publish.sbt
Original file line number Diff line number Diff line change
@@ -1,16 +1,8 @@
releasePublishArtifactsAction := PgpKeys.publishSigned.value
ramazanyich marked this conversation as resolved.
Show resolved Hide resolved

publishMavenStyle := true

pomIncludeRepository := { _ => false }

publishTo := {
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")
}

updateOptions := updateOptions.value.withGigahorse(false)

Expand Down Expand Up @@ -39,4 +31,4 @@ pomExtra := (
<name>Bruno Ballekens</name>
<url>https://github.com/brunoballekens</url>
</developer>
</developers>)
ramazanyich marked this conversation as resolved.
Show resolved Hide resolved
</developers>)
1 change: 0 additions & 1 deletion version.sbt

This file was deleted.