mirror of https://github.com/sbt/sbt.git
Add sbt-compatibility
This commit is contained in:
parent
f29a170b9c
commit
e6be0cb7fb
|
|
@ -4,6 +4,7 @@ import java.util.Locale
|
|||
import sbt._
|
||||
import sbt.Keys._
|
||||
import sbt.ScriptedPlugin.autoImport.{scriptedBufferLog, scriptedLaunchOpts}
|
||||
import sbtcompatibility.SbtCompatibilityPlugin.autoImport._
|
||||
|
||||
import com.jsuereth.sbtpgp._
|
||||
|
||||
|
|
@ -35,7 +36,20 @@ object Settings {
|
|||
scalacOptions ++= {
|
||||
if (isAtLeastScala213.value) Seq("-Ymacro-annotations")
|
||||
else Nil
|
||||
}
|
||||
},
|
||||
compatibilityReconciliations ++= Seq(
|
||||
"com.eed3si9n" %% "gigahorse-*" % "semver",
|
||||
"org.scala-lang.modules" % "*" % "semver",
|
||||
"org.scala-sbt" % "*" % "semver",
|
||||
// FIXME sbt-compatibility should default to semver for java libs, pvp for scala ones, like evicted
|
||||
"com.lmax" % "disruptor" % "semver",
|
||||
"com.squareup.*" % "*" % "semver",
|
||||
"com.swoval" % "apple-file-events" % "semver",
|
||||
"com.typesafe" % "*" % "semver",
|
||||
"net.java.dev.jna" % "jna*" % "always",
|
||||
"org.apache.logging.log4j" % "log4j-*" % "semver",
|
||||
),
|
||||
compatibilityIgnored += "com.swoval" % "apple-file-events"
|
||||
) ++ {
|
||||
val prop = sys.props.getOrElse("publish.javadoc", "").toLowerCase(Locale.ROOT)
|
||||
if (prop == "0" || prop == "false")
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
addSbtPlugin("com.geirsson" % "sbt-ci-release" % "1.5.3")
|
||||
addSbtPlugin(("io.github.alexarchambault.sbt" % "sbt-compatibility" % "0.0.7").exclude("com.typesafe", "sbt-mima-plugin"))
|
||||
addSbtPlugin("com.github.alexarchambault.tmp" % "sbt-mima-plugin" % "0.7.1-SNAPSHOT")
|
||||
|
||||
addSbtPlugin("io.get-coursier" % "sbt-shading" % "2.0.0")
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ runLmCoursierTests() {
|
|||
# publishing locally to ensure shading runs fine
|
||||
./metadata/scripts/with-test-repo.sh ./sbt \
|
||||
++$TRAVIS_SCALA_VERSION! \
|
||||
mimaReportBinaryIssues \
|
||||
compatibilityCheck \
|
||||
lm-coursier-shaded/publishLocal \
|
||||
lm-coursier/test \
|
||||
"sbt-lm-coursier/scripted shared-$TEST_GROUP/* $SCRIPTED_EXTRA"
|
||||
|
|
|
|||
Loading…
Reference in New Issue