diff --git a/main-github/latest-release-notes.md b/main-github/latest-release-notes.md new file mode 100644 index 0000000..cb22edd --- /dev/null +++ b/main-github/latest-release-notes.md @@ -0,0 +1,7 @@ +Release Notes v1.2.1 + +- Maven POM updated to module-info.java in source artifact. +- Maven POM updated to fix/remove maven-javadoc-plugin not creating package-list. +- Maven POM updated for known issue with maven-surefire-plugin; exceptions occurring when module-info.java file is in the path and/or reuseForks is false. +- Updated archived artifact entries in production jar file (including fields in manifest file). +- Updated read me with correct Maven execution for creating/installing artifacts to local repository. \ No newline at end of file diff --git a/pom.xml b/pom.xml index ea37471..dd66866 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ app.zoftwhere.mutable mutable-library - 1.2.0 + 1.2.1 @@ -90,6 +90,9 @@ default-compile none + + ${maven.compiler.test-jdk} + main-compile @@ -97,6 +100,16 @@ compile + + ${maven.compiler.test-jdk} + + + + main-compile-jdk8 + none + + compile + ${maven.compiler.main-jdk} ${maven.compiler.main-jdk} @@ -118,13 +131,11 @@ - ${maven.compiler.test-jdk} - ${maven.compiler.test-jdk} + true + true -Xlint:all,-processing,-cast,-serial,-try - true - true @@ -150,7 +161,7 @@ test-resources - process-resources + process-test-resources testResources @@ -166,6 +177,10 @@ maven-surefire-plugin ${maven-surefire-plugin.version} + + 0 + false + false false @@ -200,7 +215,7 @@ test-jar - package + none test-jar @@ -212,6 +227,7 @@ + false false @@ -219,6 +235,12 @@ + ${project.artifactId} + ${project.groupId} + ${project.version} + ${project.artifactId} + ${project.groupId} + ${project.version} @@ -228,6 +250,35 @@ org.apache.maven.plugins maven-javadoc-plugin ${maven-javadoc-plugin.version} + + + main-javadoc + package + + jar + + + true + + module-info.java + + + + + test-javadoc + none + + test-jar + + + false + + + + + true + true + @@ -235,13 +286,6 @@ maven-source-plugin ${maven-source-plugin.version} - - none - - - default-source - none - main-source package @@ -254,7 +298,7 @@ test-source - package + none test-jar @@ -264,7 +308,6 @@ - true @@ -272,6 +315,25 @@ org.apache.maven.plugins maven-install-plugin ${maven-install-plugin.version} + + + main-install + none + + install-file + + + ${project.basedir}/pom.xml + ${project.groupId} + ${project.artifactId} + ${project.version} + ${project.build.directory}/${project.build.finalName}.jar + jar + ${project.build.directory}/${project.build.finalName}-sources.jar + ${project.build.directory}/${project.build.finalName}-javadoc.jar + + + @@ -280,13 +342,33 @@ ${maven-deploy-plugin.version} + + org.codehaus.mojo + build-helper-maven-plugin + 3.0.0 + + + main-jpms + prepare-package + + add-source + + + + ${project.basedir}/main-jpms + + + + + + org.moditect moditect-maven-plugin 1.0.0.Beta2 - add-module-info + main-jpms package add-module-info @@ -302,5 +384,4 @@ - \ No newline at end of file diff --git a/readme.md b/readme.md index 085d66f..cc6afa9 100644 --- a/readme.md +++ b/readme.md @@ -12,9 +12,15 @@ The ZoftWhere Mutable Library provides mutable classes for scopes where final ar ## Compiling and Installing the Library -The source code can be compiled with Java language version 8. It has been tested with Oracle JDK8, JDK11 and JDK12. +The source code can be compiled with Java language version 8. It has been tested with Oracle JDK8, JDK11 and JDK12. The test sources are compiled against JDK 11. -The project is Maven based, so executing the ```mvn install``` should install the library to the local repository. It has been tested with Apache Maven v3.6.1 +The project is Maven based, so executing the ```mvn install``` should install the library to the local repository (Requires at least JDK11). It has been tested with Apache Maven v3.6.1. + +If the project needs to be installed against JDK8, it can be accomplished by calling the following Maven command: + +``` shell script +mvn clean compiler:compile@main-compile-jdk8 jar:jar@main-jar build-helper:add-source@main-jpms source:jar@main-sources javadoc:jar@main-javadoc moditect:add-module-info@main-jpms install:install-file@main-install +``` ## Examples