sbt/build.sbt

79 lines
3.0 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-09-02 09:25:37 +02:00
bintrayPackage := (bintrayPackage in ThisBuild).value,
bintrayRepository := (bintrayRepository in ThisBuild).value,
2015-09-07 10:40:23 +02:00
resolvers += Resolver.sonatypeRepo("public"),
publishArtifact in Compile := true,
publishArtifact in Test := true,
scalacOptions ++= Seq(
"-encoding", "utf8",
"-deprecation",
"-feature",
"-unchecked",
"-Xlint",
"-language:higherKinds",
"-language:implicitConversions",
"-Xfuture",
"-Yinline-warnings",
"-Xfatal-warnings",
"-Yno-adapted-args",
"-Ywarn-dead-code",
"-Ywarn-numeric-widen",
"-Ywarn-value-discard")
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,
name := "LM Root",
2015-08-19 09:56:08 +02:00
publish := {},
2015-09-02 09:25:37 +02:00
publishLocal := {},
2015-09-07 10:40:23 +02:00
publishArtifact in Compile := false,
publishArtifact in Test := false,
2015-09-02 09:25:37 +02:00
publishArtifact := false
2015-08-19 09:56:08 +02:00
)
lazy val lm = (project in file("librarymanagement")).
settings(
commonSettings,
libraryDependencies ++= Seq(
utilLogging, (utilLogging % Test).classifier("tests"),
sbtIO, (sbtIO % Test).classifier("tests"),
utilTesting % Test,
utilCollection, ivy, jsch, sbtSerialization, scalaReflect.value, launcherInterface),
2015-09-02 09:03:20 +02:00
resourceGenerators in Compile <+= (version, resourceManaged, streams, compile in Compile) map Util.generateVersionFile,
2015-08-19 09:56:08 +02:00
name := "librarymanagement"
)