Skip to content
This repository was archived by the owner on Apr 18, 2019. It is now read-only.

Commit 7da7150

Browse files
committed
Cover all modules in Maven sample.
1 parent b0705c1 commit 7da7150

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,16 @@ This to depend on scala-xml module with assumption that you have `scalaVersion`
3838
<artifactId>scala-xml_${scalaVersion}</artifactId>
3939
<version>1.0.0</version>
4040
</dependency>
41+
<dependency>
42+
<groupId>org.scala-lang.modules</groupId>
43+
<artifactId>scala-parser-combinators_${scalaVersion}</artifactId>
44+
<version>1.0.0</version>
45+
</dependency>
46+
<dependency>
47+
<groupId>org.scala-lang.modules</groupId>
48+
<artifactId>scala-swing_${scalaVersion}</artifactId>
49+
<version>1.0.0</version>
50+
</dependency>
4151
```
4252

4353
*NOTE*: Due to an [issue](https://issues.scala-lang.org/browse/SI-8358) in Scala compiler, your project that depends on scala-xml will compile with Scala 2.11 even if you do not declare the dependency on `scala-xml` module. However, it will fail at runtime due to missing dependency. In order to prevent that mistake we offer a workaround. Add `-nobootcp` Scala compiler option which will make scala-xml invisible to compilation classpath and your code will fail to compile when the dependency on `scala-xml` is missing. Check sample pom.xml for details.

maven-sample/pom.xml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,16 @@
1818
<artifactId>scala-xml_${scalaVersion}</artifactId>
1919
<version>1.0.0</version>
2020
</dependency>
21+
<dependency>
22+
<groupId>org.scala-lang.modules</groupId>
23+
<artifactId>scala-parser-combinators_${scalaVersion}</artifactId>
24+
<version>1.0.0</version>
25+
</dependency>
26+
<dependency>
27+
<groupId>org.scala-lang.modules</groupId>
28+
<artifactId>scala-swing_${scalaVersion}</artifactId>
29+
<version>1.0.0</version>
30+
</dependency>
2131
</dependencies>
2232
<build>
2333
<sourceDirectory>src/main/scala</sourceDirectory>

0 commit comments

Comments
 (0)