mirror of https://github.com/sbt/sbt.git
Port dependency-management/ivy-settings-multi-a
This commit is contained in:
parent
e244cd695c
commit
7db47d073b
|
|
@ -0,0 +1,19 @@
|
|||
lazy val commonSettings = Seq(
|
||||
autoScalaLibrary := false,
|
||||
unmanagedJars in Compile <++= scalaInstance map (_.allJars.toSeq)
|
||||
)
|
||||
|
||||
lazy val dep = project.
|
||||
settings(
|
||||
commonSettings,
|
||||
organization := "org.example",
|
||||
version := "1.0"
|
||||
)
|
||||
|
||||
lazy val use = project.
|
||||
dependsOn(dep).
|
||||
settings(
|
||||
commonSettings,
|
||||
libraryDependencies += "junit" % "junit" % "4.5",
|
||||
externalIvySettings()
|
||||
)
|
||||
|
|
@ -1,19 +0,0 @@
|
|||
import sbt._
|
||||
import Keys._
|
||||
import Import._
|
||||
|
||||
object B extends Build
|
||||
{
|
||||
lazy val dep = Project("dep", file("dep")) settings( baseSettings : _*) settings(
|
||||
organization := "org.example",
|
||||
version := "1.0"
|
||||
)
|
||||
lazy val use = Project("use", file("use")) dependsOn(dep) settings(baseSettings : _*) settings(
|
||||
libraryDependencies += "junit" % "junit" % "4.5",
|
||||
externalIvySettings()
|
||||
)
|
||||
lazy val baseSettings = Seq(
|
||||
autoScalaLibrary := false,
|
||||
unmanagedJars in Compile <++= scalaInstance map (_.allJars.toSeq)
|
||||
)
|
||||
}
|
||||
Loading…
Reference in New Issue