Skip to content
This repository has been archived by the owner on Jun 10, 2020. It is now read-only.

Commit

Permalink
Merge pull request #200 from eed3si9n/wip/bump
Browse files Browse the repository at this point in the history
IO 1.3.0-M10, and nightly version
  • Loading branch information
eed3si9n authored May 11, 2019
2 parents 6e9a824 + dec2ba2 commit 19cf0cd
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 21 deletions.
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ language: scala
jdk: oraclejdk8

scala:
- 2.11.12
- 2.12.7

script: sbt -Dfile.encoding=UTF8 -J-XX:ReservedCodeCacheSize=256M
Expand Down
29 changes: 14 additions & 15 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,17 @@ import Dependencies._
import Util._
import com.typesafe.tools.mima.core._, ProblemFilters._

ThisBuild / git.baseVersion := "1.3.0"
ThisBuild / version := {
val old = (ThisBuild / version).value
nightlyVersion match {
case Some(v) => v
case _ =>
if (old contains "SNAPSHOT") git.baseVersion.value + "-SNAPSHOT"
else old
}
}

def internalPath = file("internal")

def commonSettings: Seq[Setting[_]] = Seq(
Expand All @@ -13,7 +24,7 @@ def commonSettings: Seq[Setting[_]] = Seq(
// concurrentRestrictions in Global += Util.testExclusiveRestriction,
testOptions += Tests.Argument(TestFrameworks.ScalaCheck, "-w", "1"),
javacOptions in compile ++= Seq("-Xlint", "-Xlint:-serial"),
crossScalaVersions := Seq(scala211, scala212),
crossScalaVersions := Seq(scala212),
scalacOptions in console in Compile -= "-Ywarn-unused-import",
scalacOptions in console in Test -= "-Ywarn-unused-import",
publishArtifact in Compile := true,
Expand Down Expand Up @@ -45,12 +56,6 @@ lazy val utilRoot: Project = (project in file("."))
.settings(
inThisBuild(
Seq(
git.baseVersion := "1.3.0",
version := {
val v = version.value
if (v contains "SNAPSHOT") git.baseVersion.value + "-SNAPSHOT"
else v
},
bintrayPackage := "util",
homepage := Some(url("https://github.com/sbt/util")),
description := "Util module for sbt",
Expand Down Expand Up @@ -93,7 +98,7 @@ lazy val utilLogging = (project in internalPath / "util-logging")
.dependsOn(utilInterface)
.settings(
commonSettings,
crossScalaVersions := Seq(scala211, scala212),
crossScalaVersions := Seq(scala212),
name := "Util Logging",
libraryDependencies ++=
Seq(jline, log4jApi, log4jCore, disruptor, sjsonnewScalaJson.value, scalaReflect.value),
Expand Down Expand Up @@ -166,13 +171,7 @@ lazy val utilScripted = (project in internalPath / "util-scripted")
.settings(
commonSettings,
name := "Util Scripted",
libraryDependencies ++= {
scalaVersion.value match {
case sv if sv startsWith "2.11" => Seq(parserCombinator211)
case sv if sv startsWith "2.12" => Seq(parserCombinator211)
case _ => Seq()
}
},
libraryDependencies += parserCombinator,
mimaSettings,
)
.configure(addSbtIO)
Expand Down
8 changes: 4 additions & 4 deletions project/Dependencies.scala
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ import Keys._
import sbt.contraband.ContrabandPlugin.autoImport._

object Dependencies {
val scala211 = "2.11.12"
val scala212 = "2.12.8"

private val ioVersion = "1.2.1"
def nightlyVersion: Option[String] = sys.props.get("sbt.build.version")

private val ioVersion = nightlyVersion.getOrElse("1.3.0-M10")
private val sbtIO = "org.scala-sbt" %% "io" % ioVersion

def getSbtModulePath(key: String, name: String) = {
Expand Down Expand Up @@ -40,8 +40,8 @@ object Dependencies {
val scalaReflect = Def.setting { "org.scala-lang" % "scala-reflect" % scalaVersion.value }

val scalaCheck = "org.scalacheck" %% "scalacheck" % "1.14.0" % Test
val scalaTest = "org.scalatest" %% "scalatest" % "3.0.5" % Test
val parserCombinator211 = "org.scala-lang.modules" %% "scala-parser-combinators" % "1.0.4"
val scalaTest = "org.scalatest" %% "scalatest" % "3.0.6-SNAP5" % Test
val parserCombinator = "org.scala-lang.modules" %% "scala-parser-combinators" % "1.1.2"

val sjsonnew = Def.setting {
"com.eed3si9n" %% "sjson-new-core" % contrabandSjsonNewVersion.value
Expand Down
2 changes: 1 addition & 1 deletion project/Util.scala
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ object Util {
crossPaths := false,
compileOrder := CompileOrder.JavaThenScala,
unmanagedSourceDirectories in Compile := Seq((javaSource in Compile).value),
crossScalaVersions := Seq(Dependencies.scala211),
crossScalaVersions := Seq(Dependencies.scala212),
autoScalaLibrary := false
)
}

0 comments on commit 19cf0cd

Please sign in to comment.