mirror of https://github.com/sbt/sbt.git
commit
364ef51a37
10
build.sbt
10
build.sbt
|
|
@ -30,7 +30,13 @@ def commonSettings: Seq[Setting[_]] = Seq(
|
||||||
)
|
)
|
||||||
|
|
||||||
val mimaSettings = Def settings (
|
val mimaSettings = Def settings (
|
||||||
mimaPreviousArtifacts := Set(organization.value %% moduleName.value % "1.0.0"),
|
mimaPreviousArtifacts := Set(
|
||||||
|
"1.0.0", "1.0.1", "1.0.2", "1.0.3", "1.0.4",
|
||||||
|
"1.1.0", "1.1.1",
|
||||||
|
) map (version =>
|
||||||
|
organization.value %% moduleName.value % version
|
||||||
|
cross (if (crossPaths.value) CrossVersion.binary else CrossVersion.disabled)
|
||||||
|
),
|
||||||
mimaBinaryIssueFilters ++= {
|
mimaBinaryIssueFilters ++= {
|
||||||
import com.typesafe.tools.mima.core._
|
import com.typesafe.tools.mima.core._
|
||||||
import com.typesafe.tools.mima.core.ProblemFilters._
|
import com.typesafe.tools.mima.core.ProblemFilters._
|
||||||
|
|
@ -54,9 +60,7 @@ lazy val lmRoot = (project in file("."))
|
||||||
Some(ScmInfo(url(s"https://github.com/$slug"), s"git@github.com:$slug.git"))
|
Some(ScmInfo(url(s"https://github.com/$slug"), s"git@github.com:$slug.git"))
|
||||||
},
|
},
|
||||||
bintrayPackage := "librarymanagement",
|
bintrayPackage := "librarymanagement",
|
||||||
scalafmtOnCompile := true,
|
|
||||||
scalafmtOnCompile in Sbt := false,
|
scalafmtOnCompile in Sbt := false,
|
||||||
scalafmtVersion := "1.2.0",
|
|
||||||
git.baseVersion := baseVersion,
|
git.baseVersion := baseVersion,
|
||||||
version := {
|
version := {
|
||||||
val v = version.value
|
val v = version.value
|
||||||
|
|
|
||||||
|
|
@ -16,12 +16,11 @@ final class RichUpdateReport(report: UpdateReport) {
|
||||||
.map(
|
.map(
|
||||||
f =>
|
f =>
|
||||||
(f,
|
(f,
|
||||||
// TODO: this used to be a lastModified(), without error checking.
|
// TODO: The list of files may also contain some odd files that do not actually exist like:
|
||||||
// On occasion, "files" contains files like "./target/ivyhome/resolution-cache/com.example/foo/0.4.0/resolved.xml.xml",
|
// "./target/ivyhome/resolution-cache/com.example/foo/0.4.0/resolved.xml.xml".
|
||||||
// which do not actually exist, so getModifiedTime() correctly throws an exception. For the moment, the behavior of
|
// IO.getModifiedTimeOrZero() will just return zero, but the list of files should not contain such
|
||||||
// lastModified() is reproduced, but the non-existent file should really not be there to begin with. so, FIXME.
|
// files to begin with, in principle.
|
||||||
try IO.getModifiedTime(f)
|
IO.getModifiedTimeOrZero(f))
|
||||||
catch { case _: FileNotFoundException => 0L })
|
|
||||||
)
|
)
|
||||||
.toMap
|
.toMap
|
||||||
UpdateReport(report.cachedDescriptor, report.configurations, report.stats, stamps)
|
UpdateReport(report.cachedDescriptor, report.configurations, report.stats, stamps)
|
||||||
|
|
|
||||||
|
|
@ -149,7 +149,7 @@ class GigahorseUrlHandler extends AbstractURLHandler {
|
||||||
|
|
||||||
val lastModified = lastModifiedTimestamp(response)
|
val lastModified = lastModifiedTimestamp(response)
|
||||||
if (lastModified > 0) {
|
if (lastModified > 0) {
|
||||||
IO.setModifiedTime(dest, lastModified)
|
IO.setModifiedTimeOrFalse(dest, lastModified)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (l != null) {
|
if (l != null) {
|
||||||
|
|
|
||||||
|
|
@ -6,8 +6,8 @@ object Dependencies {
|
||||||
val scala211 = "2.11.12"
|
val scala211 = "2.11.12"
|
||||||
val scala212 = "2.12.4"
|
val scala212 = "2.12.4"
|
||||||
|
|
||||||
private val ioVersion = "1.1.2"
|
private val ioVersion = "1.1.3"
|
||||||
private val utilVersion = "1.1.1"
|
private val utilVersion = "1.1.2"
|
||||||
|
|
||||||
private val sbtIO = "org.scala-sbt" %% "io" % ioVersion
|
private val sbtIO = "org.scala-sbt" %% "io" % ioVersion
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -26,8 +26,8 @@ object Util {
|
||||||
val timestamp = formatter.format(new Date)
|
val timestamp = formatter.format(new Date)
|
||||||
val content = versionLine(version) + "\ntimestamp=" + timestamp
|
val content = versionLine(version) + "\ntimestamp=" + timestamp
|
||||||
val f = dir / "xsbt.version.properties"
|
val f = dir / "xsbt.version.properties"
|
||||||
// TODO: replace lastModified() with sbt.io.Milli.getModifiedTime(), once the build
|
// TODO: replace lastModified() with sbt.io.IO.getModifiedTimeOrZero(), once the build
|
||||||
// has been upgraded to a version of sbt that includes sbt.io.Milli.
|
// has been upgraded to a version of sbt that includes that call.
|
||||||
if (!f.exists || f.lastModified < lastCompilationTime(analysis) || !containsVersion(f, version)) {
|
if (!f.exists || f.lastModified < lastCompilationTime(analysis) || !containsVersion(f, version)) {
|
||||||
s.log.info("Writing version information to " + f + " :\n" + content)
|
s.log.info("Writing version information to " + f + " :\n" + content)
|
||||||
IO.write(f, content)
|
IO.write(f, content)
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
sbt.version=1.0.0
|
sbt.version=1.0.4
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
addSbtPlugin("org.scala-sbt" % "sbt-houserules" % "0.3.4")
|
addSbtPlugin("org.scala-sbt" % "sbt-houserules" % "0.3.5")
|
||||||
addSbtPlugin("org.scala-sbt" % "sbt-contraband" % "0.3.2")
|
addSbtPlugin("org.scala-sbt" % "sbt-contraband" % "0.3.2")
|
||||||
|
|
||||||
scalacOptions += "-language:postfixOps"
|
scalacOptions += "-language:postfixOps"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue