Add a module config, twiddle build to support it.
We now have to build with JDK9 or above, but I believe that the built jar files continue to be compatible with JDK 1.7 or above. If this turns out not to be the case, please let me know.
This commit is contained in:
+1
-1
@@ -3,7 +3,7 @@ sudo: false
|
|||||||
language: java
|
language: java
|
||||||
|
|
||||||
jdk:
|
jdk:
|
||||||
- oraclejdk8
|
- oraclejdk9
|
||||||
|
|
||||||
cache:
|
cache:
|
||||||
directories:
|
directories:
|
||||||
|
|||||||
@@ -40,11 +40,11 @@
|
|||||||
<developerConnection>scm:git:git@github.com:samskivert/jmustache.git</developerConnection>
|
<developerConnection>scm:git:git@github.com:samskivert/jmustache.git</developerConnection>
|
||||||
<url>http://github.com/samskivert/jmustache</url>
|
<url>http://github.com/samskivert/jmustache</url>
|
||||||
</scm>
|
</scm>
|
||||||
|
<!--
|
||||||
<prerequisites>
|
<prerequisites>
|
||||||
<maven>3.3.0</maven>
|
<maven>3.3.0</maven>
|
||||||
</prerequisites>
|
</prerequisites>
|
||||||
|
-->
|
||||||
<properties>
|
<properties>
|
||||||
<source.level>1.7</source.level>
|
<source.level>1.7</source.level>
|
||||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||||
@@ -98,7 +98,7 @@
|
|||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<artifactId>maven-compiler-plugin</artifactId>
|
<artifactId>maven-compiler-plugin</artifactId>
|
||||||
<version>3.3</version>
|
<version>3.7.0</version>
|
||||||
<configuration>
|
<configuration>
|
||||||
<source>${source.level}</source>
|
<source>${source.level}</source>
|
||||||
<target>${source.level}</target>
|
<target>${source.level}</target>
|
||||||
@@ -116,6 +116,28 @@
|
|||||||
<exclude>**/super/**</exclude>
|
<exclude>**/super/**</exclude>
|
||||||
</excludes>
|
</excludes>
|
||||||
</configuration>
|
</configuration>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<id>default-compile</id>
|
||||||
|
<configuration>
|
||||||
|
<includes>
|
||||||
|
<include>module-info.java</include>
|
||||||
|
</includes>
|
||||||
|
<release>9</release>
|
||||||
|
</configuration>
|
||||||
|
</execution>
|
||||||
|
<execution>
|
||||||
|
<id>base-compile</id>
|
||||||
|
<goals>
|
||||||
|
<goal>compile</goal>
|
||||||
|
</goals>
|
||||||
|
<configuration>
|
||||||
|
<excludes>
|
||||||
|
<exclude>module-info.java</exclude>
|
||||||
|
</excludes>
|
||||||
|
</configuration>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
|
||||||
<plugin>
|
<plugin>
|
||||||
@@ -181,6 +203,7 @@
|
|||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<artifactId>maven-jar-plugin</artifactId>
|
<artifactId>maven-jar-plugin</artifactId>
|
||||||
|
<version>3.1.1</version>
|
||||||
<configuration>
|
<configuration>
|
||||||
<archive>
|
<archive>
|
||||||
<manifestEntries>
|
<manifestEntries>
|
||||||
|
|||||||
@@ -0,0 +1,5 @@
|
|||||||
|
module com.samskivert.mustache {
|
||||||
|
requires java.base;
|
||||||
|
|
||||||
|
exports com.samskivert.mustache;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user