mirror of https://github.com/sbt/sbt.git
Add build.sbt
This commit is contained in:
parent
5f0075e3e6
commit
319054fa32
|
|
@ -0,0 +1,12 @@
|
|||
librarymanagement module for sbt
|
||||
================================
|
||||
|
||||
```
|
||||
git clone --no-hardlinks --branch 0.13 sbt sbt-modules/librarymanagement
|
||||
cd sbt-modules/librarymanagement
|
||||
git filter-branch --index-filter 'git rm --cached -qr -- . && git reset -q $GIT_COMMIT -- ivy util/cross' --prune-empty
|
||||
git reset --hard
|
||||
git gc --aggressive
|
||||
git prune
|
||||
git cb 1.0
|
||||
```
|
||||
|
|
@ -0,0 +1,46 @@
|
|||
import Dependencies._
|
||||
|
||||
def internalPath = file("internal")
|
||||
|
||||
// ThisBuild settings take lower precedence,
|
||||
// but can be shared across the multi projects.
|
||||
def buildLevelSettings: Seq[Setting[_]] = Seq(
|
||||
organization in ThisBuild := "org.scala-sbt.librarymanagement",
|
||||
version in ThisBuild := "1.0.0-SNAPSHOT"
|
||||
// bintrayOrganization in ThisBuild := Some("sbt"),
|
||||
// // bintrayRepository in ThisBuild := s"ivy-${(publishStatus in ThisBuild).value}",
|
||||
// bintrayPackage in ThisBuild := "sbt",
|
||||
// bintrayReleaseOnPublish in ThisBuild := false
|
||||
)
|
||||
|
||||
def commonSettings: Seq[Setting[_]] = Seq(
|
||||
scalaVersion := "2.10.5",
|
||||
// publishArtifact in packageDoc := false,
|
||||
resolvers += Resolver.typesafeIvyRepo("releases"),
|
||||
resolvers += Resolver.sonatypeRepo("snapshots"),
|
||||
// concurrentRestrictions in Global += Util.testExclusiveRestriction,
|
||||
testOptions += Tests.Argument(TestFrameworks.ScalaCheck, "-w", "1"),
|
||||
javacOptions in compile ++= Seq("-target", "6", "-source", "6", "-Xlint", "-Xlint:-serial"),
|
||||
incOptions := incOptions.value.withNameHashing(true)
|
||||
// crossScalaVersions := Seq(scala210)
|
||||
// bintrayPackage := (bintrayPackage in ThisBuild).value,
|
||||
// bintrayRepository := (bintrayRepository in ThisBuild).value
|
||||
)
|
||||
|
||||
lazy val root = (project in file(".")).
|
||||
aggregate(lm).
|
||||
settings(
|
||||
buildLevelSettings,
|
||||
commonSettings,
|
||||
// rootSettings,
|
||||
publish := {},
|
||||
publishLocal := {}
|
||||
)
|
||||
|
||||
lazy val lm = (project in file("librarymanagement")).
|
||||
settings(
|
||||
commonSettings,
|
||||
libraryDependencies ++= Seq(interfaceProj, crossProj, logProj % "compile;test->test", ioProj % "compile;test->test", collectionProj),
|
||||
libraryDependencies ++= Seq(ivy, jsch, sbtSerialization, scalaReflect.value, launcherInterface),
|
||||
name := "librarymanagement"
|
||||
)
|
||||
|
|
@ -0,0 +1,22 @@
|
|||
import sbt._
|
||||
import Keys._
|
||||
|
||||
object Dependencies {
|
||||
val bootstrapSbtVersion = "0.13.8"
|
||||
lazy val interfaceProj = "org.scala-sbt" % "interface" % bootstrapSbtVersion
|
||||
lazy val ioProj = "org.scala-sbt" % "io" % bootstrapSbtVersion
|
||||
lazy val collectionProj = "org.scala-sbt" % "collections" % bootstrapSbtVersion
|
||||
lazy val logProj = "org.scala-sbt" % "logging" % bootstrapSbtVersion
|
||||
lazy val crossProj = "org.scala-sbt" % "cross" % bootstrapSbtVersion
|
||||
|
||||
lazy val launcherInterface = "org.scala-sbt" % "launcher-interface" % "1.0.0-M1"
|
||||
lazy val ivy = "org.scala-sbt.ivy" % "ivy" % "2.3.0-sbt-927bc9ded7f8fba63297cddd0d5a3d01d6ad5d8d"
|
||||
lazy val jsch = "com.jcraft" % "jsch" % "0.1.46" intransitive ()
|
||||
lazy val sbtSerialization = "org.scala-sbt" %% "serialization" % "0.1.2"
|
||||
// lazy val sbinary = "org.scala-tools.sbinary" %% "sbinary" % "0.4.2"
|
||||
// lazy val scalaCheck = "org.scalacheck" %% "scalacheck" % "1.11.4"
|
||||
// lazy val specs2 = "org.specs2" %% "specs2" % "2.3.11"
|
||||
// lazy val junit = "junit" % "junit" % "4.11"
|
||||
// lazy val scalaCompiler = Def.setting { "org.scala-lang" % "scala-compiler" % scalaVersion.value }
|
||||
lazy val scalaReflect = Def.setting { "org.scala-lang" % "scala-reflect" % scalaVersion.value }
|
||||
}
|
||||
|
|
@ -0,0 +1 @@
|
|||
sbt.version=0.13.9
|
||||
Loading…
Reference in New Issue