Skip to content

Commit

Permalink
Merge pull request #1132 from http4s/merge-to-main
Browse files Browse the repository at this point in the history
Merge to main
  • Loading branch information
hamnis authored Nov 7, 2024
2 parents 2b71c70 + e765c72 commit ceb5f57
Show file tree
Hide file tree
Showing 10 changed files with 173 additions and 75 deletions.
26 changes: 7 additions & 19 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,9 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest]
scala: [2.12, 2.13, 3]
scala: [2.13, 3]
java: [temurin@11, temurin@17]
exclude:
- scala: 2.12
java: temurin@17
- scala: 3
java: temurin@17
runs-on: ${{ matrix.os }}
Expand Down Expand Up @@ -100,15 +98,15 @@ jobs:
run: sbt '++ ${{ matrix.scala }}' unusedCompileDependenciesTest

- name: Make target directories
if: github.event_name != 'pull_request' && (startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/series/0.9')
if: github.event_name != 'pull_request' && (startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/main')
run: mkdir -p core/target project/target

- name: Compress target directories
if: github.event_name != 'pull_request' && (startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/series/0.9')
if: github.event_name != 'pull_request' && (startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/main')
run: tar cf targets.tar core/target project/target

- name: Upload target directories
if: github.event_name != 'pull_request' && (startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/series/0.9')
if: github.event_name != 'pull_request' && (startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/main')
uses: actions/upload-artifact@v4
with:
name: target-${{ matrix.os }}-${{ matrix.java }}-${{ matrix.scala }}
Expand All @@ -117,7 +115,7 @@ jobs:
publish:
name: Publish Artifacts
needs: [build]
if: github.event_name != 'pull_request' && (startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/series/0.9')
if: github.event_name != 'pull_request' && (startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/main')
strategy:
matrix:
os: [ubuntu-latest]
Expand Down Expand Up @@ -158,16 +156,6 @@ jobs:
if: matrix.java == 'temurin@17' && steps.setup-java-temurin-17.outputs.cache-hit == 'false'
run: sbt +update

- name: Download target directories (2.12)
uses: actions/download-artifact@v4
with:
name: target-${{ matrix.os }}-${{ matrix.java }}-2.12

- name: Inflate target directories (2.12)
run: |
tar xf targets.tar
rm targets.tar
- name: Download target directories (2.13)
uses: actions/download-artifact@v4
with:
Expand Down Expand Up @@ -258,7 +246,7 @@ jobs:
- name: Submit Dependencies
uses: scalacenter/sbt-dependency-submission@v2
with:
modules-ignore: root_2.12 root_2.13 root_3 docs_2.12 docs_2.13 docs_3 sbt-http4s-org-scalafix-internal_2.12 sbt-http4s-org-scalafix-internal_2.13 sbt-http4s-org-scalafix-internal_3
modules-ignore: root_2.13 root_3 docs_2.13 docs_3 sbt-http4s-org-scalafix-internal_2.13 sbt-http4s-org-scalafix-internal_3
configs-ignore: test scala-tool scala-doc-tool test-internal

site:
Expand Down Expand Up @@ -307,7 +295,7 @@ jobs:
run: sbt docs/tlSite

- name: Publish site
if: github.event_name != 'pull_request' && github.ref == 'refs/heads/series/0.9'
if: github.event_name != 'pull_request' && github.ref == 'refs/heads/main'
uses: peaceiris/actions-gh-pages@v4.0.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
1 change: 0 additions & 1 deletion .mergify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ pull_request_rules:
conditions:
- author=http4s-steward[bot]
- body~=labels:.*early-semver-patch
- status-success=Build and Test (ubuntu-latest, 2.12, temurin@11)
- status-success=Build and Test (ubuntu-latest, 2.13, temurin@11)
- status-success=Build and Test (ubuntu-latest, 2.13, temurin@17)
- status-success=Build and Test (ubuntu-latest, 3, temurin@11)
Expand Down
2 changes: 1 addition & 1 deletion .scalafmt.conf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
version=3.8.3

runner.dialect = scala212
runner.dialect = scala213
style = default

maxColumn = 100
Expand Down
130 changes: 106 additions & 24 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,7 @@ This file summarizes **notable** changes for each release, but does not describe

----

## v0.9.1 (2023-05-13)

### Dependency updates

* cats-effect-3.5.0
* fs2-3.7.0
* http4s-0.23.19

## v0.9.0 (2023-02-08)
## v1.0.0-M9 (2023-02-08)

### "Breaking" changes

Expand All @@ -22,8 +14,15 @@ This file summarizes **notable** changes for each release, but does not describe

* scala-3.2.2
* fs2-3.6.0
* http4s-1.0.0-M39

## v1.0.0-M8 (2023-01-05)

### Dependency updates

## v0.8.0 (2022-11-20)
* **http4s-1.0.0-M38**

## v1.0.0-M7 (2022-11-20)

### Breaking changes

Expand All @@ -34,37 +33,120 @@ This file summarizes **notable** changes for each release, but does not describe
* cats-effect-3.4.1
* fs2-3.4.0

## v0.7.0 (2022-03-23)
## v1.0.0-M6 (2022-09-20)

### Dependency updates

* **http4s-1.0.0-M37**

## v1.0.0-M5 (2022-08-27)

### Dependency updates

* **http4s-1.0.0-M36**

## v1.0.0-M4 (2022-07-29)

### Dependency updates

* **http4s-1.0.0-M35**

## v1.0.0-M3 (2022-07-07)

### Dependency updates

* cats-2.8.0
* **http4s-1.0.0-M34**

## v1.0.0-M2 (2022-05-31)

### Improvements

* Optimizations via new entity model. [#644](https://github.com/http4s/http4s-jdk-http-client/pull/644)
* Use Cats Effect EC as `HttpClient` executor. [#641](https://github.com/http4s/http4s-jdk-http-client/pull/641)

This is the spiritual successor to v0.5.0.
### Dependency updates

* cats-effect-3.3.12
* fs2-3.2.7
* **http4s-1.0.0-M33**

## v1.0.0-M1 (2022-03-23)

This is the spiritual successor to v0.6.0-M7.

### Breaking changes

* We now use the upstream WebSocket model made public in http4s-0.23.11.
* We now use the upstream WebSocket model made public in http4s-1.0.0-M32.

### Dependency updates

* scala-2.12.15, scala-2.13.8, scala-3.1.1
* cats-2.7.0
* scala-2.13.8, scala-3.1.1
* cats-effect-3.3.8
* fs2-3.2.5
* http4s-0.23.11
* http4s-1.0.0-M32

## v0.5.0 (2021-07-31)
## v0.6.0-M7 (2021-12-09)

This release is considered stable.
### Dependency updates

* **http4s-1.0.0-M30**
* **scala-3.1.0**
* scala-2.13.7
* cats-2.7.0
* cats-effect-3.3.0
* fs2-3.2.3
* scodec-bits-1.1.30
* case-insensitive-1.2.0

## v0.6.0-M6 (2021-10-13)

### Dependency updates

* **http4s-1.0.0-M29**
* fs2-3.1.5

## v0.6.0-M5 (2021-10-07)

### Dependency updates

* **http4s-1.0.0-M28**
* fs2-3.1.4
* scodec-1.1.29

## v0.6.0-M4 (2021-09-21)

### Dependency updates

* **http4s-1.0.0-M27**
* scala-2.12.15
* cats-effect-3.2.9
* vault-3.1.0

## v0.6.0-M3 (2021-09-15)

### Dependency updates

* **http4s-1.0.0-M25**
* scala-3.0.2
* cats-effect-3.2.8
* fs2-3.1.2
* scodec-bits-1.1.28

## v0.6.0-M2 (2021-08-08)

### Dependency updates

* **http4s-0.23.0**
* **http4s-1.0.0-M24**
* scala-2.12.14
* scala-3.0.1
* cats-effect-3.2.1
* fs2-3.0.6
* cats-effect-3.2.2
* fs2-3.1.0
* vault-3.0.4

## v0.5.0-RC1 (2021-05-28)
## v0.6.0-M1 (2021-05-28)

The v0.5.x releases will now track http4s-0.23.x.
This is the moral successor to v0.5.0-M4, tracking the 1.x releases of http4s.

### Breaking changes

Expand All @@ -73,7 +155,7 @@ The v0.5.x releases will now track http4s-0.23.x.
### Dependency updates

* **scala-3.0.0**
* **http4s-0.23.0-RC1**
* **http4s-1.0.0-M23**
* scala-2.13.6
* cats-2.6.1
* cats-effect-3.1.1
Expand Down
17 changes: 10 additions & 7 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ val catsV = "2.12.0"
val catsEffectV = "3.5.5"
val fs2V = "3.11.0"
val scodecV = "1.2.1"
val http4sV = "0.23.29"
val http4sV = "1.0.0-M43"
val log4catsV = "2.7.0"
val reactiveStreamsV = "1.0.4"
val vaultV = "3.6.0"
val caseInsensitiveV = "1.4.2"
Expand All @@ -48,7 +49,8 @@ val munitCatsEffectV = "2.0.0"

val emberServer = Seq(
"org.http4s" %% "http4s-ember-server" % http4sV,
"org.http4s" %% "http4s-dsl" % http4sV
"org.http4s" %% "http4s-dsl" % http4sV,
"org.typelevel" %% "log4cats-noop" % log4catsV
)

val coreDeps = Seq(
Expand All @@ -69,9 +71,9 @@ val coreDeps = Seq(
)).map(_ % Test)

val scala213 = "2.13.15"
ThisBuild / crossScalaVersions := Seq("2.12.20", scala213, "3.3.4")
ThisBuild / crossScalaVersions := Seq(scala213, "3.3.4")
ThisBuild / scalaVersion := scala213
ThisBuild / tlBaseVersion := "0.9"
ThisBuild / tlBaseVersion := "1.0"
ThisBuild / startYear := Some(2019)
ThisBuild / developers := List(
tlGitHubDev("ChristopherDavenport", "Christopher Davenport"),
Expand All @@ -81,8 +83,8 @@ ThisBuild / developers := List(

ThisBuild / tlJdkRelease := Some(11)
ThisBuild / githubWorkflowJavaVersions := Seq("11", "17").map(JavaSpec.temurin(_))
ThisBuild / tlCiReleaseBranches := Seq("series/0.9")
ThisBuild / tlSitePublishBranch := Some("series/0.9")
ThisBuild / tlCiReleaseBranches := Seq("main")
ThisBuild / tlSitePublishBranch := Some("main")

lazy val docsSettings =
Seq(
Expand All @@ -93,8 +95,9 @@ lazy val docsSettings =
import laika.config._
tlSiteHelium.value.site.versions(
Versions
.forCurrentVersion(Version("0.9.x", "0.9"))
.forCurrentVersion(Version("1.x", "1.x"))
.withOlderVersions(
Version("0.9.x", "0.9"),
Version("0.8.x", "0.8"),
Version("0.7.x", "0.7"),
Version("0.6.x", "0.6.0-M7"),
Expand Down
Loading

0 comments on commit ceb5f57

Please sign in to comment.