Skip to content

Commit 27640f5

Browse files
authored
Merge pull request #56 from http4s/topic/merge-0.2-main
Merge series/0.2 into main
2 parents c353c95 + 06b9783 commit 27640f5

File tree

7 files changed

+54
-21
lines changed

7 files changed

+54
-21
lines changed

.github/workflows/ci.yml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,18 +27,20 @@ jobs:
2727
matrix:
2828
os: [ubuntu-latest]
2929
scala: [2.12.15, 3.1.0, 2.13.7]
30-
java: [adopt@1.8]
30+
java: [temurin@8]
3131
runs-on: ${{ matrix.os }}
3232
steps:
3333
- name: Checkout current branch (full)
3434
uses: actions/checkout@v2
3535
with:
3636
fetch-depth: 0
3737

38-
- name: Setup Java and Scala
39-
uses: olafurpg/setup-scala@v13
38+
- name: Setup Java (temurin@8)
39+
if: matrix.java == 'temurin@8'
40+
uses: actions/setup-java@v2
4041
with:
41-
java-version: ${{ matrix.java }}
42+
distribution: temurin
43+
java-version: 8
4244

4345
- name: Cache sbt
4446
uses: actions/cache@v2
@@ -74,18 +76,20 @@ jobs:
7476
matrix:
7577
os: [ubuntu-latest]
7678
scala: [2.13.7]
77-
java: [adopt@1.8]
79+
java: [temurin@8]
7880
runs-on: ${{ matrix.os }}
7981
steps:
8082
- name: Checkout current branch (full)
8183
uses: actions/checkout@v2
8284
with:
8385
fetch-depth: 0
8486

85-
- name: Setup Java and Scala
86-
uses: olafurpg/setup-scala@v13
87+
- name: Setup Java (temurin@8)
88+
if: matrix.java == 'temurin@8'
89+
uses: actions/setup-java@v2
8790
with:
88-
java-version: ${{ matrix.java }}
91+
distribution: temurin
92+
java-version: 8
8993

9094
- name: Cache sbt
9195
uses: actions/cache@v2

.scalafmt.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version = 3.1.0
1+
version = 3.2.1
22

33
runner.dialect = Scala213Source3
44

build.sbt

Lines changed: 28 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ ThisBuild / scmInfo := Some(
4141

4242
ThisBuild / crossScalaVersions := Seq("2.12.15", "3.1.0", "2.13.7")
4343

44+
ThisBuild / githubWorkflowJavaVersions := Seq(JavaSpec.temurin("8"))
45+
4446
replaceCommandAlias("ci", CI.AllCIs.map(_.toString).mkString)
4547
addCommandAlias("ciFirefox", CI.Firefox.toString)
4648
addCommandAlias("ciChrome", CI.Chrome.toString)
@@ -105,12 +107,13 @@ ThisBuild / Test / jsEnv := {
105107
}
106108
}
107109

108-
val catsEffectVersion = "3.2.9"
109-
val fs2Version = "3.2.2"
110+
val catsEffectVersion = "3.3.0"
111+
val fs2Version = "3.2.3"
110112
val http4sVersion = "1.0.0-M29"
111113
val scalaJSDomVersion = "2.0.0"
114+
val circeVersion = "0.15.0-M1"
112115
val munitVersion = "0.7.29"
113-
val munitCEVersion = "1.0.6"
116+
val munitCEVersion = "1.0.7"
114117

115118
lazy val root =
116119
project.in(file(".")).aggregate(dom, tests).enablePlugins(NoPublishPlugin)
@@ -162,7 +165,15 @@ import laika.ast.Path.Root
162165
import laika.ast._
163166
import laika.ast.LengthUnit._
164167
import laika.helium.Helium
165-
import laika.helium.config.{HeliumIcon, IconLink, ImageLink, ReleaseInfo, Teaser, TextLink}
168+
import laika.helium.config.{
169+
Favicon,
170+
HeliumIcon,
171+
IconLink,
172+
ImageLink,
173+
ReleaseInfo,
174+
Teaser,
175+
TextLink
176+
}
166177
import laika.theme.config.Color
167178

