Check all dependencies, except NoPublish ones, fail on error (#24021)
This commit is contained in:
parent
306276af76
commit
ca3fa778d6
3 changed files with 7 additions and 3 deletions
|
|
@ -10,7 +10,6 @@ import java.util.Properties
|
||||||
import com.typesafe.sbt.pgp.PgpKeys.publishSigned
|
import com.typesafe.sbt.pgp.PgpKeys.publishSigned
|
||||||
import sbt.Keys._
|
import sbt.Keys._
|
||||||
import sbt._
|
import sbt._
|
||||||
import sbtwhitesource.WhiteSourcePlugin.autoImport.whitesourceIgnore
|
|
||||||
import scala.collection.breakOut
|
import scala.collection.breakOut
|
||||||
|
|
||||||
object AkkaBuild {
|
object AkkaBuild {
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,7 @@ package akka
|
||||||
import sbt._
|
import sbt._
|
||||||
import sbt.Keys._
|
import sbt.Keys._
|
||||||
import java.io.File
|
import java.io.File
|
||||||
|
import sbtwhitesource.WhiteSourcePlugin.autoImport.whitesourceIgnore
|
||||||
|
|
||||||
object Publish extends AutoPlugin {
|
object Publish extends AutoPlugin {
|
||||||
|
|
||||||
|
|
@ -62,7 +63,8 @@ object NoPublish extends AutoPlugin {
|
||||||
|
|
||||||
override def projectSettings = Seq(
|
override def projectSettings = Seq(
|
||||||
skip in publish := true,
|
skip in publish := true,
|
||||||
sources in (Compile, doc) := Seq.empty
|
sources in (Compile, doc) := Seq.empty,
|
||||||
|
whitesourceIgnore := true
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -20,5 +20,8 @@ object Whitesource extends AutoPlugin {
|
||||||
if (gitCurrentBranch.value == "master") "master"
|
if (gitCurrentBranch.value == "master") "master"
|
||||||
else "adhoc"
|
else "adhoc"
|
||||||
else majorMinor((version in LocalRootProject).value).map(_ + "-stable").getOrElse("adhoc"))
|
else majorMinor((version in LocalRootProject).value).map(_ + "-stable").getOrElse("adhoc"))
|
||||||
})
|
},
|
||||||
|
whitesourceForceCheckAllDependencies := true,
|
||||||
|
whitesourceFailOnError := true,
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue