Skip to content

Commit

Permalink
Maven Central (#92)
Browse files Browse the repository at this point in the history
* - Configure Github Actions && sbt-ci-release
- Remove TravisCI

* - Replace Bintray by Maven Central
- Configure Github Actions && sbt-ci-release
- Remove TravisCI
  • Loading branch information
guizmaii authored Apr 10, 2021
1 parent 482dc78 commit d7a6888
Show file tree
Hide file tree
Showing 7 changed files with 90 additions and 18 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/CI.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: CI

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
test:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: setup-scala
uses: olafurpg/setup-scala@v10
with:
java-version: adopt@1.11
- name: tests
run: |
sbt clean +test
formatting:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: setup-scala
uses: olafurpg/setup-scala@v10
with:
java-version: adopt@1.11
- name: Formatting
run: |
sbt scalafmtSbtCheck scalafmtCheck test:scalafmtCheck
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 }}
16 changes: 16 additions & 0 deletions .github/workflows/scala-steward.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: scala-steward

# This workflow will launch everyday at 00:00
on:
schedule:
- cron: '0 0 * * *'

jobs:
scala-steward:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Scala Steward Github Action
uses: scala-steward-org/scala-steward-action@v2.11.0
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
9 changes: 0 additions & 9 deletions .travis.yml

This file was deleted.

4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/).

## [Unreleased]

- Replace Bintray by Maven Central
- Configure Github Actions && sbt-ci-release
- Remove TravisCI

## [v1.0.1] 2020-10-31

- **Update Scala 2.13 and 2.12**
Expand Down
16 changes: 13 additions & 3 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,16 @@ libraryDependencies ++= Seq(
scalatestPlus
)

// sbt-bintray options
licenses += ("MIT", url("http://opensource.org/licenses/MIT"))
bintrayPackageLabels := Seq("JWT", "Scala")
inThisBuild(List(
organization := "com.guizmaii",
homepage := Some(url("https://github.com/guizmaii/scala-nimbus-jose-jwt")),
licenses := List("MIT" -> url("http://opensource.org/licenses/MIT")),
developers := List(
Developer(
"guizmaii",
"Jules Ivanic",
"jules.ivanic@gmail.com",
url("https://blog.jules-ivanic.com/#/")
)
)
))
11 changes: 5 additions & 6 deletions project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
addSbtPlugin("com.timushev.sbt" % "sbt-updates" % "0.5.2")
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.4.2")
addSbtPlugin("com.dwijnand" % "sbt-dynver" % "4.1.1")
addSbtPlugin("org.foundweekends" % "sbt-bintray" % "0.6.1")
addSbtPlugin("org.scoverage" % "sbt-scoverage" % "1.6.1")
addSbtPlugin("io.github.davidgregory084" % "sbt-tpolecat" % "0.1.17")
addSbtPlugin("com.timushev.sbt" % "sbt-updates" % "0.5.2")
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.4.2")
addSbtPlugin("org.scoverage" % "sbt-scoverage" % "1.6.1")
addSbtPlugin("io.github.davidgregory084" % "sbt-tpolecat" % "0.1.17")
addSbtPlugin("com.geirsson" % "sbt-ci-release" % "1.5.7")

0 comments on commit d7a6888

Please sign in to comment.