Skip to content

Commit 8f9e31c

Browse files
committed
Merge branch 'release-0.18.x'
2 parents eded375 + fd4d3b8 commit 8f9e31c

File tree

10 files changed

+9
-22
lines changed

10 files changed

+9
-22
lines changed

.appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ environment:
55
TEST_SUITE: test
66
matrix:
77
- SCALA_VERSION: 2.11.12
8-
- SCALA_VERSION: 2.12.4
8+
- SCALA_VERSION: 2.12.6
99

1010
install:
1111
- ps: |

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ env:
1212
matrix:
1313
include:
1414
- jdk: oraclejdk8
15-
scala: 2.12.4
15+
scala: 2.12.6
1616
- jdk: oraclejdk8
1717
scala: 2.11.12
1818
- jdk: oraclejdk9
19-
scala: 2.12.4
19+
scala: 2.12.6
2020
notifications:
2121
webhooks:
2222
urls:

build.sbt

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,10 @@ lazy val core = libraryProject("core")
2727
fs2Io,
2828
http4sWebsocket,
2929
log4s,
30-
macroCompat,
3130
parboiled,
3231
scalaReflect(scalaOrganization.value, scalaVersion.value) % "provided",
3332
scalaCompiler(scalaOrganization.value, scalaVersion.value) % "provided"
3433
),
35-
macroParadiseSetting
3634
)
3735

3836
lazy val testing = libraryProject("testing")
@@ -43,7 +41,6 @@ lazy val testing = libraryProject("testing")
4341
scalacheck,
4442
specs2Core
4543
),
46-
macroParadiseSetting
4744
)
4845
.dependsOn(core)
4946

@@ -262,7 +259,6 @@ lazy val docs = http4sProject("docs")
262259
circeLiteral,
263260
cryptobits
264261
),
265-
macroParadiseSetting,
266262
description := "Documentation for http4s",
267263
autoAPIMappings := true,
268264
unidocProjectFilter in (ScalaUnidoc, unidoc) := inAnyProject --
@@ -374,7 +370,6 @@ lazy val examplesBlaze = exampleProject("examples-blaze")
374370
description := "Examples of http4s server and clients on blaze",
375371
fork := true,
376372
libraryDependencies ++= Seq(alpnBoot, metricsJson),
377-
macroParadiseSetting,
378373
javaOptions in run ++= addAlpnPath((managedClasspath in Runtime).value)
379374
)
380375
.dependsOn(blazeServer, blazeClient)

core/src/main/scala/org/http4s/QValue.scala

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package org.http4s
22

33
import cats._
4-
import macrocompat.bundle
54
import org.http4s.internal.parboiled2.{Parser => PbParser}
65
import org.http4s.util.Writer
76
import org.http4s.parser.{AdditionalRules, Http4sParser}
@@ -96,7 +95,6 @@ object QValue extends QValueInstances with QValueFunctions {
9695
/** Exists to support compile-time verified literals. Do not call directly. */
9796
def (thousandths: Int): QValue = new QValue(thousandths)
9897

99-
@bundle
10098
class Macros(val c: Context) {
10199
import c.universe._
102100

core/src/main/scala/org/http4s/Uri.scala

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ package org.http4s
33
import cats._
44
import cats.implicits.{catsSyntaxEither => _, _}
55
import java.nio.charset.StandardCharsets
6-
import macrocompat.bundle
76
import org.http4s.Uri._
87
import org.http4s.internal.parboiled2.{Parser => PbParser}
98
import org.http4s.internal.parboiled2.CharPredicate.{Alpha, Digit}
@@ -119,7 +118,6 @@ final case class Uri(
119118
}
120119

121120
object Uri extends UriFunctions {
122-
@bundle
123121
class Macros(val c: Context) {
124122
import c.universe._
125123

docs/src/main/tut/methods.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ Http4s has a list of all the [methods] you're familiar with, and a few more.
99

1010
```tut:book
1111
import cats.effect._
12-
import io.circe.generic._
12+
import io.circe.generic.auto._
1313
import io.circe.syntax._
1414
import org.http4s._, org.http4s.dsl.io._
1515
import org.http4s.circe._
1616
17-
@JsonCodec case class TweetWithId(id: Int, message: String)
18-
@JsonCodec case class Tweet(message: String)
17+
case class TweetWithId(id: Int, message: String)
18+
case class Tweet(message: String)
1919
2020
def getTweet(tweetId: Int): IO[Option[TweetWithId]] = ???
2121
def addTweet(tweet: Tweet): IO[TweetWithId] = ???

docs/src/main/tut/service.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ and calling it with http4s' client.
1010
Create a new directory, with the following build.sbt in the root:
1111

1212
```scala
13-
scalaVersion := "2.12.4" // Also supports 2.11.x
13+
scalaVersion := "2.12.6" // Also supports 2.11.x
1414

1515
val http4sVersion = "{{< version "http4s.doc" >}}"
1616

project/Http4sPlugin.scala

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ object Http4sPlugin extends AutoPlugin {
6161
) ++ signingSettings
6262

6363
override lazy val projectSettings: Seq[Setting[_]] = Seq(
64-
scalaVersion := (sys.env.get("TRAVIS_SCALA_VERSION") orElse sys.env.get("SCALA_VERSION") getOrElse "2.12.4"),
64+
scalaVersion := (sys.env.get("TRAVIS_SCALA_VERSION") orElse sys.env.get("SCALA_VERSION") getOrElse "2.12.6"),
6565

6666
// Rig will take care of this on production builds. We haven't fully
6767
// implemented that machinery yet, so we're going to live without this
@@ -227,9 +227,6 @@ object Http4sPlugin extends AutoPlugin {
227227
}
228228
}
229229

230-
val macroParadiseSetting =
231-
libraryDependencies += compilerPlugin("org.scalamacros" % "paradise" % "2.1.1" cross CrossVersion.full)
232-
233230
def latestPerMinorVersion(file: File): Map[(Int, Int), Version] =
234231
JGit(file).tags.collect {
235232
case ref if ref.getName.startsWith("refs/tags/v") =>
@@ -295,7 +292,6 @@ object Http4sPlugin extends AutoPlugin {
295292
lazy val jspApi = "javax.servlet.jsp" % "javax.servlet.jsp-api" % "2.3.1" // YourKit hack
296293
lazy val log4s = "org.log4s" %% "log4s" % "1.6.1"
297294
lazy val logbackClassic = "ch.qos.logback" % "logback-classic" % "1.2.3"
298-
lazy val macroCompat = "org.typelevel" %% "macro-compat" % "1.1.1"
299295
lazy val metricsCore = "io.dropwizard.metrics" % "metrics-core" % "4.0.2"
300296
lazy val metricsJson = "io.dropwizard.metrics" % "metrics-json" % metricsCore.revision
301297
lazy val prometheusClient = "io.prometheus" % "simpleclient_common" % "0.3.0"

testing/src/test/scala/org/http4s/illTyped.scala

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ object illTyped {
3131
def apply(code: String, expected: String): Unit = macro IllTypedMacros.applyImpl
3232
}
3333

34-
@macrocompat.bundle
3534
class IllTypedMacros(val c: whitebox.Context) {
3635
import c.universe._
3736

website/src/hugo/content/changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ it.
3232
* scala-xml-1.1.0
3333

3434
# v0.18.10-SNAPSHOT (unreleased)
35+
* Eliminate dependency on Macro Paradise and macro-compat [#1816](https://github.com/http4s/http4s/pull/1816)
3536
* Dependency upgrades:
3637
* cats-effect-0.10.1
3738
* fs2-0.10.4

0 commit comments

Comments
 (0)