-
Notifications
You must be signed in to change notification settings - Fork 18
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
Make the compiled package runnable on Java 7 or any later version #38
Changes from all commits
b3b311c
3b8d66e
1e6d665
b5ef30b
4111120
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 | ||
---|---|---|---|---|
|
@@ -40,10 +40,29 @@ | |||
|
||||
<properties> | ||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | ||||
<maven.compiler.source>1.7</maven.compiler.source> | ||||
<maven.compiler.target>1.7</maven.compiler.target> | ||||
</properties> | ||||
|
||||
<profiles> | ||||
<profile> | ||||
<id>jdk9</id> | ||||
<activation> | ||||
<jdk>[1.9,)</jdk> | ||||
</activation> | ||||
<properties> | ||||
<maven.compiler.release>7</maven.compiler.release> | ||||
</properties> | ||||
</profile> | ||||
</profiles> | ||||
|
||||
<build> | ||||
<plugins> | ||||
<plugin> | ||||
<groupId>org.apache.maven.plugins</groupId> | ||||
<artifactId>maven-compiler-plugin</artifactId> | ||||
<version>3.10.1</version> | ||||
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. Just noting why I updated to this version: I had to update
At first, I thought I would update to some older version, e.g.
It may or may not be serious or relevant, but I thought it would be easier and safer to just raise the requirement to a later version. But |
||||
</plugin> | ||||
<plugin> | ||||
<groupId>org.apache.maven.plugins</groupId> | ||||
<artifactId>maven-source-plugin</artifactId> | ||||
|
@@ -60,7 +79,7 @@ | |||
<plugin> | ||||
<groupId>org.apache.maven.plugins</groupId> | ||||
<artifactId>maven-javadoc-plugin</artifactId> | ||||
<version>2.9.1</version> | ||||
<version>3.2.0</version> | ||||
<executions> | ||||
<execution> | ||||
<id>attach-javadocs</id> | ||||
|
@@ -111,15 +130,6 @@ | |||
</execution> | ||||
</executions> | ||||
</plugin> | ||||
<plugin> | ||||
<groupId>org.apache.maven.plugins</groupId> | ||||
<artifactId>maven-compiler-plugin</artifactId> | ||||
<version>3.1</version> | ||||
<configuration> | ||||
<source>6</source> | ||||
<target>6</target> | ||||
</configuration> | ||||
</plugin> | ||||
</plugins> | ||||
</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.
For anyone else who doesn't remember - we're bumping the minimum Java version from 6 to 7, because the runtime was actually already incompatible with Java 6. See #34 (comment)