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 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
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]
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
1 change: 0 additions & 1 deletion project/plugins.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ 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")

// scala-xml issues
// TODO remove when everything has migrated to scala-xml 2.x
Expand Down
39 changes: 1 addition & 38 deletions publish.sbt
Original file line number Diff line number Diff line change
@@ -1,42 +1,5 @@
releasePublishArtifactsAction := PgpKeys.publishSigned.value

publishMavenStyle := true
//releasePublishArtifactsAction := PgpKeys.publishSigned.value

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)

pomExtra := (
<url>https://github.com/waylayio/kairosdb-scala</url>
<licenses>
<license>
<name>MIT License</name>
<url>http://www.opensource.org/licenses/mit-license.php</url>
<distribution>repo</distribution>
</license>
</licenses>
<developers>
<developer>
<id>francisdb</id>
<name>Francis De Brabandere</name>
<url>https://github.com/francisdb</url>
</developer>
<developer>
<id>thomastoye</id>
<name>Thomas Toye</name>
<url>https://github.com/thomastoye</url>
</developer>
<developer>
<id>brunoballekens</id>
<name>Bruno Ballekens</name>
<url>https://github.com/brunoballekens</url>
</developer>
</developers>)
ramazanyich marked this conversation as resolved.
Show resolved Hide resolved
1 change: 0 additions & 1 deletion version.sbt

This file was deleted.