Skip to content

Commit 3a01d5b

Browse files
authored
Merge pull request #4983 from dotty-staging/fix-jline-deps
Fix JLine dependencies
2 parents 9dd92a9 + e84ed0b commit 3a01d5b

File tree

6 files changed

+21
-16
lines changed

6 files changed

+21
-16
lines changed

.drone.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,22 +23,22 @@ pipeline:
2323
# We run tests in parallel. Tests run in a copy of the working directory to avoid conflict
2424
test:
2525
group: test
26-
image: lampepfl/dotty:2018-06-29
26+
image: lampepfl/dotty:2018-08-22
2727
commands:
2828
- cp -R . /tmp/1/ && cd /tmp/1/
2929
- ./project/scripts/sbt ";compile ;test"
3030
- ./project/scripts/cmdTests
3131

3232
test_bootstrapped:
3333
group: test
34-
image: lampepfl/dotty:2018-06-29
34+
image: lampepfl/dotty:2018-08-22
3535
commands:
3636
- cp -R . /tmp/2/ && cd /tmp/2/
3737
- ./project/scripts/sbt ";dotty-bootstrapped/compile ;dotty-bootstrapped/test"
3838

3939
test_sbt:
4040
group: test
41-
image: lampepfl/dotty:2018-06-29
41+
image: lampepfl/dotty:2018-08-22
4242
commands:
4343
- cp -R . /tmp/4/ && cd /tmp/4/
4444
- ./project/scripts/sbt sbt-dotty/scripted
@@ -48,7 +48,7 @@ pipeline:
4848

4949
# DOCUMENTATION:
5050
documentation:
51-
image: lampepfl/dotty:2018-06-29
51+
image: lampepfl/dotty:2018-08-22
5252
commands:
5353
- ./project/scripts/genDocs
5454
secrets: [ bot_pass ]
@@ -60,7 +60,7 @@ pipeline:
6060
# PUBLISHING:
6161
# Publishing expect NIGHTLYBUILD or RELEASEBUILD to be set. See dottyVersion in Build.scala
6262
publish_nightly:
63-
image: lampepfl/dotty:2018-06-29
63+
image: lampepfl/dotty:2018-08-22
6464
environment:
6565
- NIGHTLYBUILD=yes
6666
commands:
@@ -71,7 +71,7 @@ pipeline:
7171
environment: nightly
7272

7373
publish_release:
74-
image: lampepfl/dotty:2018-06-29
74+
image: lampepfl/dotty:2018-08-22
7575
environment:
7676
- RELEASEBUILD=yes
7777
commands:
@@ -95,7 +95,7 @@ pipeline:
9595
event: tag
9696

9797
publish_sbt_release:
98-
image: lampepfl/dotty:2018-06-29
98+
image: lampepfl/dotty:2018-08-22
9999
environment:
100100
- RELEASEBUILD=yes
101101
commands:

compiler/test/dotty/Jars.scala

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,21 @@ object Jars {
2222
lazy val scalaXml: String =
2323
findJarFromRuntime("scala-xml")
2424

25-
/** JLine Jar */
26-
lazy val jline: String =
27-
findJarFromRuntime("jline-3.7.0")
25+
/** jline-terminal jar */
26+
lazy val jlineTerminal: String =
27+
findJarFromRuntime("jline-terminal-3.9.0")
28+
29+
/** jline-reader jar */
30+
lazy val jlineReader: String =
31+
findJarFromRuntime("jline-reader-3.9.0")
2832

2933
/** Dotty extras classpath from env or properties */
3034
val dottyExtras: List[String] = sys.env.get("DOTTY_EXTRAS")
3135
.map(_.split(":").toList).getOrElse(Properties.dottyExtras)
3236

3337
/** Dotty test dependencies */
3438
val dottyTestDeps: List[String] =
35-
dottyLib :: dottyCompiler :: dottyInterfaces :: jline :: dottyExtras
39+
dottyLib :: dottyCompiler :: dottyInterfaces :: jlineTerminal :: jlineReader :: dottyExtras
3640

3741
/** Dotty runtime with compiler dependencies, used for quoted.Expr.run */
3842
lazy val dottyRunWithCompiler: List[String] =

compiler/test/dotty/tools/dotc/CompilationTests.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ class CompilationTests extends ParallelTesting {
205205
// as well as bootstrapped compiler:
206206
defaultOutputDir + dotty1Group + "/dotty/:" +
207207
// and the other compiler dependecies:
208-
Jars.dottyInterfaces + ":" + Jars.jline,
208+
Jars.dottyInterfaces + ":" + Jars.jlineTerminal + ":" + Jars.jlineReader,
209209
Array("-Ycheck-reentrant", "-Yemit-tasty-in-class")
210210
)
211211

dist/bin/common

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ SCALA_ASM=$(find_lib "*scala-asm*")
119119
SCALA_LIB=$(find_lib "*scala-library*")
120120
SCALA_XML=$(find_lib "*scala-xml*")
121121
SBT_INTF=$(find_lib "*compiler-interface*")
122-
JLINE=$(find_lib "*jline-3*")
122+
JLINE_READER=$(find_lib "*jline-reader-3*")
123123
JLINE_TERMINAL=$(find_lib "*jline-terminal-3*")
124124
JLINE_TERMINAL_JNA=$(find_lib "*jline-terminal-jna-3*")
125125

dist/bin/dotc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ classpathArgs () {
6666
toolchain+="$DOTTY_COMP$PSEP"
6767

6868
# jine
69-
toolchain+="$JLINE$PSEP"
69+
toolchain+="$JLINE_READER$PSEP"
7070
toolchain+="$JLINE_TERMINAL$PSEP"
7171
toolchain+="$JLINE_TERMINAL_JNA"
7272

project/Build.scala

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -517,8 +517,9 @@ object Build {
517517
("org.scala-lang.modules" %% "scala-xml" % "1.1.0").withDottyCompat(scalaVersion.value),
518518
"org.scala-lang" % "scala-library" % scalacVersion % "test",
519519
Dependencies.compilerInterface(sbtVersion.value),
520-
"org.jline" % "jline" % "3.7.0", // used by the REPL
521-
"org.jline" % "jline-terminal-jna" % "3.7.0" // needed for Windows
520+
"org.jline" % "jline-reader" % "3.9.0", // used by the REPL
521+
"org.jline" % "jline-terminal" % "3.9.0",
522+
"org.jline" % "jline-terminal-jna" % "3.9.0" // needed for Windows
522523
),
523524

524525
// For convenience, change the baseDirectory when running the compiler

0 commit comments

Comments
 (0)