Skip to content

Commit

Permalink
[FLINK-8767] [quickstarts] Set the maven.compiler.source and .target …
Browse files Browse the repository at this point in the history
…properties for Java Quickstart

Setting these properties helps properly pinning the Java version in IntelliJ.
Without these properties, Java version keeps switching back to 1.5 in some setups.
  • Loading branch information
StephanEwen committed Feb 26, 2018
1 parent 2239ba3 commit c6f8406
Showing 1 changed file with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,10 @@ under the License.
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<flink.version>@project.version@</flink.version>
<java.version>1.8</java.version>
<scala.binary.version>2.11</scala.binary.version>
<maven.compiler.source>${java.version}</maven.compiler.source>
<maven.compiler.target>${java.version}</maven.compiler.target>
</properties>

<repositories>
Expand Down Expand Up @@ -100,8 +103,8 @@ under the License.
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
<source>${java.version}</source>
<target>${java.version}</target>
</configuration>
</plugin>

Expand Down Expand Up @@ -158,8 +161,8 @@ under the License.
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.8</source>
<target>1.8</target>
<source>${java.version}</source>
<target>${java.version}</target>
<compilerId>jdt</compilerId>
</configuration>
<dependencies>
Expand Down

0 comments on commit c6f8406

Please sign in to comment.