-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Test on Java 11 #106
Test on Java 11 #106
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,15 +30,17 @@ | |
</developers> | ||
|
||
<properties> | ||
<maven.compiler.target>1.8</maven.compiler.target> | ||
<maven.compiler.source>1.8</maven.compiler.source> | ||
<java.release>8</java.release> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I assume that if you specify a property on the command line it automatically overrules the one that's included in the file? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That's right |
||
<java.version>1.8</java.version> | ||
<maven.compiler.target>${java.version}</maven.compiler.target> | ||
<maven.compiler.source>${java.version}</maven.compiler.source> | ||
<htsjdk.version>2.19.0</htsjdk.version> | ||
<hadoop.version>2.7.5</hadoop.version> | ||
<mockito.version>2.22.0</mockito.version> | ||
<kryo-serializers.version>0.42</kryo-serializers.version> | ||
<slf4j.version>1.7.25</slf4j.version> | ||
<scala.version>2.11</scala.version> | ||
<spark.version>2.3.2</spark.version> | ||
<spark.version>2.4.3</spark.version> | ||
</properties> | ||
|
||
<dependencies> | ||
|
@@ -161,6 +163,11 @@ | |
|
||
<build> | ||
<plugins> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-compiler-plugin</artifactId> | ||
<version>3.8.0</version> | ||
</plugin> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-enforcer-plugin</artifactId> | ||
|
@@ -338,6 +345,24 @@ | |
</distributionManagement> | ||
|
||
<profiles> | ||
<profile> | ||
<id>java11</id> | ||
<activation> | ||
<jdk>11</jdk> | ||
</activation> | ||
<build> | ||
<plugins> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-compiler-plugin</artifactId> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Dumb maven question: why do we need a java11 profile? to specify a different compiler plugin? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's to set the maven-compiler-plugin's |
||
<version>3.8.0</version> | ||
<configuration> | ||
<release>${java.release}</release> | ||
</configuration> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
</profile> | ||
<profile> | ||
<id>release</id> | ||
<build> | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I hate that it's sometimes 1.8 and sometimes 8, but what can you do...