Skip to content

Commit

Permalink
use sbt-ci-release (#200)
Browse files Browse the repository at this point in the history
  • Loading branch information
ramazanyich authored Oct 18, 2024
1 parent 1cdf7e9 commit f6af798
Show file tree
Hide file tree
Showing 6 changed files with 38 additions and 56 deletions.
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: 11
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 }}
13 changes: 12 additions & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,18 @@ lazy val nettyExclusions = Seq(
"netty-codec-http"
).map(name => ExclusionRule(organization = "io.netty", name = name))

ThisBuild / organization := "io.waylay.influxdb"
ThisBuild / organization := "io.waylay"
ThisBuild / homepage := Some(url("https://waylay.io"))
ThisBuild / developers := List(
Developer(
"ramazanyich",
"Ramil Israfilov",
"[email protected]",
url("https://github.com/ramazanyich")
),
Developer("brunoballekens", "Bruno Ballekens", "[email protected]", url("https://github.com/brunoballekens"))
)
ThisBuild / licenses := List("MIT License" -> url("http://www.opensource.org/licenses/mit-license.php"))

lazy val root = (project in file("."))
.settings(
Expand Down
4 changes: 2 additions & 2 deletions project/plugins.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ addSbtPlugin("com.github.sbt" % "sbt-release" % "1.4.0")

addSbtPlugin("com.github.sbt" % "sbt-ghpages" % "0.7.0")

addSbtPlugin("com.github.sbt" % "sbt-pgp" % "2.3.0")
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.5.2")
addSbtPlugin("com.github.sbt" % "sbt-ci-release" % "1.8.0")
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.5.2")
48 changes: 0 additions & 48 deletions publish.sbt
Original file line number Diff line number Diff line change
@@ -1,51 +1,3 @@
releasePublishArtifactsAction := PgpKeys.publishSigned.value

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)

pomExtra := (<url>https://github.com/waylayio/influxdb-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>
<developer>
<id>gabrielreid</id>
<name>Gabriel Reid</name>
<url>https://github.com/gabrielreid</url>
</developer>
<developer>
<id>ramazanyich</id>
<name>Ramil Israfilov</name>
<url>https://github.com/ramazanyich</url>
</developer>
</developers>)
4 changes: 0 additions & 4 deletions sonatype.sbt

This file was deleted.

1 change: 0 additions & 1 deletion version.sbt

This file was deleted.

0 comments on commit f6af798

Please sign in to comment.