mirror of https://github.com/sbt/sbt.git
Some changes due to cross publishing
This commit is contained in:
parent
9e10f01363
commit
e4ee409cd5
|
|
@ -1158,9 +1158,9 @@ object Classpaths {
|
||||||
val id = app.provider.id
|
val id = app.provider.id
|
||||||
val scalaVersion = app.provider.scalaProvider.version
|
val scalaVersion = app.provider.scalaProvider.version
|
||||||
val binVersion = binaryScalaVersion(scalaVersion)
|
val binVersion = binaryScalaVersion(scalaVersion)
|
||||||
val cross = if (id.crossVersioned) CrossVersion.binary else CrossVersion.Disabled
|
val cross = CrossVersion.binary
|
||||||
val base = ModuleID(id.groupID, id.name, sbtVersion.value, crossVersion = cross)
|
ModuleID(id.groupID, id.name, sbtVersion.value, crossVersion = cross)
|
||||||
CrossVersion(scalaVersion, binVersion)(base).copy(crossVersion = CrossVersion.Disabled)
|
// CrossVersion(scalaVersion, binVersion)(base) // .copy(crossVersion = CrossVersion.Disabled)
|
||||||
}
|
}
|
||||||
))
|
))
|
||||||
|
|
||||||
|
|
@ -1368,7 +1368,7 @@ object Classpaths {
|
||||||
val depDir = dependencyCacheDirectory.value
|
val depDir = dependencyCacheDirectory.value
|
||||||
withExcludes(out, mod.classifiers, lock(app)) { excludes =>
|
withExcludes(out, mod.classifiers, lock(app)) { excludes =>
|
||||||
val noExplicitCheck = ivyScala.value.map(_.copy(checkExplicit = false))
|
val noExplicitCheck = ivyScala.value.map(_.copy(checkExplicit = false))
|
||||||
IvyActions.transitiveScratch(is, "sbt", GetClassifiersConfiguration(mod, excludes, c.copy(artifactFilter = c.artifactFilter.invert), noExplicitCheck, srcTypes, docTypes), uwConfig, LogicalClock(state.value.hashCode), Some(depDir), s.log)
|
IvyActions.transitiveScratch(is, "sbt_2.11", GetClassifiersConfiguration(mod, excludes, c.copy(artifactFilter = c.artifactFilter.invert), noExplicitCheck, srcTypes, docTypes), uwConfig, LogicalClock(state.value.hashCode), Some(depDir), s.log)
|
||||||
}
|
}
|
||||||
} tag (Tags.Update, Tags.Network)
|
} tag (Tags.Update, Tags.Network)
|
||||||
)) ++ Seq(bootIvyConfiguration := (ivyConfiguration in updateSbtClassifiers).value)
|
)) ++ Seq(bootIvyConfiguration := (ivyConfiguration in updateSbtClassifiers).value)
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,6 @@
|
||||||
package sbt
|
package sbt
|
||||||
|
|
||||||
object Import {
|
object Import {
|
||||||
|
|
||||||
// sbt.io
|
// sbt.io
|
||||||
val AllPassFilter = sbt.io.AllPassFilter
|
val AllPassFilter = sbt.io.AllPassFilter
|
||||||
val DirectoryFilter = sbt.io.DirectoryFilter
|
val DirectoryFilter = sbt.io.DirectoryFilter
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
libraryDependencies += "org.scala-sbt" % "sbt" % sbtVersion.value
|
libraryDependencies += "org.scala-sbt" %% "sbt" % sbtVersion.value
|
||||||
|
|
||||||
|
|
||||||
lazy val expectErrorNotCrash = taskKey[Unit]("Ensures that sbt properly set types on Trees so that the compiler doesn't crash on a bad reference to .value, but gives a proper error instead.")
|
lazy val expectErrorNotCrash = taskKey[Unit]("Ensures that sbt properly set types on Trees so that the compiler doesn't crash on a bad reference to .value, but gives a proper error instead.")
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,4 @@
|
||||||
|
lazy val root = (project in file(".")).
|
||||||
|
settings(
|
||||||
|
scalaVersion := "2.10.6"
|
||||||
|
)
|
||||||
|
|
@ -1,2 +1,2 @@
|
||||||
libraryDependencies += Defaults.sbtPluginExtra("org.scala-sbt" % "sbt-maven-resolver" % sbtVersion.value,
|
// libraryDependencies += Defaults.sbtPluginExtra("org.scala-sbt" % "sbt-maven-resolver" % sbtVersion.value,
|
||||||
sbtBinaryVersion.value, scalaBinaryVersion.value)
|
// sbtBinaryVersion.value, scalaBinaryVersion.value)
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
scalaVersion := "2.10.6"
|
||||||
libraryDependencies ++= Seq(
|
libraryDependencies ++= Seq(
|
||||||
"org.scalatest" %% "scalatest" % "1.9.1" % "test",
|
"org.scalatest" %% "scalatest" % "1.9.1" % "test",
|
||||||
"org.scalamock" %% "scalamock-scalatest-support" % "3.0" % "test"
|
"org.scalamock" %% "scalamock-scalatest-support" % "3.0" % "test"
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
lazy val root = (project in file(".")).
|
lazy val root = (project in file(".")).
|
||||||
settings(
|
settings(
|
||||||
|
scalaVersion := "2.10.6",
|
||||||
libraryDependencies += "org.webjars" %% "webjars-play" % "2.1.0-3",
|
libraryDependencies += "org.webjars" %% "webjars-play" % "2.1.0-3",
|
||||||
resolvers += Resolver.typesafeRepo("releases")
|
resolvers += Resolver.typesafeRepo("releases")
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,6 @@ import sbt.internal.librarymanagement.syntax._
|
||||||
seq(externalIvySettings(), externalIvyFile())
|
seq(externalIvySettings(), externalIvyFile())
|
||||||
|
|
||||||
TaskKey[Unit]("check") := {
|
TaskKey[Unit]("check") := {
|
||||||
val files = update.value.matching( moduleFilter(organization = "org.scalacheck", name = "scalacheck*", revision = "1.9") )
|
val files = update.value.matching( moduleFilter(organization = "org.scalacheck", name = "scalacheck*", revision = "1.11.4") )
|
||||||
assert(files.nonEmpty, "ScalaCheck module not found in update report")
|
assert(files.nonEmpty, "ScalaCheck module not found in update report")
|
||||||
}
|
}
|
||||||
|
|
@ -2,6 +2,6 @@
|
||||||
<ivy-module version="2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation= "http://ant.apache.org/ivy/schemas/ivy.xsd">
|
<ivy-module version="2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation= "http://ant.apache.org/ivy/schemas/ivy.xsd">
|
||||||
<info organisation="org" module="ivy-settings-test"/>
|
<info organisation="org" module="ivy-settings-test"/>
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency org="org.scalacheck" name="scalacheck_2.9.1" rev="1.9"/>
|
<dependency org="org.scalacheck" name="scalacheck_2.11" rev="1.11.4"/>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
</ivy-module>
|
</ivy-module>
|
||||||
|
|
|
||||||
|
|
@ -1,2 +1,2 @@
|
||||||
libraryDependencies += Defaults.sbtPluginExtra("org.scala-sbt" % "sbt-maven-resolver" % sbtVersion.value,
|
// libraryDependencies += Defaults.sbtPluginExtra("org.scala-sbt" % "sbt-maven-resolver" % sbtVersion.value,
|
||||||
sbtBinaryVersion.value, scalaBinaryVersion.value)
|
// sbtBinaryVersion.value, scalaBinaryVersion.value)
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
libraryDependencies += "org.scala-sbt" % "scripted-plugin" % sbtVersion.value
|
libraryDependencies += "org.scala-sbt" %% "scripted-plugin" % sbtVersion.value
|
||||||
|
|
@ -1,10 +1,10 @@
|
||||||
> publishLocal
|
> publishLocal
|
||||||
$ exists target/ivy-cache/local/com.example/app_2.10/0.1.0/poms/app_2.10.pom
|
$ exists target/ivy-cache/local/com.example/app_2.11/0.1.0/poms/app_2.11.pom
|
||||||
$ exists target/ivy-cache/local/com.example/app_2.10/0.1.0/jars/app_2.10.jar
|
$ exists target/ivy-cache/local/com.example/app_2.11/0.1.0/jars/app_2.11.jar
|
||||||
$ absent target/ivy-cache/local/com.example/default-root_2.10/0.1.0/ivys/ivy.xml
|
$ absent target/ivy-cache/local/com.example/default-root_2.11/0.1.0/ivys/ivy.xml
|
||||||
|
|
||||||
$ copy-file changes/bare.sbt build.sbt
|
$ copy-file changes/bare.sbt build.sbt
|
||||||
> reload
|
> reload
|
||||||
> publishLocal
|
> publishLocal
|
||||||
$ exists target/ivy-cache/local/com.example/generated-root-no-publish_2.10/0.1.0/poms/generated-root-no-publish_2.10.pom
|
$ exists target/ivy-cache/local/com.example/generated-root-no-publish_2.11/0.1.0/poms/generated-root-no-publish_2.11.pom
|
||||||
$ exists target/ivy-cache/local/com.example/generated-root-no-publish_2.10/0.1.0/jars/generated-root-no-publish_2.10.jar
|
$ exists target/ivy-cache/local/com.example/generated-root-no-publish_2.11/0.1.0/jars/generated-root-no-publish_2.11.jar
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,3 @@
|
||||||
libraryDependencies <+= sbtVersion { sv =>
|
libraryDependencies <+= sbtVersion { sv =>
|
||||||
"org.scala-sbt" % "scripted-plugin" % sv
|
"org.scala-sbt" %% "scripted-plugin" % sv
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
libraryDependencies <+= sbtVersion { sbtv =>
|
libraryDependencies <+= sbtVersion { sbtv =>
|
||||||
"org.scala-sbt" % "scripted-plugin" % sbtv
|
"org.scala-sbt" %% "scripted-plugin" % sbtv
|
||||||
}
|
}
|
||||||
|
|
||||||
offline := true
|
offline := true
|
||||||
|
|
|
||||||
|
|
@ -1,2 +1,2 @@
|
||||||
libraryDependencies +=
|
libraryDependencies +=
|
||||||
"org.scala-sbt" % "sbt" % appConfiguration.value.provider.id.version
|
"org.scala-sbt" %% "sbt" % appConfiguration.value.provider.id.version
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,4 @@
|
||||||
|
scalaVersion := "2.10.6"
|
||||||
autoCompilerPlugins := true
|
autoCompilerPlugins := true
|
||||||
|
|
||||||
libraryDependencies += compilerPlugin("org.scala-lang.plugins" % "continuations" % scalaVersion.value)
|
libraryDependencies += compilerPlugin("org.scala-lang.plugins" % "continuations" % scalaVersion.value)
|
||||||
|
|
||||||
scalacOptions += "-P:continuations:enable"
|
scalacOptions += "-P:continuations:enable"
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
val defaultSettings = Seq(
|
val defaultSettings = Seq(
|
||||||
|
scalaVersion := "2.10.6",
|
||||||
libraryDependencies <+= scalaVersion("org.scala-lang" % "scala-reflect" % _ )//,
|
libraryDependencies <+= scalaVersion("org.scala-lang" % "scala-reflect" % _ )//,
|
||||||
//incOptions := incOptions.value.withNameHashing(true)
|
//incOptions := incOptions.value.withNameHashing(true)
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
val defaultSettings = Seq(
|
val defaultSettings = Seq(
|
||||||
|
scalaVersion := "2.10.6",
|
||||||
libraryDependencies <+= scalaVersion("org.scala-lang" % "scala-reflect" % _ )
|
libraryDependencies <+= scalaVersion("org.scala-lang" % "scala-reflect" % _ )
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
val defaultSettings = Seq(
|
val defaultSettings = Seq(
|
||||||
|
scalaVersion := "2.10.6",
|
||||||
libraryDependencies <+= scalaVersion("org.scala-lang" % "scala-reflect" % _ )
|
libraryDependencies <+= scalaVersion("org.scala-lang" % "scala-reflect" % _ )
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
val defaultSettings = Seq(
|
val defaultSettings = Seq(
|
||||||
|
scalaVersion := "2.10.6",
|
||||||
libraryDependencies <+= scalaVersion("org.scala-lang" % "scala-reflect" % _ )//,
|
libraryDependencies <+= scalaVersion("org.scala-lang" % "scala-reflect" % _ )//,
|
||||||
//incOptions := incOptions.value.withNameHashing(true)
|
//incOptions := incOptions.value.withNameHashing(true)
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
scalaVersion := "2.10.6"
|
||||||
libraryDependencies += "org.scalatest" % "scalatest_2.10" % "2.0.M6-SNAP28" % "test"
|
libraryDependencies += "org.scalatest" % "scalatest_2.10" % "2.0.M6-SNAP28" % "test"
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
scalaVersion := "2.10.6"
|
||||||
fork := true
|
fork := true
|
||||||
|
|
||||||
libraryDependencies += "org.scalatest" %% "scalatest" % "1.9" % "test"
|
libraryDependencies += "org.scalatest" %% "scalatest" % "1.9" % "test"
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,7 @@
|
||||||
lazy val root = (project in file(".")).
|
lazy val root = (project in file(".")).
|
||||||
configs(IntegrationTest).
|
configs(IntegrationTest).
|
||||||
settings(
|
settings(
|
||||||
|
scalaVersion := "2.10.6",
|
||||||
Defaults.itSettings,
|
Defaults.itSettings,
|
||||||
libraryDependencies += specs
|
libraryDependencies += specs
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -1 +1,2 @@
|
||||||
|
scalaVersion := "2.10.6"
|
||||||
libraryDependencies += "org.specs2" % "specs2_2.10" % "1.12.3" % "test"
|
libraryDependencies += "org.specs2" % "specs2_2.10" % "1.12.3" % "test"
|
||||||
|
|
|
||||||
|
|
@ -1 +1,2 @@
|
||||||
libraryDependencies += "org.scalatest" %% "scalatest" % "1.9.1"
|
scalaVersion := "2.10.6"
|
||||||
|
libraryDependencies += "org.scalatest" %% "scalatest" % "1.9.1"
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
lazy val root = (project in file(".")).
|
lazy val root = (project in file(".")).
|
||||||
settings(
|
settings(
|
||||||
|
scalaVersion := "2.10.6",
|
||||||
libraryDependencies += "org.scalatest" %% "scalatest" % "1.9.1" % Test,
|
libraryDependencies += "org.scalatest" %% "scalatest" % "1.9.1" % Test,
|
||||||
parallelExecution in test := false
|
parallelExecution in test := false
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
lazy val root = (project in file(".")).
|
lazy val root = (project in file(".")).
|
||||||
settings(
|
settings(
|
||||||
|
scalaVersion := "2.10.6",
|
||||||
libraryDependencies += "org.scalatest" %% "scalatest" % "1.9.1" % Test,
|
libraryDependencies += "org.scalatest" %% "scalatest" % "1.9.1" % Test,
|
||||||
parallelExecution in test := false
|
parallelExecution in test := false
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -39,7 +39,7 @@ object ScriptedPlugin extends AutoPlugin {
|
||||||
sbtLauncher <<= getJars(scriptedLaunchConf).map(_.get.head),
|
sbtLauncher <<= getJars(scriptedLaunchConf).map(_.get.head),
|
||||||
sbtTestDirectory := sourceDirectory.value / "sbt-test",
|
sbtTestDirectory := sourceDirectory.value / "sbt-test",
|
||||||
libraryDependencies ++= Seq(
|
libraryDependencies ++= Seq(
|
||||||
"org.scala-sbt" % "scripted-sbt" % scriptedSbt.value % scriptedConf.toString,
|
"org.scala-sbt" %% "scripted-sbt" % scriptedSbt.value % scriptedConf.toString,
|
||||||
"org.scala-sbt" % "sbt-launch" % scriptedSbt.value % scriptedLaunchConf.toString
|
"org.scala-sbt" % "sbt-launch" % scriptedSbt.value % scriptedLaunchConf.toString
|
||||||
),
|
),
|
||||||
scriptedBufferLog := true,
|
scriptedBufferLog := true,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue