mirror of https://github.com/sbt/sbt.git
Merge pull request #2057 from sbt/wip/fixbuild
Adds bundledLauncherProj to allProj
This commit is contained in:
commit
18c9c19612
22
build.sbt
22
build.sbt
|
|
@ -484,7 +484,7 @@ def allProjects = Seq(interfaceProj, apiProj,
|
||||||
compileInterfaceProj, compileIncrementalProj, compilePersistProj, compilerProj,
|
compileInterfaceProj, compileIncrementalProj, compilePersistProj, compilerProj,
|
||||||
compilerIntegrationProj, compilerIvyProj,
|
compilerIntegrationProj, compilerIvyProj,
|
||||||
scriptedBaseProj, scriptedSbtProj, scriptedPluginProj,
|
scriptedBaseProj, scriptedSbtProj, scriptedPluginProj,
|
||||||
actionsProj, commandProj, mainSettingsProj, mainProj, sbtProj, mavenResolverPluginProj)
|
actionsProj, commandProj, mainSettingsProj, mainProj, sbtProj, bundledLauncherProj, mavenResolverPluginProj)
|
||||||
|
|
||||||
def projectsWithMyProvided = allProjects.map(p => p.copy(configurations = (p.configurations.filter(_ != Provided)) :+ myProvided))
|
def projectsWithMyProvided = allProjects.map(p => p.copy(configurations = (p.configurations.filter(_ != Provided)) :+ myProvided))
|
||||||
lazy val nonRoots = projectsWithMyProvided.map(p => LocalProject(p.id))
|
lazy val nonRoots = projectsWithMyProvided.map(p => LocalProject(p.id))
|
||||||
|
|
@ -576,6 +576,23 @@ lazy val safeProjects: ScopeFilter = ScopeFilter(
|
||||||
logProj, runProj, stdTaskProj),
|
logProj, runProj, stdTaskProj),
|
||||||
inConfigurations(Test)
|
inConfigurations(Test)
|
||||||
)
|
)
|
||||||
|
lazy val otherUnitTests = taskKey[Unit]("Unit test other projects")
|
||||||
|
lazy val otherProjects: ScopeFilter = ScopeFilter(
|
||||||
|
inProjects(interfaceProj, apiProj, controlProj,
|
||||||
|
applyMacroProj,
|
||||||
|
// processProj, // this one is suspicious
|
||||||
|
ioProj,
|
||||||
|
relationProj, classfileProj, datatypeProj,
|
||||||
|
crossProj, logicProj, testingProj, testAgentProj, taskProj,
|
||||||
|
cacheProj, trackingProj,
|
||||||
|
compileIncrementalProj,
|
||||||
|
compilePersistProj, compilerProj,
|
||||||
|
compilerIntegrationProj, compilerIvyProj,
|
||||||
|
scriptedBaseProj, scriptedSbtProj, scriptedPluginProj,
|
||||||
|
commandProj, mainSettingsProj, mainProj,
|
||||||
|
sbtProj, mavenResolverPluginProj),
|
||||||
|
inConfigurations(Test)
|
||||||
|
)
|
||||||
|
|
||||||
def customCommands: Seq[Setting[_]] = Seq(
|
def customCommands: Seq[Setting[_]] = Seq(
|
||||||
commands += Command.command("setupBuildScala211") { state =>
|
commands += Command.command("setupBuildScala211") { state =>
|
||||||
|
|
@ -594,6 +611,9 @@ def customCommands: Seq[Setting[_]] = Seq(
|
||||||
safeUnitTests := {
|
safeUnitTests := {
|
||||||
test.all(safeProjects).value
|
test.all(safeProjects).value
|
||||||
},
|
},
|
||||||
|
otherUnitTests := {
|
||||||
|
test.all(otherProjects)
|
||||||
|
},
|
||||||
commands += Command.command("release-sbt-local") { state =>
|
commands += Command.command("release-sbt-local") { state =>
|
||||||
"clean" ::
|
"clean" ::
|
||||||
"allPrecompiled/clean" ::
|
"allPrecompiled/clean" ::
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue