Skip to content

Commit

Permalink
first commit - wip
Browse files Browse the repository at this point in the history
  • Loading branch information
aracho1 committed May 1, 2024
1 parent 53a4efc commit 4c79c4a
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 36 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/release.yml
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, pull-requests: write }
secrets:
SONATYPE_PASSWORD: ${{ secrets.AUTOMATED_MAVEN_RELEASE_SONATYPE_PASSWORD }}
PGP_PRIVATE_KEY: ${{ secrets.AUTOMATED_MAVEN_RELEASE_PGP_SECRET }}
GITHUB_APP_PRIVATE_KEY: ${{ secrets.AUTOMATED_MAVEN_RELEASE_GITHUB_APP_PRIVATE_KEY }}
1 change: 0 additions & 1 deletion api-models/version.sbt

This file was deleted.

35 changes: 3 additions & 32 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ val compilerOptions = Seq(
"-Xfatal-warnings",
"-feature",
"-language:postfixOps",
"-language:implicitConversions"
"-language:implicitConversions",
"-release:11"
)

ThisBuild / scalacOptions ++= compilerOptions
Expand Down Expand Up @@ -212,39 +213,9 @@ lazy val apiModels = {
"com.fasterxml.jackson.module" % "jackson-module-scala_2.13" % jacksonScalaModule
),
organization := "com.gu",
publishTo := sonatypePublishToBundle.value,

scmInfo := Some(ScmInfo(
url("https://github.com/guardian/mobile-n10n"),
"scm:git:git@github.com:guardian/mobile-n10n.git"
)),

homepage := Some(url("https://github.com/guardian/mobile-n10n")),

developers := List(Developer(
id = "Guardian",
name = "Guardian",
email = null,
url = url("https://github.com/guardian")
)),
description := "Scala models for the Guardian Push Notifications API",
releasePublishArtifactsAction := PgpKeys.publishSigned.value,
releaseVersionFile := file("api-models/version.sbt"),
licenses := Seq("Apache V2" -> url("http://www.apache.org/licenses/LICENSE-2.0.html")),
releaseProcess := Seq[ReleaseStep](
checkSnapshotDependencies,
inquireVersions,
runClean,
runTest,
setReleaseVersion,
commitReleaseVersion,
tagRelease,
publishArtifacts,
releaseStepCommand("sonatypeBundleRelease"),
setNextVersion,
commitNextVersion,
pushChanges
)
licenses := Seq(License.Apache2),
))
}

Expand Down
4 changes: 2 additions & 2 deletions project/plugins.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ addSbtPlugin("com.github.sbt" % "sbt-release" % "1.4.0")

addSbtPlugin("org.foundweekends" % "sbt-bintray" % "0.6.1")

addSbtPlugin("com.github.sbt" % "sbt-pgp" % "2.2.1")

addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "3.10.0")

addSbtPlugin("net.virtual-void" % "sbt-dependency-graph" % "0.10.0-RC1")

addSbtPlugin("ch.epfl.scala" % "sbt-version-policy" % "3.2.1")

/*
Without setting VersionScheme.Always here on `scala-xml`, sbt 1.8.0 will raise fatal 'version conflict' errors when
used with sbt plugins like `sbt-native-packager`, which currently use sort-of-incompatible versions of the `scala-xml`
Expand Down
2 changes: 1 addition & 1 deletion version.sbt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
ThisBuild / version := "1.0.10"
ThisBuild / version := "1.0.18-SNAPSHOT"

0 comments on commit 4c79c4a

Please sign in to comment.