Skip to content

Commit

Permalink
Remove macro-compat
Browse files Browse the repository at this point in the history
  • Loading branch information
arixmkii committed Apr 6, 2021
1 parent db1300f commit ebe1851
Show file tree
Hide file tree
Showing 12 changed files with 0 additions and 24 deletions.
13 changes: 0 additions & 13 deletions build.sbt
Expand Up @@ -123,14 +123,12 @@ lazy val Versions = new {
val joda = "2.10.1"
val jodaConvert = "2.1.2"
val scalamock = "4.4.0"
val macrocompat = "1.1.1"
val macroParadise = "2.1.1"
val circe = "0.12.3"
val scala211 = "2.11.12"
val scala212 = "2.12.10"
val scala213 = "2.13.1"
val monix = "3.1.0-2156c0e"
val macroCompat = "1.1.1"
val collectionCompat = "2.1.3"
val paradise = "2.1.1"

Expand All @@ -155,14 +153,6 @@ lazy val Versions = new {
"1.2.0"
}


val macroCompatVersion: String => ModuleID = {
s => CrossVersion.partialVersion(s) match {
case Some((_, minor)) if minor >= 13 => "org.typelevel" % "macro-compat_2.13.0-RC2" % "1.1.1"
case Some((_, minor)) if minor < 13 => "org.typelevel" %% "macro-compat" % macroCompat
}
}

val paradiseVersion: String => Seq[ModuleID] = {
s => CrossVersion.partialVersion(s) match {
case Some((_, minor)) if minor >= 13 =>
Expand Down Expand Up @@ -324,7 +314,6 @@ lazy val readme = (project in file("readme"))
"VERSION" -> version.value
),
libraryDependencies ++= Seq(
Versions.macroCompatVersion(scalaVersion.value),
"org.scala-lang" % "scala-compiler" % scalaVersion.value,
"com.outworkers" %% "util-samplers" % Versions.util,
"io.circe" %% "circe-parser" % Versions.circeVersion(scalaVersion.value),
Expand All @@ -350,7 +339,6 @@ lazy val phantomDsl = (project in file("phantom-dsl"))
Tags.limit(Tags.ForkedTestGroup, defaultConcurrency)
),
libraryDependencies ++= Seq(
Versions.macroCompatVersion(scalaVersion.value),
"org.scala-lang" % "scala-compiler" % scalaVersion.value % "provided",
"com.chuusai" %% "shapeless" % Versions.shapeless,
"joda-time" % "joda-time" % Versions.joda,
Expand Down Expand Up @@ -405,7 +393,6 @@ lazy val phantomThrift = (project in file("phantom-thrift"))
name := "phantom-thrift",
moduleName := "phantom-thrift",
libraryDependencies ++= Seq(
Versions.macroCompatVersion(scalaVersion.value),
"org.scala-lang" % "scala-compiler" % scalaVersion.value % "provided",
"org.apache.thrift" % "libthrift" % Versions.thrift,
"com.twitter" %% "scrooge-core" % Versions.scrooge(scalaVersion.value),
Expand Down
Expand Up @@ -21,7 +21,6 @@ import com.datastax.driver.core.exceptions.InvalidTypeException
import com.outworkers.phantom.macros.toolbelt.BlackboxToolbelt
import scala.reflect.macros.blackbox

@macrocompat.bundle
class PrimitiveMacro(override val c: blackbox.Context) extends BlackboxToolbelt {
import c.universe._

Expand Down
Expand Up @@ -42,7 +42,6 @@ object BindHelper {
implicit def materialize[TP]: BindHelper[TP] = macro BindMacros.materialize[TP]
}

@macrocompat.bundle
class BindMacros(override val c: whitebox.Context) extends WhiteboxToolbelt with RootMacro {

import c.universe._
Expand Down
Expand Up @@ -36,7 +36,6 @@ object DatabaseHelper {
]: DatabaseHelper[T] = macro DatabaseHelperMacro.materialize[T]
}

@macrocompat.bundle
class DatabaseHelperMacro(override val c: whitebox.Context) extends WhiteboxToolbelt with RootMacro {
import c.universe._

Expand Down
Expand Up @@ -44,7 +44,6 @@ object ==:== {
}


@macrocompat.bundle
class EqsMacro(val c: whitebox.Context) extends WhiteboxToolbelt with HListHelpers {

import c.universe._
Expand Down
Expand Up @@ -27,7 +27,6 @@ import scala.collection.immutable.ListMap
import scala.reflect.macros.whitebox
import scala.Iterable

@macrocompat.bundle
trait RootMacro extends HListHelpers with WhiteboxToolbelt {
val c: whitebox.Context
import c.universe._
Expand Down
Expand Up @@ -72,7 +72,6 @@ object SingleGeneric {
}


@macrocompat.bundle
class SingleGenericMacro(val c: whitebox.Context) extends HListHelpers with WhiteboxToolbelt {
import c.universe._

Expand Down
Expand Up @@ -62,7 +62,6 @@ object TableHelper {
type Aux[T <: CassandraTable[T, R], R, Repr0] = TableHelper[T, R] { type Repr = Repr0 }
}

@macrocompat.bundle
class TableHelperMacro(override val c: whitebox.Context) extends WhiteboxToolbelt with RootMacro {
import c.universe._

Expand Down
Expand Up @@ -33,7 +33,6 @@ private[phantom] object BlackboxToolbelt {
final val specialEqsCache: Cache = new Cache()
}

@macrocompat.bundle
private[phantom] trait BlackboxToolbelt {

val c: blackbox.Context
Expand Down
Expand Up @@ -22,7 +22,6 @@ import scala.reflect.macros.whitebox
import scala.util.control.NonFatal
import scala.collection.compat._

@macrocompat.bundle
trait HListHelpers {
val c: whitebox.Context

Expand Down
Expand Up @@ -34,7 +34,6 @@ private[phantom] object WhiteboxToolbelt {
final val specialEqsCache: Cache = new Cache()
}

@macrocompat.bundle
private[phantom] trait WhiteboxToolbelt {

val c: whitebox.Context
Expand Down
Expand Up @@ -38,7 +38,6 @@ object ThriftHelper {
]: ThriftHelper[T, Serializer] = macro ThriftHelperMacro.materialize[T, Serializer]
}

@macrocompat.bundle
class ThriftHelperMacro(val c: blackbox.Context) {

import c.universe._
Expand Down

0 comments on commit ebe1851

Please sign in to comment.