Skip to content

Commit

Permalink
Merge pull request #95 from vasilmkd/jdk17
Browse files Browse the repository at this point in the history
Add JDK 17 to the http4s build
  • Loading branch information
rossabaker authored Sep 22, 2021
2 parents 89ae1b8 + ef34e4e commit 16d0401
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,11 @@ on:
tags: [v*, v*]

env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
JABBA_INDEX: 'https://github.com/typelevel/jdk-index/raw/main/index.json'
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
PGP_SECRET: ${{ secrets.PGP_SECRET }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

jobs:
build:
Expand All @@ -27,7 +28,7 @@ jobs:
matrix:
os: [ubuntu-latest]
scala: [2.12.15]
java: [adopt@1.8]
java: [adoptium@8]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout current branch (full)
Expand Down Expand Up @@ -87,7 +88,7 @@ jobs:
matrix:
os: [ubuntu-latest]
scala: [2.12.15]
java: [adopt@1.8]
java: [adoptium@8]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout current branch (full)
Expand Down
2 changes: 2 additions & 0 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,7 @@ inThisBuild(
WorkflowStep.Sbt(List("test"), name = Some("Run tests")),
WorkflowStep.Sbt(List("doc"), name = Some("Build docs"))
),
githubWorkflowJavaVersions := Seq("adoptium@8"),
githubWorkflowEnv += ("JABBA_INDEX" -> "https://github.com/typelevel/jdk-index/raw/main/index.json"),
spiewakMainBranches := Seq("main")
))
3 changes: 2 additions & 1 deletion core/src/main/scala/org/http4s/sbt/Http4sOrgPlugin.scala
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ object Http4sOrgPlugin extends AutoPlugin {
val githubActionsSettings: Seq[Setting[_]] =
Seq(
spiewakMainBranches := Seq("main"),
githubWorkflowJavaVersions := List("[email protected]", "[email protected]", "[email protected]"),
githubWorkflowJavaVersions := List("adoptium@8", "adoptium@11", "adoptium@17"),
githubWorkflowEnv += ("JABBA_INDEX" -> "https://github.com/typelevel/jdk-index/raw/main/index.json"),
githubWorkflowBuild := Seq(
WorkflowStep
.Sbt(List("scalafmtCheckAll", "scalafmtSbtCheck"), name = Some("Check formatting")),
Expand Down

0 comments on commit 16d0401

Please sign in to comment.