mirror of https://github.com/sbt/sbt.git
Added sbt-javaversioncheck to the build, and bumped up sbt/ivy version to 2.3.0-sbt-14d4d23e25f354cd296c73bfff405544434d5f80
This commit is contained in:
parent
a1c54bfb59
commit
0a00d0625a
|
|
@ -2,6 +2,7 @@ import sbt._
|
|||
import Keys._
|
||||
import Status.{ publishStatus }
|
||||
import org.apache.ivy.util.url.CredentialsStore
|
||||
import com.typesafe.sbt.JavaVersionCheckPlugin.autoImport._
|
||||
|
||||
object Release extends Build {
|
||||
lazy val remoteBase = SettingKey[String]("remote-base")
|
||||
|
|
@ -57,4 +58,8 @@ object Release extends Build {
|
|||
case None => error("No credentials defined for " + PublishRepoHost)
|
||||
}
|
||||
}
|
||||
|
||||
def javaVersionCheckSettings = Seq(
|
||||
javaVersionPrefix in javaVersionCheck := Some("1.6")
|
||||
)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -290,7 +290,7 @@ object Sbt extends Build {
|
|||
def releaseSettings = Release.settings(nonRoots, proguard in Proguard)
|
||||
def rootSettings = releaseSettings ++ fullDocSettings ++ LaunchProguard.settings ++ LaunchProguard.specific(launchSub) ++
|
||||
Util.publishPomSettings ++ otherRootSettings ++ proguardedLauncherSettings ++ Formatting.sbtFilesSettings ++
|
||||
Transform.conscriptSettings(launchSub)
|
||||
Transform.conscriptSettings(launchSub) ++ Release.javaVersionCheckSettings
|
||||
def otherRootSettings = Seq(
|
||||
scripted <<= scriptedTask,
|
||||
scriptedUnpublished <<= scriptedUnpublishedTask,
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ object Util {
|
|||
name := nameString,
|
||||
resolvers += Resolver.typesafeIvyRepo("releases")
|
||||
)
|
||||
def minProject(path: File, nameString: String) = Project(normalize(nameString), path) settings (commonSettings(nameString) ++ publishPomSettings: _*)
|
||||
def minProject(path: File, nameString: String) = Project(normalize(nameString), path) settings (commonSettings(nameString) ++ publishPomSettings ++ Release.javaVersionCheckSettings: _*)
|
||||
def baseProject(path: File, nameString: String) = minProject(path, nameString) settings (base: _*)
|
||||
def testedBaseProject(path: File, nameString: String) = baseProject(path, nameString) settings (testDependencies)
|
||||
|
||||
|
|
@ -174,7 +174,7 @@ object Common {
|
|||
def lib(m: ModuleID) = libraryDependencies += m
|
||||
lazy val jlineDep = "jline" % "jline" % "2.11"
|
||||
lazy val jline = lib(jlineDep)
|
||||
lazy val ivy = lib("org.scala-sbt.ivy" % "ivy" % "2.3.0-sbt-fac2aaab6f982c4424b47e6b190190bef50a6f59")
|
||||
lazy val ivy = lib("org.scala-sbt.ivy" % "ivy" % "2.3.0-sbt-14d4d23e25f354cd296c73bfff405544434d5f80")
|
||||
lazy val httpclient = lib("commons-httpclient" % "commons-httpclient" % "3.1")
|
||||
lazy val jsch = lib("com.jcraft" % "jsch" % "0.1.46" intransitive ())
|
||||
lazy val sbinary = libraryDependencies += "org.scala-tools.sbinary" %% "sbinary" % "0.4.2"
|
||||
|
|
|
|||
|
|
@ -10,3 +10,5 @@ resolvers += "jgit-repo" at "http://download.eclipse.org/jgit/maven"
|
|||
addSbtPlugin("com.typesafe.sbt" % "sbt-ghpages" % "0.5.1")
|
||||
|
||||
addSbtPlugin("com.typesafe.sbt" % "sbt-scalariform" % "1.3.0")
|
||||
|
||||
addSbtPlugin("com.typesafe.sbt" % "sbt-javaversioncheck" % "0.1.0")
|
||||
|
|
|
|||
Loading…
Reference in New Issue