Skip to content

Commit 9b5c9fc

Browse files
Migrate to Sonatype OSSRH
1 parent 4019052 commit 9b5c9fc

File tree

5 files changed

+39
-137
lines changed

5 files changed

+39
-137
lines changed

.circleci/config.yml

Lines changed: 0 additions & 124 deletions
This file was deleted.

.github/workflows/release.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Release
2+
on:
3+
push:
4+
branches: [master, main]
5+
tags: ["*"]
6+
jobs:
7+
publish:
8+
runs-on: ubuntu-20.04
9+
steps:
10+
- uses: actions/[email protected]
11+
with:
12+
fetch-depth: 0
13+
- uses: olafurpg/setup-scala@v10
14+
- uses: olafurpg/setup-gpg@v3
15+
- run: sbt ci-release
16+
env:
17+
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }}
18+
PGP_SECRET: ${{ secrets.PGP_SECRET }}
19+
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
20+
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ project/project/target/
44
.idea
55
*.class
66
*.log
7+
/.bsp/

build.sbt

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,26 @@
1-
organization in ThisBuild := "com.streetcontxt"
1+
inThisBuild(
2+
List(
3+
organization := "io.github.streetcontxt",
4+
homepage := Some(url("https://github.com/streetcontxt/kcl-akka-stream")),
5+
licenses := List("Apache-2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0")),
6+
developers := List(
7+
Developer(
8+
"agenovese",
9+
"Angelo Gerard Genovese",
10+
11+
url("https://github.com/agenovese")
12+
)
13+
)
14+
)
15+
)
16+
17+
organization in ThisBuild := "io.github.streetcontxt"
218
scalaVersion in ThisBuild := "2.13.1"
319
crossScalaVersions := Seq("2.11.12", "2.12.11", "2.13.1")
420
licenses in ThisBuild += ("Apache-2.0", url("https://www.apache.org/licenses/LICENSE-2.0.html"))
5-
bintrayOrganization in ThisBuild := Some("streetcontxt")
621

722
name := "kpl-scala"
823

9-
val versionPattern = "release-([0-9\\.]*)".r
10-
version := sys.props
11-
.get("CIRCLE_TAG")
12-
.orElse(sys.env.get("CIRCLE_TAG"))
13-
.flatMap {
14-
case versionPattern(v) => Some(v)
15-
case _ => None
16-
}
17-
.getOrElse("LOCAL-SNAPSHOT")
18-
1924
val slf4j = "org.slf4j" % "slf4j-api" % "1.7.25"
2025
val amazonKinesisProducer = "com.amazonaws" % "amazon-kinesis-producer" % "0.12.11"
2126
val typesafeConfig = "com.typesafe" % "config" % "1.3.1"

project/plugins.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
addSbtPlugin("org.foundweekends" % "sbt-bintray" % "0.5.2")
1+
addSbtPlugin("com.geirsson" % "sbt-ci-release" % "1.5.7")
22

0 commit comments

Comments
 (0)