168179
Global / excludeLintKeys += laikaDescribe
@@ -171,8 +182,13 @@ lazy val docs =
171182
project
172183
.in(file("mdocs"))
173184
.settings(
174-
fatalWarningsInCI := false, // Remove once mdocjs bumps to sjs-dom v2
185+
fatalWarningsInCI := false,
175186
mdocJS := Some(jsdocs),
187+
mdocVariables ++= Map(
188+
"js-opt" -> "fast",
189+
"HTTP4S_VERSION" -> http4sVersion,
190+
"CIRCE_VERSION" -> circeVersion
191+
),
176192
Laika / sourceDirectories := Seq(mdocOut.value),
177193
laikaDescribe := "<disabled>",
178194
laikaConfig ~= { _.withRawContent },
@@ -210,6 +226,13 @@ lazy val docs =
210226
(Color.hex("334044"), Color.hex("5B7980")) // only used for landing page background
211227
)
212228
.site
229+
.favIcons(
230+
Favicon
231+
.external("https://http4s.org/images/http4s-favicon.svg", "32x32", "image/svg+xml")
232+
.copy(sizes = None),
233+
Favicon.external("https://http4s.org/images/http4s-favicon.png", "32x32", "image/png")
234+
)
235+
.site
213236
.darkMode
214237
.disabled
215238
.site

docs/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ libraryDependencies += "org.http4s" %%% "http4s-dom" % "0.2.0"
2121
// libraryDependencies += "org.http4s" %%% "http4s-dom" % "0.1.0"
2222

2323
// recommended, brings in the latest client module
24-
libraryDependencies += "org.http4s" %%% "http4s-client" % "0.23.6"
24+
libraryDependencies += "org.http4s" %%% "http4s-client" % "@HTTP4S_VERSION@"
2525

2626
// optional, for JSON support
27-
libraryDependencies += "org.http4s" %%% "http4s-circe" % "0.23.6"
28-
libraryDependencies += "io.circe" %%% "circe-generic" % "0.15.0-M1"
27+
libraryDependencies += "org.http4s" %%% "http4s-circe" % "@HTTP4S_VERSION@"
28+
libraryDependencies += "io.circe" %%% "circe-generic" % "@CIRCE_VERSION@"
2929
```
3030

3131
## Example

docs/default.template.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<meta name="description" content="${_}"/>
1414
@:@
1515
@:for(helium.favIcons)
16-
<link rel="icon" @:attribute(sizes, _.sizes) @:attribute(type, _.type) href="@:path(_.target)"/>
16+
<link rel="icon" @:attribute(sizes, _.sizes) @:attribute(type, _.type) @:attribute(href, _.target)/>
1717
@:@
1818
@:for(helium.webFonts)
1919
<link rel="stylesheet" href="${_}">

project/plugins.sbt

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
1+
val http4sVersion = "0.23.7"
2+
3+
enablePlugins(BuildInfoPlugin)
4+
buildInfoKeys += "http4sVersion" -> http4sVersion
5+
16
libraryDependencies += "org.scala-js" %% "scalajs-env-selenium" % "1.1.1"
2-
libraryDependencies += "org.http4s" %% "http4s-ember-server" % "0.23.6"
7+
libraryDependencies += "org.http4s" %% "http4s-ember-server" % http4sVersion
38

4-
addSbtPlugin("com.codecommit" % "sbt-spiewak-sonatype" % "0.22.1")
5-
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.4.3")
9+
addSbtPlugin("com.codecommit" % "sbt-spiewak-sonatype" % "0.23.0")
10+
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.4.5")
611
addSbtPlugin("org.scala-js" % "sbt-scalajs" % "1.7.1")
712
addSbtPlugin("com.eed3si9n" % "sbt-buildinfo" % "0.10.0")
813
addSbtPlugin("org.scalameta" % "sbt-mdoc" % "2.2.24")

project/project/plugins.sbt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
addSbtPlugin("com.eed3si9n" % "sbt-buildinfo" % "0.10.0")

0 commit comments

Comments
 (0)