Skip to content

Commit

Permalink
Merge branch 'master' into scala-steward-updates/patch
Browse files Browse the repository at this point in the history
  • Loading branch information
angelo-streetcontxt authored Apr 21, 2021
2 parents 3a75588 + 6558e7c commit 9bd58f2
Show file tree
Hide file tree
Showing 6 changed files with 50 additions and 143 deletions.
124 changes: 0 additions & 124 deletions .circleci/config.yml

This file was deleted.

20 changes: 20 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Release
on:
push:
branches: [master, main]
tags: ["*"]
jobs:
publish:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2.3.4
with:
fetch-depth: 0
- uses: olafurpg/setup-scala@v10
- uses: olafurpg/setup-gpg@v3
- 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 }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/target
project/target/
project/project/target/
/.bsp/
.idea
*.class
*.log
Expand Down
44 changes: 27 additions & 17 deletions build.sbt
Original file line number Diff line number Diff line change
@@ -1,34 +1,44 @@
inThisBuild(
List(
organization := "io.github.streetcontxt",
homepage := Some(url("https://github.com/streetcontxt/kcl-akka-stream")),
licenses := List("Apache-2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0")),
developers := List(
Developer(
"agenovese",
"Angelo Gerard Genovese",
"angelo.gerard.genovese@gmail.com",
url("https://github.com/agenovese")
),
Developer(
"elise-scx",
"Elise Cormie",
"elise@streetcontxt.com",
url("https://github.com/elise-scx")
)
)
)
)

configs(IntegrationTest)
Defaults.itSettings
val TestAndIntegrationTest = "test,it"

organization in ThisBuild := "com.streetcontxt"
organization in ThisBuild := "io.github.streetcontxt"
scalaVersion in ThisBuild := "2.13.5"
scalacOptions ++= Seq("-deprecation", "-feature")
crossScalaVersions in ThisBuild := Seq("2.12.13", "2.13.5")
licenses in ThisBuild += ("Apache-2.0", url("https://www.apache.org/licenses/LICENSE-2.0.html"))
bintrayOrganization in ThisBuild := Some("streetcontxt")

resolvers in ThisBuild += Resolver.bintrayRepo("streetcontxt", "maven")
sonatypeCredentialHost := "s01.oss.sonatype.org"

name := "kcl-akka-stream"

val versionPattern = "release-([0-9.]*)".r
version := sys.props
.get("CIRCLE_TAG")
.orElse(sys.env.get("CIRCLE_TAG"))
.flatMap {
case versionPattern(v) => Some(v)
case _ => None
}
.getOrElse("LOCAL-SNAPSHOT")

val AkkaVersion = "2.6.14"

val slf4j = "org.slf4j" % "slf4j-api" % "1.7.30"
val logback = "ch.qos.logback" % "logback-classic" % "1.2.3"
val amazonKinesisClient = "software.amazon.kinesis" % "amazon-kinesis-client" % "2.3.4"
val scalaKinesisProducer = "com.streetcontxt" %% "kpl-scala" % "1.1.0"
val scalaKinesisProducer = "io.github.streetcontxt" %% "kpl-scala" % "2.0.0"
val scalaCollectionCompat = "org.scala-lang.modules" %% "scala-collection-compat" % "2.4.3"
val scalaTest = "org.scalatest" %% "scalatest" % "3.2.7"
val scalaMock = "org.scalamock" %% "scalamock" % "5.1.0"
Expand All @@ -43,6 +53,6 @@ libraryDependencies ++= Seq(
scalaTest % TestAndIntegrationTest,
akkaStreamTestkit % TestAndIntegrationTest,
logback % TestAndIntegrationTest,
scalaMock % Test,
scalaKinesisProducer % IntegrationTest
scalaKinesisProducer,
scalaMock % Test
)
2 changes: 1 addition & 1 deletion project/build.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
sbt.version=1.4.9
sbt.version=1.5.0
2 changes: 1 addition & 1 deletion project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
addSbtPlugin("org.foundweekends" % "sbt-bintray" % "0.6.1")
addSbtPlugin("com.geirsson" % "sbt-ci-release" % "1.5.7")
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.4.2")

0 comments on commit 9bd58f2

Please sign in to comment.