-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #299 from guardian/adopt-GHA-Scala-Library-Release…
…-Workflow Adopt GHA Scala Library Release Workflow
- Loading branch information
Showing
5 changed files
with
28 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
name: Release | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
release: | ||
uses: guardian/gha-scala-library-release-workflow/.github/workflows/reusable-release.yml@main | ||
permissions: | ||
contents: write | ||
secrets: | ||
AUTOMATED_MAVEN_RELEASE_PGP_SECRET: ${{ secrets.AUTOMATED_MAVEN_RELEASE_PGP_SECRET }} | ||
AUTOMATED_MAVEN_RELEASE_SONATYPE_PASSWORD: ${{ secrets.AUTOMATED_MAVEN_RELEASE_SONATYPE_PASSWORD }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
import Dependencies._ | ||
import sbtrelease.ReleaseStateTransformations._ | ||
import sbtversionpolicy.withsbtrelease.ReleaseVersion.fromAggregatedAssessedCompatibilityWithLatestRelease | ||
|
||
organization := "com.gu" | ||
|
||
|
@@ -8,41 +9,18 @@ name := "facia-api-client" | |
description := "Scala client for The Guardian's Facia JSON API" | ||
|
||
val sonatypeReleaseSettings = Seq( | ||
licenses := Seq("Apache V2" -> url("http://www.apache.org/licenses/LICENSE-2.0.html")), | ||
scmInfo := Some(ScmInfo( | ||
url("https://github.com/guardian/facia-scala-client"), | ||
"scm:git:[email protected]:guardian/facia-scala-client.git" | ||
)), | ||
pomExtra := ( | ||
<url>https://github.com/guardian/facia-scala-client</url> | ||
<developers> | ||
<developer> | ||
<id>janua</id> | ||
<name>Francis Carr</name> | ||
<url>https://github.com/janua</url> | ||
</developer> | ||
<developer> | ||
<id>adamnfish</id> | ||
<name>Adam Fisher</name> | ||
<url>https://github.com/adamnfish</url> | ||
</developer> | ||
</developers> | ||
), | ||
licenses := Seq("Apache V2" -> url("https://www.apache.org/licenses/LICENSE-2.0.html")), | ||
releaseVersion := fromAggregatedAssessedCompatibilityWithLatestRelease().value, | ||
releaseCrossBuild := true, // true if you cross-build the project for multiple Scala versions | ||
releaseProcess := Seq[ReleaseStep]( | ||
checkSnapshotDependencies, | ||
inquireVersions, | ||
runClean, | ||
runTest, | ||
setReleaseVersion, | ||
commitReleaseVersion, | ||
tagRelease, | ||
// For non cross-build projects, use releaseStepCommand("publishSigned") | ||
releaseStepCommandAndRemaining("+publishSigned"), | ||
releaseStepCommand("sonatypeBundleRelease"), | ||
setNextVersion, | ||
commitNextVersion, | ||
pushChanges | ||
commitNextVersion | ||
) | ||
) | ||
|
||
|
@@ -52,7 +30,6 @@ lazy val root = (project in file(".")).aggregate( | |
fapiClient_play27, | ||
fapiClient_play28 | ||
).settings( | ||
publishArtifact := false, | ||
publish / skip := true, | ||
sonatypeReleaseSettings | ||
) | ||
|
@@ -70,12 +47,12 @@ def baseProject(module: String, majorMinorVersion: String) = Project(s"$module-p | |
scalaVersion := "2.13.11", | ||
crossScalaVersions := Seq(scalaVersion.value, "2.12.18"), | ||
scalacOptions := Seq( | ||
"-release:11", | ||
"-feature", | ||
"-deprecation", | ||
"-Xfatal-warnings" | ||
), | ||
libraryDependencies += scalaTest, | ||
publishTo := sonatypePublishToBundle.value, | ||
sonatypeReleaseSettings | ||
) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
sbt.version=1.9.3 | ||
sbt.version=1.9.7 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
addSbtPlugin("com.github.sbt" % "sbt-release" % "1.1.0") | ||
|
||
addSbtPlugin("com.github.sbt" % "sbt-pgp" % "2.2.1") | ||
addSbtPlugin("ch.epfl.scala" % "sbt-version-policy" % "3.2.0") | ||
|
||
addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "3.9.21") | ||
|