mirror of https://github.com/sbt/sbt.git
Merge remote-tracking branch 'origin/0.13.5' into wip/merge-0.13.5
Conflicts: main/src/main/scala/sbt/EvaluateTask.scala
This commit is contained in:
commit
81ae2fa582
|
|
@ -90,7 +90,7 @@ final object EvaluateTaskConfig {
|
|||
// Returns the default force garbage collection flag,
|
||||
// as specified by system properties.
|
||||
private[sbt] def defaultForceGarbageCollection: Boolean =
|
||||
sys.props.get("sbt.task.forcegc").map(java.lang.Boolean.parseBoolean).getOrElse(true)
|
||||
sys.props.get("sbt.task.forcegc").map(java.lang.Boolean.parseBoolean).getOrElse(false)
|
||||
/** Pulls in the old configuration format. */
|
||||
def apply(old: EvaluateConfig): EvaluateTaskConfig = {
|
||||
object AdaptedTaskConfig extends EvaluateTaskConfig {
|
||||
|
|
|
|||
|
|
@ -319,9 +319,9 @@ ${listConflicts(conflicting)}""")
|
|||
val hasGetterOpt = catching(classOf[ScalaReflectionException]) opt {
|
||||
im.symbol.asType.toType.declaration(ru.newTermName("autoImport")) match {
|
||||
case ru.NoSymbol => false
|
||||
case sym => sym.asTerm.isGetter
|
||||
case sym => sym.asTerm.isGetter || sym.asTerm.isModule
|
||||
}
|
||||
}
|
||||
hasGetterOpt getOrElse false
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -46,6 +46,8 @@ check := {
|
|||
same(optInValue, " Q S R", "del in projE in q")
|
||||
}
|
||||
|
||||
keyTest := "foo"
|
||||
|
||||
def same[T](actual: T, expected: T, label: String) {
|
||||
assert(actual == expected, s"Expected '$expected' for `$label`, got '$actual'")
|
||||
}
|
||||
|
|
|
|||
|
|
@ -28,6 +28,10 @@ object X extends AutoPlugin {
|
|||
object D extends AutoPlugin {
|
||||
override def requires: Plugins = E
|
||||
override def trigger = allRequirements
|
||||
|
||||
object autoImport {
|
||||
lazy val keyTest = settingKey[String]("Another demo setting.")
|
||||
}
|
||||
}
|
||||
|
||||
object Q extends AutoPlugin
|
||||
|
|
|
|||
|
|
@ -14,6 +14,8 @@ Changes
|
|||
- ``testResultLogger`` is now configured.
|
||||
- sbt-server hooks for task cancellation.
|
||||
- Add ``JUnitXmlReportPlugin`` which generates junit-xml-reports for all tests.
|
||||
- Fixes auto plugins not detecting ``object autoImport``. (gh-1314)
|
||||
- Optionally enable forced garbage collection after tasks (``-Dsbt.task.forcegc=true``).
|
||||
|
||||
|
||||
0.13.1 to 0.13.2
|
||||
|
|
|
|||
Loading…
Reference in New Issue