Name: sbt-compat
Owner: Hammer Lab
Description: An sbt plugin that backports parts of sbt 1's public API on top of sbt 0.13 implementation
Forked from: dwijnand/sbt-compat
Created: 2017-12-10 03:57:25.0
Updated: 2017-12-10 03:57:26.0
Pushed: 2018-01-13 23:45:08.0
Size: 27
Language: Scala
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
sbt-compat
is an sbt plugin that backports parts of sbt 1's public API on top of
sbt 0.13 implementation.
The idea of providing the latest (and greatest) API on top of older versions comes from Miles Sabin's macro-compat where the newer macro APIs are provided for older versions of Scala.
Add this plugin to your sbt plugin (in build.sbt
, NOT project/plugins.sbt
):
libraryDependencies += Defaults.sbtPluginExtra(
"com.dwijnand" % "sbt-compat" % "1.0.0",
(sbtBinaryVersion in pluginCrossBuild).value,
(scalaBinaryVersion in update).value
)
Once sbt 0.13.17 is released with the fix to sbt/sbt#3393 this will simplify to:
addSbtPlugin("com.dwijnand" % "sbt-compat" % "1.0.0")
Use sbt 1's API, importing the relevant packages.
It might be necessary to wildcard import at times, and sometimes it might be necessary to import sbt.compat._
.
Copyright 2017 Dale Wijnand
Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.