Skip to content

Commit

Permalink
Merge pull request #127 from bjaglin/jdk11
Browse files Browse the repository at this point in the history
make local dev possible with JDK11
  • Loading branch information
github-brice-jaglin authored Jun 14, 2020
2 parents 3c2bbca + 5538e28 commit 644f5ad
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 3 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,15 @@ jobs:
- uses: actions/checkout@v2
- uses: olafurpg/setup-scala@v7
- run: sbt ${{ matrix.command }}
jdk11:
name: JDK11
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: olafurpg/setup-scala@v7
with:
java-version: adopt@1.11
- run: sbt test scripted
windows:
name: Windows tests
runs-on: windows-latest
Expand Down
2 changes: 1 addition & 1 deletion src/sbt-test/sbt-scalafix/cross-build/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ lazy val root = project
)

lazy val scala210 = project.settings(
scalaVersion := "2.10.5"
scalaVersion := "2.10.7"
)
lazy val scala211 = project.settings(
scalaVersion := Versions.scala211,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ object ScalafixTestUtility {

if (expected == obtained) None
else {
def jLinesOf(s: String) = s.lines.toSeq.asJava
def jLinesOf(s: String) = s.linesIterator.toSeq.asJava

val expectedLines = jLinesOf(expected)
val obtainedLines = jLinesOf(obtained)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ object ScalafixTestUtility {

if (expected == obtained) None
else {
def jLinesOf(s: String) = s.lines.toSeq.asJava
def jLinesOf(s: String) = s.linesIterator.toSeq.asJava

val expectedLines = jLinesOf(expected)
val obtainedLines = jLinesOf(obtained)
Expand Down

0 comments on commit 644f5ad

Please sign in to comment.