Skip to content
This repository has been archived by the owner on Apr 22, 2020. It is now read-only.

Updates Scalameta Settings #636

Merged
merged 2 commits into from
Sep 19, 2017
Merged

Conversation

juanpedromoreno
Copy link
Member

@juanpedromoreno juanpedromoreno commented Sep 19, 2017

This PR changes the scalameta settings according to its tutorial, where it's using scalameta paradise 3.0.0-M10 together with scalameta 1.8.0 (instead of 2.0.0, it seems to be incompatible).

lazy val macroAnnotationSettings = Seq(
  addCompilerPlugin("org.scalameta" % "paradise" % "3.0.0-M10" cross CrossVersion.full),
  scalacOptions += "-Xplugin-require:macroparadise",
  scalacOptions in (Compile, console) ~= (_ filterNot (_ contains "paradise")) // macroparadise plugin doesn't work in repl yet.
)
// Requires scalaVersion 2.11.11 or 2.12.3
lazy val projectThatDefinesMacroAnnotations = project.settings(
  libraryDependencies += "org.scalameta" %% "scalameta" % "1.8.0" % Provided,
  macroAnnotationSettings
  // ... your other project settings
)
lazy val projectThatUsesMacroAnnotations = project.settings(
  macroAnnotationSettings,
  // ... your other project settings
)

Additionally, this PR:

  • Upgrades joda-convert library.
  • Bumps sbt-dependency version (including its settings in the defaultSettings).
  • Disables sbt-coursier as a plugin enabled by default.
  • Releases 0.7.2.

Copy link

@rafaparadela rafaparadela left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@juanpedromoreno juanpedromoreno merged commit e7ea133 into master Sep 19, 2017
@juanpedromoreno juanpedromoreno deleted the jp-updates-scalameta-settings branch September 19, 2017 11:26
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants