Skip to content

Commit

Permalink
Merge pull request #525 from http4s/update/series/0.5/jetty-client-12…
Browse files Browse the repository at this point in the history
….0.0

Update jetty-client to 12.0.0 in series/0.5
  • Loading branch information
hamnis authored Aug 30, 2023
2 parents fa0ef28 + e046ba6 commit 6d9baa9
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 28 deletions.
46 changes: 23 additions & 23 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
matrix:
os: [ubuntu-latest]
scala: [2.13, 2.12, 3]
java: [temurin@11]
java: [temurin@17]
project: [rootJVM]
runs-on: ${{ matrix.os }}
timeout-minutes: 60
Expand All @@ -40,43 +40,43 @@ jobs:
with:
fetch-depth: 0

- name: Setup Java (temurin@11)
id: setup-java-temurin-11
if: matrix.java == 'temurin@11'
- name: Setup Java (temurin@17)
id: setup-java-temurin-17
if: matrix.java == 'temurin@17'
uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 11
java-version: 17
cache: sbt

- name: sbt update
if: matrix.java == 'temurin@11' && steps.setup-java-temurin-11.outputs.cache-hit == 'false'
if: matrix.java == 'temurin@17' && steps.setup-java-temurin-17.outputs.cache-hit == 'false'
run: sbt +update

- name: Check that workflows are up to date
run: sbt githubWorkflowCheck

- name: Check headers and formatting
if: matrix.java == 'temurin@11' && matrix.os == 'ubuntu-latest'
if: matrix.java == 'temurin@17' && matrix.os == 'ubuntu-latest'
run: sbt 'project ${{ matrix.project }}' '++ ${{ matrix.scala }}' headerCheckAll scalafmtCheckAll 'project /' scalafmtSbtCheck

- name: Test
run: sbt 'project ${{ matrix.project }}' '++ ${{ matrix.scala }}' test

- name: Check binary compatibility
if: matrix.java == 'temurin@11' && matrix.os == 'ubuntu-latest'
if: matrix.java == 'temurin@17' && matrix.os == 'ubuntu-latest'
run: sbt 'project ${{ matrix.project }}' '++ ${{ matrix.scala }}' mimaReportBinaryIssues

- name: Generate API documentation
if: matrix.java == 'temurin@11' && matrix.os == 'ubuntu-latest'
if: matrix.java == 'temurin@17' && matrix.os == 'ubuntu-latest'
run: sbt 'project ${{ matrix.project }}' '++ ${{ matrix.scala }}' doc

- name: Check scalafix lints
if: matrix.java == 'temurin@11' && !startsWith(matrix.scala, '3')
if: matrix.java == 'temurin@17' && !startsWith(matrix.scala, '3')
run: sbt 'project ${{ matrix.project }}' '++ ${{ matrix.scala }}' 'scalafixAll --check'

- name: Check unused compile dependencies
if: matrix.java == 'temurin@11'
if: matrix.java == 'temurin@17'
run: sbt 'project ${{ matrix.project }}' '++ ${{ matrix.scala }}' unusedCompileDependenciesTest

- name: Make target directories
Expand All @@ -101,25 +101,25 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
java: [temurin@11]
java: [temurin@17]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout current branch (full)
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Setup Java (temurin@11)
id: setup-java-temurin-11
if: matrix.java == 'temurin@11'
- name: Setup Java (temurin@17)
id: setup-java-temurin-17
if: matrix.java == 'temurin@17'
uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 11
java-version: 17
cache: sbt

- name: sbt update
if: matrix.java == 'temurin@11' && steps.setup-java-temurin-11.outputs.cache-hit == 'false'
if: matrix.java == 'temurin@17' && steps.setup-java-temurin-17.outputs.cache-hit == 'false'
run: sbt +update

- name: Download target directories (2.13, rootJVM)
Expand Down Expand Up @@ -182,25 +182,25 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
java: [temurin@11]
java: [temurin@17]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout current branch (full)
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Setup Java (temurin@11)
id: setup-java-temurin-11
if: matrix.java == 'temurin@11'
- name: Setup Java (temurin@17)
id: setup-java-temurin-17
if: matrix.java == 'temurin@17'
uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 11
java-version: 17
cache: sbt

- name: sbt update
if: matrix.java == 'temurin@11' && steps.setup-java-temurin-11.outputs.cache-hit == 'false'
if: matrix.java == 'temurin@17' && steps.setup-java-temurin-17.outputs.cache-hit == 'false'
run: sbt +update

- name: Submit Dependencies
Expand Down
8 changes: 4 additions & 4 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ inThisBuild(
tlSonatypeUseLegacyHost := false,
crossScalaVersions := Seq(Scala213, Scala212, "3.3.0"),
ThisBuild / scalaVersion := Scala213,
githubWorkflowJavaVersions := Seq(JavaSpec.temurin("11"))
githubWorkflowJavaVersions := Seq(JavaSpec.temurin("17"))
)
)

val http4sVersion = "0.23.23"

val jetty = "11.0.15"
val jetty = "12.0.0"

val netty = "4.1.97.Final"

Expand Down Expand Up @@ -63,8 +63,8 @@ lazy val server = project
libraryDependencies ++= List(
"io.netty" % "netty-codec-http2" % netty,
"org.eclipse.jetty" % "jetty-client" % jetty % Test,
"org.eclipse.jetty.http2" % "http2-client" % jetty % Test,
"org.eclipse.jetty.http2" % "http2-http-client-transport" % jetty % Test,
"org.eclipse.jetty.http2" % "jetty-http2-client" % jetty % Test,
"org.eclipse.jetty.http2" % "jetty-http2-client-transport" % jetty % Test,
"org.http4s" %% "http4s-server" % http4sVersion,
"org.http4s" %% "http4s-dsl" % http4sVersion % Test,
"ch.qos.logback" % "logback-classic" % "1.4.5" % Test,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ abstract class ServerTest extends IOSuite {
// on the classpath don't support prior-knowledge.

import org.eclipse.jetty.http2.client.HTTP2Client
import org.eclipse.jetty.http2.client.http.HttpClientTransportOverHTTP2
import org.eclipse.jetty.http2.client.transport.HttpClientTransportOverHTTP2
import org.eclipse.jetty.client.HttpClient

val server: Resource[IO, Server] = NettyServerBuilder[IO]
Expand Down

0 comments on commit 6d9baa9

Please sign in to comment.