mirror of https://github.com/sbt/sbt.git
Fix scripted tests for sbt 1.0.0-M6
This commit is contained in:
parent
8106a1837f
commit
f83a377bb5
|
|
@ -1,6 +1,6 @@
|
|||
|
||||
// for SbtExclusionRule with sbt 1.0
|
||||
import sbt.internal.librarymanagement._
|
||||
import Compatibility._
|
||||
|
||||
scalaVersion := "2.11.8"
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1 @@
|
|||
object Compatibility
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
object Compatibility {
|
||||
|
||||
val SbtExclusionRule = sbt.ExclusionRule
|
||||
|
||||
}
|
||||
|
|
@ -3,6 +3,8 @@ lazy val noPomCheck = TaskKey[Unit]("noPomCheck")
|
|||
|
||||
noPomCheck := {
|
||||
|
||||
val log = streams.value.log
|
||||
|
||||
val configReport = update.value
|
||||
.configuration("compile")
|
||||
.getOrElse {
|
||||
|
|
@ -22,7 +24,7 @@ noPomCheck := {
|
|||
}
|
||||
|
||||
for (a <- pomArtifacts)
|
||||
streams.value.log.error(s"Found POM artifact $a")
|
||||
log.error(s"Found POM artifact $a")
|
||||
|
||||
assert(pomArtifacts.isEmpty)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -20,6 +20,8 @@ lazy val shared = Seq(
|
|||
scalaVersion := "2.11.8",
|
||||
confCheck := {
|
||||
|
||||
val log = streams.value.log
|
||||
|
||||
val updateReport = update.value
|
||||
val updateClassifiersReport = updateClassifiers.value
|
||||
|
||||
|
|
@ -41,12 +43,12 @@ lazy val shared = Seq(
|
|||
a
|
||||
}
|
||||
|
||||
streams.value.log.info(
|
||||
log.info(
|
||||
s"Found ${artifacts.length} artifacts for config $config / classifier $classifier" +
|
||||
(if (useClassifiersReport) " in classifiers report" else "")
|
||||
)
|
||||
for (a <- artifacts)
|
||||
streams.value.log.info(" " + a)
|
||||
log.info(" " + a)
|
||||
|
||||
artifacts
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
|
||||
// for SbtExclusionRule with sbt 1.0
|
||||
import sbt.internal.librarymanagement._
|
||||
import Compatibility._
|
||||
|
||||
enablePlugins(coursier.ShadingPlugin)
|
||||
shadingNamespace := "test.shaded"
|
||||
|
|
|
|||
|
|
@ -0,0 +1 @@
|
|||
object Compatibility
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
object Compatibility {
|
||||
|
||||
val SbtExclusionRule = sbt.ExclusionRule
|
||||
|
||||
}
|
||||
|
|
@ -19,9 +19,9 @@ lazy val checkToShadeClasses = TaskKey[Unit]("check-to-shade-classes")
|
|||
|
||||
checkToShadeClasses := {
|
||||
val toShadeClasses0 = toShadeClasses.in(Shading).value
|
||||
val log = streams.value.log
|
||||
|
||||
if (toShadeClasses0.nonEmpty) {
|
||||
val log = streams.value.log
|
||||
log.error(s"Found ${toShadeClasses0.length} classes to be explicitly shaded")
|
||||
for (name <- toShadeClasses0)
|
||||
log.error(" " + name)
|
||||
|
|
|
|||
Loading…
Reference in New Issue