mirror of https://github.com/sbt/sbt.git
Fix issue with scala-library.jar being retrieved
This commit is contained in:
parent
77567b6ad3
commit
2acea814be
|
|
@ -65,7 +65,7 @@ final class InlineConfiguration(val module: ModuleID, val dependencies: Iterable
|
|||
val validate: Boolean) extends ModuleSettings
|
||||
{
|
||||
def withConfigurations(configurations: Iterable[Configuration]) =
|
||||
new InlineConfiguration(module, dependencies, ivyXML, configurations, defaultConfiguration, None, validate)
|
||||
new InlineConfiguration(module, dependencies, ivyXML, configurations, defaultConfiguration, ivyScala, validate)
|
||||
def noScala = new InlineConfiguration(module, dependencies, ivyXML, configurations, defaultConfiguration, None, validate)
|
||||
}
|
||||
final class EmptyConfiguration(val module: ModuleID, val ivyScala: Option[IvyScala], val validate: Boolean) extends ModuleSettings
|
||||
|
|
|
|||
|
|
@ -0,0 +1,2 @@
|
|||
project.name=Test
|
||||
project.version=1.0
|
||||
|
|
@ -0,0 +1,15 @@
|
|||
import sbt._
|
||||
|
||||
class ExcludeScala(info: ProjectInfo) extends DefaultProject(info)
|
||||
{
|
||||
lazy val noScala = task { checkNoScala }
|
||||
|
||||
def checkNoScala =
|
||||
{
|
||||
val existing = compileClasspath.filter(isScalaLibrary _).get
|
||||
if(existing.isEmpty) None else Some("Scala library was incorrectly retrieved: " + existing)
|
||||
}
|
||||
def isScalaLibrary(p: Path) = p.name contains "scala-library"
|
||||
|
||||
val sbinary = "org.scala-tools.sbinary" % "sbinary_2.7.7" % "0.3"
|
||||
}
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
> no-scala
|
||||
> update
|
||||
> no-scala
|
||||
Loading…
Reference in New Issue