mirror of https://github.com/sbt/sbt.git
bump to using sbt 1.0.0-M6
We are missing the plugin for Scalafmt but I think we need to use beta2 ourselves.
This commit is contained in:
parent
a64a60342d
commit
bcc74a962e
|
|
@ -16,7 +16,7 @@ matrix:
|
|||
|
||||
env:
|
||||
matrix:
|
||||
- SBT_CMD=";test:compile;scalafmt::test;test:scalafmt::test;mainSettingsProj/test;safeUnitTests;otherUnitTests"
|
||||
- SBT_CMD=";test:compile;mainSettingsProj/test;safeUnitTests;otherUnitTests"
|
||||
# - SBT_CMD="mimaReportBinaryIssues"
|
||||
- SBT_CMD="scripted actions/*"
|
||||
- SBT_CMD="scripted apiinfo/* compiler-project/* ivy-deps-management/*"
|
||||
|
|
|
|||
|
|
@ -0,0 +1,4 @@
|
|||
import sbt._
|
||||
|
||||
// This is a placeholder so we don't have to change build.sbt.
|
||||
object ScalafmtPlugin extends AutoPlugin {}
|
||||
|
|
@ -26,17 +26,22 @@ object Sxr {
|
|||
target := target.in(taskGlobal).value / "browse",
|
||||
sxr in taskGlobal := sxrTask.value
|
||||
)
|
||||
def taskGlobal = ThisScope.copy(task = Global)
|
||||
def taskGlobal = ThisScope.copy(task = Zero)
|
||||
def sxrTask = Def task {
|
||||
val out = target.value
|
||||
val outputDir = out.getParentFile / (out.getName + ".sxr")
|
||||
val log = streams.value.log
|
||||
val si = scalaInstance.value
|
||||
val cp = fullClasspath.value
|
||||
val so = scalacOptions.value
|
||||
val co = classpathOptions.value
|
||||
val f = FileFunction.cached(streams.value.cacheDirectory / "sxr", FilesInfo.hash) { in =>
|
||||
streams.value.log.info("Generating sxr output in " + outputDir.getAbsolutePath + "...")
|
||||
log.info("Generating sxr output in " + outputDir.getAbsolutePath + "...")
|
||||
IO.delete(out)
|
||||
IO.createDirectory(out)
|
||||
val comp =
|
||||
new RawCompiler(scalaInstance.value, classpathOptions.value, streams.value.log)
|
||||
comp(in.toSeq.sorted, fullClasspath.value.files, out, scalacOptions.value)
|
||||
new RawCompiler(si, co, log)
|
||||
comp(in.toSeq.sorted, cp.files, out, so)
|
||||
Set(outputDir)
|
||||
}
|
||||
f(sources.value.toSet)
|
||||
|
|
|
|||
|
|
@ -93,7 +93,7 @@ object Util {
|
|||
}
|
||||
def lastCompilationTime(analysis: Analysis): Long = {
|
||||
val lastCompilation = analysis.compilations.allCompilations.lastOption
|
||||
lastCompilation.map(_.startTime) getOrElse 0L
|
||||
lastCompilation.map(_.getStartTime) getOrElse 0L
|
||||
}
|
||||
def generateVersionFile(version: String,
|
||||
dir: File,
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
sbt.version=1.0.0-M5
|
||||
sbt.version=1.0.0-M6
|
||||
|
|
|
|||
|
|
@ -5,9 +5,10 @@ scalacOptions ++= Seq("-feature", "-language:postfixOps")
|
|||
// addSbtPlugin("com.typesafe.sbt" % "sbt-ghpages" % "0.6.0")
|
||||
// addSbtPlugin("com.typesafe.sbt" % "sbt-git" % "0.9.2")
|
||||
// addSbtPlugin("com.typesafe.sbt" % "sbt-javaversioncheck" % "0.1.0")
|
||||
//addSbtPlugin("com.geirsson" % "sbt-scalafmt" % "0.7.0-RC1")
|
||||
addSbtPlugin("com.lucidchart" % "sbt-scalafmt" % "0.3")
|
||||
// addSbtPlugin("com.typesafe.sbt" % "sbt-site" % "1.2.0")
|
||||
addSbtPlugin("org.foundweekends" % "sbt-bintray" % "0.4.0")
|
||||
addSbtPlugin("org.scala-sbt" % "sbt-contraband" % "0.3.0-M5")
|
||||
addSbtPlugin("com.jsuereth" % "sbt-pgp" % "1.1.0-M1")
|
||||
|
||||
// hopefully this comes back soon.
|
||||
// addSbtPlugin("com.lucidchart" % "sbt-scalafmt" % "0.3")
|
||||
|
|
|
|||
Loading…
Reference in New Issue