Skip to content

Commit

Permalink
Update docs for Java 8 (#429)
Browse files Browse the repository at this point in the history
Now must be built using Java 11.
  • Loading branch information
freemanjp committed Mar 6, 2022
1 parent 23c67a8 commit c89e276
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,26 @@ company-specific.

## Java 8

For Java 8 projects add the following to your POM:
Due to some of the Maven plugins we use requiring Java 11 to run, you need to
build on Java 11 to compile for Java 8.

Add the following to your POM:

```xml
<project>
...
<parent>
<groupId>com.github.gantsign.parent</groupId>
<artifactId>java8-parent</artifactId>
<artifactId>java-parent</artifactId>
<version>INSERT VERSION HERE</version>
<relativePath />
</parent>
...
<properties>
<java.require.version>11</java.require.version>
<java.target.version>8</java.target.version>
</properties>
...
<!-- Don't inherit license from parent POM -->
<licenses>
<license>
Expand Down Expand Up @@ -52,6 +60,10 @@ For Java 11 projects add the following to your POM:
<relativePath />
</parent>
...
<properties>
<java.target.version>11</java.target.version>
</properties>
...
<!-- Don't inherit license from parent POM -->
<licenses>
<license>
Expand Down Expand Up @@ -83,6 +95,11 @@ For Kotlin projects add the following to your POM:
<relativePath />
</parent>
...
<properties>
<java.require.version>[${java.target.version},9)</java.require.version>
<java.target.version>1.8</java.target.version>
</properties>
...
<!-- Don't inherit license from parent POM -->
<licenses>
<license>
Expand Down

0 comments on commit c89e276

Please sign in to comment.