mirror of https://github.com/sbt/sbt.git
commit
7c2ea0f374
10
build.sbt
10
build.sbt
|
|
@ -2,6 +2,7 @@ import Util._
|
|||
import Dependencies._
|
||||
import Sxr.sxr
|
||||
import com.typesafe.tools.mima.core._, ProblemFilters._
|
||||
import local.Scripted
|
||||
|
||||
// ThisBuild settings take lower precedence,
|
||||
// but can be shared across the multi projects.
|
||||
|
|
@ -9,7 +10,7 @@ def buildLevelSettings: Seq[Setting[_]] =
|
|||
inThisBuild(
|
||||
Seq(
|
||||
organization := "org.scala-sbt",
|
||||
version := "1.2.0-SNAPSHOT",
|
||||
version := "1.2.1-SNAPSHOT",
|
||||
description := "sbt is an interactive build tool",
|
||||
bintrayOrganization := Some("sbt"),
|
||||
bintrayRepository := {
|
||||
|
|
@ -80,7 +81,8 @@ val mimaSettings = Def settings (
|
|||
mimaPreviousArtifacts := {
|
||||
Seq(
|
||||
"1.0.0", "1.0.1", "1.0.2", "1.0.3", "1.0.4",
|
||||
"1.1.0", "1.1.1", "1.1.2",
|
||||
"1.1.0", "1.1.1", "1.1.2", "1.1.3", "1.1.4", "1.1.5", "1.1.6",
|
||||
"1.2.0"
|
||||
).map { v =>
|
||||
organization.value % moduleName.value % v cross (if (crossPaths.value) CrossVersion.binary else CrossVersion.disabled)
|
||||
}.toSet
|
||||
|
|
@ -719,6 +721,10 @@ def allProjects =
|
|||
|
||||
lazy val nonRoots = allProjects.map(p => LocalProject(p.id))
|
||||
|
||||
|
||||
ThisBuild / scriptedBufferLog := true
|
||||
ThisBuild / scriptedPrescripted := { _ => }
|
||||
|
||||
def otherRootSettings =
|
||||
Seq(
|
||||
scripted := scriptedTask.evaluated,
|
||||
|
|
|
|||
|
|
@ -1,32 +1,26 @@
|
|||
package local
|
||||
|
||||
import java.lang.reflect.InvocationTargetException
|
||||
|
||||
import sbt._
|
||||
import sbt.internal.inc.ScalaInstance
|
||||
import sbt.internal.inc.classpath.{ ClasspathUtilities, FilteredLoader }
|
||||
import sbt.ScriptedPlugin.autoImport._
|
||||
|
||||
object ScriptedPlugin extends AutoPlugin {
|
||||
object LocalScriptedPlugin extends AutoPlugin {
|
||||
override def requires = plugins.JvmPlugin
|
||||
|
||||
object autoImport extends ScriptedKeys
|
||||
|
||||
import autoImport._
|
||||
|
||||
override def globalSettings = super.globalSettings ++ Seq(
|
||||
scriptedBufferLog := true,
|
||||
scriptedPrescripted := { _ => },
|
||||
)
|
||||
}
|
||||
|
||||
trait ScriptedKeys {
|
||||
val publishAll = taskKey[Unit]("")
|
||||
val publishLocalBinAll = taskKey[Unit]("")
|
||||
val scripted = inputKey[Unit]("")
|
||||
val scriptedUnpublished = inputKey[Unit]("Execute scripted without publishing sbt first. " +
|
||||
"Saves you some time when only your test has changed")
|
||||
val scriptedSource = settingKey[File]("")
|
||||
val scriptedPrescripted = taskKey[File => Unit]("")
|
||||
val scriptedBufferLog = settingKey[Boolean]("")
|
||||
val scriptedLaunchOpts = settingKey[Seq[String]]("options to pass to jvm launching scripted tasks")
|
||||
}
|
||||
|
||||
object Scripted {
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
sbt.version=1.1.6
|
||||
sbt.version=1.2.0
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
[app]
|
||||
org: ${sbt.organization-org.scala-sbt}
|
||||
name: sbt
|
||||
version: ${sbt.version-read(sbt.version)[1.1.1]}
|
||||
version: ${sbt.version-read(sbt.version)[1.2.0]}
|
||||
class: sbt.ScriptMain
|
||||
components: xsbti,extra
|
||||
cross-versioned: ${sbt.cross.versioned-false}
|
||||
|
|
@ -22,6 +22,7 @@
|
|||
|
||||
[boot]
|
||||
directory: ${sbt.boot.directory-${sbt.global.base-${user.home}/.sbt}/boot/}
|
||||
lock: ${sbt.boot.lock-true}
|
||||
|
||||
[ivy]
|
||||
ivy-home: ${sbt.ivy.home-${user.home}/.ivy2/}
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
[app]
|
||||
org: ${sbt.organization-org.scala-sbt}
|
||||
name: sbt
|
||||
version: ${sbt.version-read(sbt.version)[1.1.1]}
|
||||
version: ${sbt.version-read(sbt.version)[1.2.0]}
|
||||
class: sbt.ConsoleMain
|
||||
components: xsbti,extra
|
||||
cross-versioned: ${sbt.cross.versioned-false}
|
||||
|
|
@ -22,6 +22,7 @@
|
|||
|
||||
[boot]
|
||||
directory: ${sbt.boot.directory-${sbt.global.base-${user.home}/.sbt}/boot/}
|
||||
lock: ${sbt.boot.lock-true}
|
||||
|
||||
[ivy]
|
||||
ivy-home: ${sbt.ivy.home-${user.home}/.ivy2/}
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
[app]
|
||||
org: ${sbt.organization-org.scala-sbt}
|
||||
name: sbt
|
||||
version: ${sbt.version-read(sbt.version)[1.1.1]}
|
||||
version: ${sbt.version-read(sbt.version)[1.2.0]}
|
||||
class: sbt.xMain
|
||||
components: xsbti,extra
|
||||
cross-versioned: ${sbt.cross.versioned-false}
|
||||
|
|
@ -22,6 +22,7 @@
|
|||
|
||||
[boot]
|
||||
directory: ${sbt.boot.directory-${sbt.global.base-${user.home}/.sbt}/boot/}
|
||||
lock: ${sbt.boot.lock-true}
|
||||
|
||||
[ivy]
|
||||
ivy-home: ${sbt.ivy.home-${user.home}/.ivy2/}
|
||||
|
|
|
|||
Loading…
Reference in New Issue