mirror of https://github.com/sbt/sbt.git
Remove lm scripted tests
This commit is contained in:
parent
82ed595352
commit
b00b4d2c1f
|
|
@ -1,3 +0,0 @@
|
|||
lazy val root = (project in file(".")).aggregate(parent, child)
|
||||
lazy val parent = project
|
||||
lazy val child = project.dependsOn(parent)
|
||||
|
|
@ -1 +0,0 @@
|
|||
class Bar extends Foo
|
||||
|
|
@ -1 +0,0 @@
|
|||
class Foo
|
||||
|
|
@ -1 +0,0 @@
|
|||
> compile
|
||||
|
|
@ -1,6 +0,0 @@
|
|||
|
||||
object Main {
|
||||
|
||||
println("hello, world!")
|
||||
|
||||
}
|
||||
|
|
@ -1,27 +0,0 @@
|
|||
|
||||
{
|
||||
def writePluginsSbt(str: String) = {
|
||||
val pluginsSbt = file(".") / "project" / "plugins.sbt"
|
||||
if (!pluginsSbt.exists)
|
||||
IO.write(
|
||||
pluginsSbt,
|
||||
s"""$str
|
||||
|addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "0.14.8")
|
||||
|""".stripMargin
|
||||
)
|
||||
}
|
||||
val dr = sys.props.get("dependency.resolution") match {
|
||||
case Some("ivy") =>
|
||||
"""dependencyResolution := sbt.librarymanagement.ivy.IvyDependencyResolution(ivyConfiguration.value)"""
|
||||
case Some("coursier") =>
|
||||
"""dependencyResolution := sbt.librarymanagement.coursier.CoursierDependencyResolution(sbt.librarymanagement.coursier.CoursierConfiguration())"""
|
||||
case _ => sys.error("""|The system property 'dependency.resolution' is not defined.
|
||||
|Specify this property using the scriptedLaunchOpts -D.""".stripMargin)
|
||||
}
|
||||
|
||||
writePluginsSbt(dr)
|
||||
addCommandAlias(
|
||||
"setDependencyResolution",
|
||||
s"""set $dr"""
|
||||
)
|
||||
}
|
||||
|
|
@ -1,2 +0,0 @@
|
|||
> reload
|
||||
> assembly
|
||||
|
|
@ -1,8 +0,0 @@
|
|||
|
||||
object Main {
|
||||
|
||||
import com.typesafe.config.ConfigFactory
|
||||
|
||||
val x = ConfigFactory.load()
|
||||
|
||||
}
|
||||
|
|
@ -1,19 +0,0 @@
|
|||
|
||||
sys.props.get("dependency.resolution") match {
|
||||
case Some("ivy") =>
|
||||
addCommandAlias(
|
||||
"setDependencyResolution",
|
||||
"""set dependencyResolution := sbt.librarymanagement.ivy.IvyDependencyResolution(ivyConfiguration.value)"""
|
||||
)
|
||||
case Some("coursier") =>
|
||||
addCommandAlias(
|
||||
"setDependencyResolution",
|
||||
"""set dependencyResolution := sbt.librarymanagement.coursier.CoursierDependencyResolution(sbt.librarymanagement.coursier.CoursierConfiguration())"""
|
||||
)
|
||||
case _ => sys.error("""|The system property 'dependency.resolution' is not defined.
|
||||
|Specify this property using the scriptedLaunchOpts -D.""".stripMargin)
|
||||
}
|
||||
|
||||
libraryDependencies ++= Seq(
|
||||
"com.typesafe" % "config" % "1.3.3"
|
||||
)
|
||||
|
|
@ -1 +0,0 @@
|
|||
> compile
|
||||
|
|
@ -1,25 +0,0 @@
|
|||
|
||||
{
|
||||
def writePluginsSbt(str: String) = {
|
||||
val pluginsSbt = file(".") / "project" / "plugins.sbt"
|
||||
if (!pluginsSbt.exists)
|
||||
IO.write(
|
||||
pluginsSbt,
|
||||
str
|
||||
)
|
||||
}
|
||||
val dr = sys.props.get("dependency.resolution") match {
|
||||
case Some("ivy") =>
|
||||
"""dependencyResolution := sbt.librarymanagement.ivy.IvyDependencyResolution(ivyConfiguration.value)"""
|
||||
case Some("coursier") =>
|
||||
"""dependencyResolution := sbt.librarymanagement.coursier.CoursierDependencyResolution(sbt.librarymanagement.coursier.CoursierConfiguration())"""
|
||||
case _ => sys.error("""|The system property 'dependency.resolution' is not defined.
|
||||
|Specify this property using the scriptedLaunchOpts -D.""".stripMargin)
|
||||
}
|
||||
|
||||
writePluginsSbt(dr)
|
||||
addCommandAlias(
|
||||
"setDependencyResolution",
|
||||
s"""set $dr"""
|
||||
)
|
||||
}
|
||||
|
|
@ -1,6 +0,0 @@
|
|||
import sbt._
|
||||
import Keys._
|
||||
|
||||
object Dependencies {
|
||||
|
||||
}
|
||||
|
|
@ -1 +0,0 @@
|
|||
> reload
|
||||
|
|
@ -1,14 +0,0 @@
|
|||
|
||||
object Main {
|
||||
|
||||
import akka.actor._
|
||||
|
||||
val system = ActorSystem()
|
||||
|
||||
system.terminate()
|
||||
|
||||
import com.typesafe.config.ConfigFactory
|
||||
|
||||
val x = ConfigFactory.load()
|
||||
|
||||
}
|
||||
|
|
@ -1,19 +0,0 @@
|
|||
|
||||
sys.props.get("dependency.resolution") match {
|
||||
case Some("ivy") =>
|
||||
addCommandAlias(
|
||||
"setDependencyResolution",
|
||||
"""set dependencyResolution := sbt.librarymanagement.ivy.IvyDependencyResolution(ivyConfiguration.value)"""
|
||||
)
|
||||
case Some("coursier") =>
|
||||
addCommandAlias(
|
||||
"setDependencyResolution",
|
||||
"""set dependencyResolution := sbt.librarymanagement.coursier.CoursierDependencyResolution(sbt.librarymanagement.coursier.CoursierConfiguration())"""
|
||||
)
|
||||
case _ => sys.error("""|The system property 'dependency.resolution' is not defined.
|
||||
|Specify this property using the scriptedLaunchOpts -D.""".stripMargin)
|
||||
}
|
||||
|
||||
libraryDependencies ++= Seq(
|
||||
"com.typesafe.akka" %% "akka-actor" % "2.5.17"
|
||||
)
|
||||
|
|
@ -1 +0,0 @@
|
|||
> compile
|
||||
Loading…
Reference in New Issue