Skip to content

Commit 8c203a9

Browse files
committed
[Scala] Add target JVM 8
1 parent f823722 commit 8c203a9

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed

scala/scala_2.11/pom.xml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,14 @@
5959
</testResource>
6060
</testResources>
6161
<plugins>
62+
<plugin>
63+
<groupId>org.apache.maven.plugins</groupId>
64+
<artifactId>maven-compiler-plugin</artifactId>
65+
<configuration>
66+
<source>1.8</source>
67+
<target>1.8</target>
68+
</configuration>
69+
</plugin>
6270
<!-- Extra Sources for Scala 2.11 -->
6371
<plugin>
6472
<groupId>org.codehaus.mojo</groupId>
@@ -82,6 +90,7 @@
8290
<artifactId>scala-maven-plugin</artifactId>
8391
<configuration>
8492
<args>
93+
<arg>-target:jvm-1.8</arg>
8594
<arg>-deprecation</arg>
8695
<arg>-feature</arg>
8796
<!-- Allow definition of implicit functions called views -->

scala/scala_2.12/pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@
7373
<artifactId>scala-maven-plugin</artifactId>
7474
<configuration>
7575
<args>
76+
<arg>-target:jvm-1.8</arg>
7677
<!-- Emit warning and location for usages of deprecated APIs. -->
7778
<arg>-deprecation</arg>
7879
<!-- Emit warning and location for usages of features that should be imported explicitly. -->

scala/scala_2.13/pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@
7070
<configuration>
7171
<!-- https://nathankleyn.com/2019/05/13/recommended-scalac-flags-for-2-13/ -->
7272
<args>
73+
<arg>-target:jvm-1.8</arg>
7374
<!-- Emit warning and location for usages of deprecated APIs. -->
7475
<arg>-deprecation</arg>
7576
<!-- Explain type errors in more detail. -->

0 commit comments

Comments
 (0)