Skip to content

An sbt plugin that backports parts of sbt 1's public API on top of sbt 0.13 implementation

License

Notifications You must be signed in to change notification settings

raboof/sbt-compat

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Setup

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")

Usage

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._.

Licence

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.

About

An sbt plugin that backports parts of sbt 1's public API on top of sbt 0.13 implementation

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Scala 88.9%
  • Shell 11.1%