Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

branch-merge-2.8.x (76a04740a) #9934

Merged
merged 4 commits into from
Dec 18, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ addons:
packages:
# Install xmllint used to get Akka HTTP version
- libxml2-utils
git:
depth: false # Avoid sbt-dynver not seeing the tag

env:
global:
Expand Down
14 changes: 14 additions & 0 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,20 @@ import sbt._
import sbt.io.Path._
import org.scalafmt.sbt.ScalafmtPlugin

// Customise sbt-dynver's behaviour to make it work with tags which aren't v-prefixed
dynverVTagPrefix in ThisBuild := false

// Sanity-check: assert that version comes from a tag (e.g. not a too-shallow clone)
// https://github.com/dwijnand/sbt-dynver/#sanity-checking-the-version
Global / onLoad := (Global / onLoad).value.andThen { s =>
val v = version.value
if (dynverGitDescribeOutput.value.hasNoTags)
throw new MessageOnlyException(
s"Failed to derive version from git tags. Maybe run `git fetch --unshallow`? Version: $v"
)
s
}

lazy val BuildLinkProject = PlayNonCrossBuiltProject("Build-Link", "dev-mode/build-link")
.dependsOn(PlayExceptionsProject)

Expand Down
9 changes: 1 addition & 8 deletions project/BuildSettings.scala
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,7 @@ object BuildSettings {

private val VersionPattern = """^(\d+).(\d+).(\d+)(-.*)?""".r

// Versions of previous minor releases being checked for binary compatibility
val mimaPreviousMinorReleaseVersions: Seq[String] = Seq("2.8.0")
def mimaPreviousPatchVersions(version: String): Seq[String] = version match {
case VersionPattern(epoch, major, minor, rest) => (0 until minor.toInt).map(v => s"$epoch.$major.$v")
case _ => sys.error(s"Cannot find previous versions for $version")
}
def mimaPreviousVersions(version: String): Set[String] =
mimaPreviousMinorReleaseVersions.toSet ++ mimaPreviousPatchVersions(version)
def mimaPreviousVersions(version: String): Set[String] = Set("2.8.0")

def evictionSettings: Seq[Setting[_]] = Seq(
// This avoids a lot of dependency resolution warnings to be showed.
Expand Down
6 changes: 0 additions & 6 deletions project/Release.scala
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,10 @@ object Release {
releaseCrossBuild := false,
releaseProcess := Seq[ReleaseStep](
checkSnapshotDependencies,
inquireVersions,
runClean,
setReleaseVersion,
commitReleaseVersion,
tagRelease,
releaseStepCommandAndRemaining("+publishSigned"),
releaseStepTask(bintrayRelease in thisProjectRef.value),
releaseStepCommand("sonatypeBundleRelease"),
setNextVersion,
commitNextVersion,
pushChanges
)
)
Expand Down
1 change: 1 addition & 0 deletions project/plugins.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ addSbtPlugin("com.lightbend.sbt" % "sbt-java-formatter" % sbtJavaFormatter)
addSbtPlugin("pl.project13.scala" % "sbt-jmh" % sbtJmh)
addSbtPlugin("de.heikoseeberger" % "sbt-header" % sbtHeader)
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % scalafmt)
addSbtPlugin("com.dwijnand" % "sbt-dynver" % "4.0.0")

libraryDependencies ++= Seq(
"org.webjars" % "webjars-locator-core" % webjarsLocatorCore
Expand Down
1 change: 0 additions & 1 deletion version.sbt

This file was deleted.