sbt/build.sbt

56 lines
2.4 KiB
Plaintext
Raw Normal View History

2015-08-19 09:56:08 +02:00
import Dependencies._
def internalPath = file("internal")
def commonSettings: Seq[Setting[_]] = Seq(
scalaVersion := "2.10.5",
// publishArtifact in packageDoc := false,
resolvers += Resolver.typesafeIvyRepo("releases"),
resolvers += Resolver.sonatypeRepo("snapshots"),
2015-09-02 09:03:20 +02:00
resolvers += Resolver.bintrayRepo("sbt", "maven-releases"),
2015-08-19 09:56:08 +02:00
// concurrentRestrictions in Global += Util.testExclusiveRestriction,
testOptions += Tests.Argument(TestFrameworks.ScalaCheck, "-w", "1"),
javacOptions in compile ++= Seq("-target", "6", "-source", "6", "-Xlint", "-Xlint:-serial"),
2015-09-02 08:59:00 +02:00
incOptions := incOptions.value.withNameHashing(true),
2015-09-02 09:03:20 +02:00
crossScalaVersions := Seq(scala210, scala211),
2015-08-19 09:56:08 +02:00
// bintrayPackage := (bintrayPackage in ThisBuild).value,
2015-09-02 08:59:00 +02:00
// bintrayRepository := (bintrayRepository in ThisBuild).value,
resolvers += Resolver.sonatypeRepo("public")
2015-08-19 09:56:08 +02:00
)
lazy val root = (project in file(".")).
aggregate(lm).
settings(
2015-09-02 08:59:00 +02:00
inThisBuild(Seq(
organization := "org.scala-sbt",
version := "0.1.0-SNAPSHOT",
homepage := Some(url("https://github.com/sbt/librarymanagement")),
description := "Library management module for sbt",
licenses := List("BSD New" -> url("https://github.com/sbt/sbt/blob/0.13/LICENSE")),
scmInfo := Some(ScmInfo(url("https://github.com/sbt/librarymanagement"), "git@github.com:sbt/librarymanagement.git")),
developers := List(
Developer("harrah", "Mark Harrah", "@harrah", url("https://github.com/harrah")),
Developer("eed3si9n", "Eugene Yokota", "@eed3si9n", url("https://github.com/eed3si9n")),
Developer("jsuereth", "Josh Suereth", "@jsuereth", url("https://github.com/jsuereth")),
Developer("dwijnand", "Dale Wijnand", "@dwijnand", url("https://github.com/dwijnand"))
),
bintrayReleaseOnPublish := false,
bintrayOrganization := Some("sbt"),
bintrayRepository := "maven-releases",
bintrayPackage := "librarymanagement"
)),
2015-08-19 09:56:08 +02:00
commonSettings,
// rootSettings,
publish := {},
publishLocal := {}
)
lazy val lm = (project in file("librarymanagement")).
settings(
commonSettings,
2015-09-02 09:03:20 +02:00
libraryDependencies ++= Seq(utilLogging, utilLogging),
libraryDependencies ++= Seq(sbtIO, utilCollection, ivy, jsch, sbtSerialization, scalaReflect.value, launcherInterface),
resourceGenerators in Compile <+= (version, resourceManaged, streams, compile in Compile) map Util.generateVersionFile,
2015-08-19 09:56:08 +02:00
name := "librarymanagement"
)