From 48d51535d8a69f27a203f43e7be188fab3061250 Mon Sep 17 00:00:00 2001 From: Tatu Saloranta Date: Mon, 4 Mar 2019 22:29:40 -0800 Subject: [PATCH 1/2] Add simple module-info for JDK9+, using Moditect --- .travis.yml | 1 + pom.xml | 37 +++++++++++++++++++++++++++++------ src/moditect/module-info.java | 18 +++++++++++++++++ 3 files changed, 50 insertions(+), 6 deletions(-) create mode 100644 src/moditect/module-info.java diff --git a/.travis.yml b/.travis.yml index 4d9572b82c..22ad3ba092 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,6 +2,7 @@ language: java # 08-Dec-2018, tatu: While it should be possible to run core streaming on Java 6, # build won't work with anything below Java 8 now - openjdk8 + - oraclejdk11 # Below this line is configuration for deploying to the Sonatype OSS repo # http://blog.xeiam.com/2013/05/configure-travis-ci-to-deploy-snapshots.html diff --git a/pom.xml b/pom.xml index e3491598b7..e11cbf40ac 100644 --- a/pom.xml +++ b/pom.xml @@ -23,15 +23,16 @@ - + 1.6 1.6 - - 2.5.3 + 1.6 + 1.6 + + 3.2.0 com.fasterxml.jackson.core;version=${project.version}, com.fasterxml.jackson.core.*;version=${project.version} @@ -95,6 +96,30 @@ com.fasterxml.jackson.core.*;version=${project.version} com.google.code.maven-replacer-plugin replacer + + + + org.moditect + moditect-maven-plugin + + + add-module-infos + package + + add-module-info + + + true + + src/moditect/module-info.java + + + + + diff --git a/src/moditect/module-info.java b/src/moditect/module-info.java new file mode 100644 index 0000000000..bb4ba72af1 --- /dev/null +++ b/src/moditect/module-info.java @@ -0,0 +1,18 @@ +module com.fasterxml.jackson.core { + // 04-Mar-2019, tatu: Ugh. Can not use wildcards, stupid ass JDK 9+ module system... + // So, for 2.x core need to make sure we manually include everything. + // Worse, there is only syntactic validation, not contents, so we can both miss + // AND add bogus packages. + exports com.fasterxml.jackson.core; + exports com.fasterxml.jackson.core.async; + exports com.fasterxml.jackson.core.base; + exports com.fasterxml.jackson.core.exc; + exports com.fasterxml.jackson.core.filter; + exports com.fasterxml.jackson.core.format; + exports com.fasterxml.jackson.core.io; + exports com.fasterxml.jackson.core.json; + exports com.fasterxml.jackson.core.json.async; + exports com.fasterxml.jackson.core.sym; + exports com.fasterxml.jackson.core.type; + exports com.fasterxml.jackson.core.util; +} From a4657426ec7361d315139d02213e6bed3de3f3ad Mon Sep 17 00:00:00 2001 From: Tatu Saloranta Date: Wed, 6 Mar 2019 19:41:42 -0800 Subject: [PATCH 2/2] ... --- src/moditect/module-info.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/moditect/module-info.java b/src/moditect/module-info.java index bb4ba72af1..527c2ef77f 100644 --- a/src/moditect/module-info.java +++ b/src/moditect/module-info.java @@ -3,6 +3,7 @@ // So, for 2.x core need to make sure we manually include everything. // Worse, there is only syntactic validation, not contents, so we can both miss // AND add bogus packages. + // However: at least syntax is verified; and this works with JKD8 exports com.fasterxml.jackson.core; exports com.fasterxml.jackson.core.async; exports com.fasterxml.jackson.core.base;