diff --git a/api/pom.xml b/api/pom.xml index a4c87e4..71e90f3 100644 --- a/api/pom.xml +++ b/api/pom.xml @@ -3,7 +3,7 @@ DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. - Copyright (c) 2011-2017 Oracle and/or its affiliates. All rights reserved. + Copyright (c) 2011-2018 Oracle and/or its affiliates. All rights reserved. The contents of this file are subject to the terms of either the GNU General Public License Version 2 only ("GPL") or the Common Development @@ -81,7 +81,7 @@ -Oracle and/or its affiliates. All Rights Reserved. Use is subject to diff --git a/api/src/main/java/javax/json/JsonArrayBuilder.java b/api/src/main/java/javax/json/JsonArrayBuilder.java index 8501543..8a06a11 100644 --- a/api/src/main/java/javax/json/JsonArrayBuilder.java +++ b/api/src/main/java/javax/json/JsonArrayBuilder.java @@ -1,7 +1,7 @@ /* * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. * - * Copyright (c) 2013-2017 Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2013-2018 Oracle and/or its affiliates. All rights reserved. * * The contents of this file are subject to the terms of either the GNU * General Public License Version 2 only ("GPL") or the Common Development @@ -94,7 +94,7 @@ * * * - *

This class does not allow null to be used as a + *

This class does not allow null to be used as a * value while building the JSON array * * @see JsonObjectBuilder diff --git a/api/src/main/java/javax/json/JsonException.java b/api/src/main/java/javax/json/JsonException.java index 14cc927..cade328 100644 --- a/api/src/main/java/javax/json/JsonException.java +++ b/api/src/main/java/javax/json/JsonException.java @@ -1,7 +1,7 @@ /* * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. * - * Copyright (c) 2011-2017 Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2011-2018 Oracle and/or its affiliates. All rights reserved. * * The contents of this file are subject to the terms of either the GNU * General Public License Version 2 only ("GPL") or the Common Development @@ -67,7 +67,7 @@ public JsonException(String message) { * @param message the detail message (which is saved for later retrieval * by the {@link #getMessage()} method). * @param cause the cause (which is saved for later retrieval by the - * {@link #getCause()} method). (A null value is + * {@link #getCause()} method). (A null value is * permitted, and indicates that the cause is nonexistent or * unknown.) */ diff --git a/api/src/main/java/javax/json/JsonObjectBuilder.java b/api/src/main/java/javax/json/JsonObjectBuilder.java index 30198a7..d076c96 100644 --- a/api/src/main/java/javax/json/JsonObjectBuilder.java +++ b/api/src/main/java/javax/json/JsonObjectBuilder.java @@ -1,7 +1,7 @@ /* * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. * - * Copyright (c) 2013-2017 Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2013-2018 Oracle and/or its affiliates. All rights reserved. * * The contents of this file are subject to the terms of either the GNU * General Public License Version 2 only ("GPL") or the Common Development @@ -110,7 +110,7 @@ * * * - *

This class does not allow null to be used as a name or + *

This class does not allow null to be used as a name or * value while building the JSON object * * @see JsonArrayBuilder diff --git a/api/src/main/java/javax/json/stream/JsonGenerationException.java b/api/src/main/java/javax/json/stream/JsonGenerationException.java index 9fbc2b0..a34a3ad 100644 --- a/api/src/main/java/javax/json/stream/JsonGenerationException.java +++ b/api/src/main/java/javax/json/stream/JsonGenerationException.java @@ -1,7 +1,7 @@ /* * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. * - * Copyright (c) 2012-2017 Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2012-2018 Oracle and/or its affiliates. All rights reserved. * * The contents of this file are subject to the terms of either the GNU * General Public License Version 2 only ("GPL") or the Common Development @@ -69,7 +69,7 @@ public JsonGenerationException(String message) { * @param message the detail message (which is saved for later retrieval * by the {@link #getMessage()} method). * @param cause the cause (which is saved for later retrieval by the - * {@link #getCause()} method). (A null value is + * {@link #getCause()} method). (A null value is * permitted, and indicates that the cause is nonexistent or * unknown.) */ diff --git a/api/src/main/java/javax/json/stream/JsonParsingException.java b/api/src/main/java/javax/json/stream/JsonParsingException.java index d8b99e6..6d3fad6 100644 --- a/api/src/main/java/javax/json/stream/JsonParsingException.java +++ b/api/src/main/java/javax/json/stream/JsonParsingException.java @@ -1,7 +1,7 @@ /* * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. * - * Copyright (c) 2012-2017 Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2012-2018 Oracle and/or its affiliates. All rights reserved. * * The contents of this file are subject to the terms of either the GNU * General Public License Version 2 only ("GPL") or the Common Development @@ -73,7 +73,7 @@ public JsonParsingException(String message, JsonLocation location) { * @param message the detail message (which is saved for later retrieval * by the {@link #getMessage()} method). * @param cause the cause (which is saved for later retrieval by the - * {@link #getCause()} method). (A null value is + * {@link #getCause()} method). (A null value is * permitted, and indicates that the cause is nonexistent or * unknown.) * @param location the location of the incorrect JSON diff --git a/bundles/ri/pom.xml b/bundles/ri/pom.xml index ac3825a..ffcf243 100755 --- a/bundles/ri/pom.xml +++ b/bundles/ri/pom.xml @@ -3,7 +3,7 @@ DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. - Copyright (c) 2012-2017 Oracle and/or its affiliates. All rights reserved. + Copyright (c) 2012-2018 Oracle and/or its affiliates. All rights reserved. The contents of this file are subject to the terms of either the GNU General Public License Version 2 only ("GPL") or the Common Development @@ -50,7 +50,7 @@ json-ri-bundle - RI bundle + RI Distribution zip bundle pom @@ -62,50 +62,85 @@ org.glassfish javax.json + + org.glassfish + javax.json + module + + + org.glassfish + jsonp-jaxrs + - - - - org.apache.maven.plugins - maven-dependency-plugin - - - copy - generate-sources - - copy-dependencies - - - false - ${assembly.directory} - - - - - - maven-assembly-plugin - - javax.json-ri-${impl_version} - - src/main/assembly/archive.xml - - false - - - - make-assembly - package - - single - - - - - - - - - ${project.build.directory}/assembly - + + + + default-setup + + (,9) + true + + + + + maven-assembly-plugin + + + make-assembly-jdk8 + package + + single + + + javax.json-ri-jdk8-${impl_version} + + src/main/assembly/archive-jdk8.xml + + false + + + + + + + + + jdk9-setup + + [9,) + + + + org.glassfish + javax.json + module + ${project.version} + + + + + + maven-assembly-plugin + + + make-assembly + package + + single + + + javax.json-ri-${impl_version} + + src/main/assembly/archive.xml + + false + + + + + + + + diff --git a/bundles/ri/src/main/assembly/archive-jdk8.xml b/bundles/ri/src/main/assembly/archive-jdk8.xml new file mode 100644 index 0000000..9f9112f --- /dev/null +++ b/bundles/ri/src/main/assembly/archive-jdk8.xml @@ -0,0 +1,85 @@ + + + + dist + + zip + + + + src/main/resources/README.txt + + true + + + src/main/resources/LICENSE.txt + + + + + + false + api + + javax.json:javax.json-api:* + + + + false + standalone + + org.glassfish:javax.json + + + org.glassfish:javax.json:jar:module:* + + + + false + jaxrs + + org.glassfish:jsonp-jaxrs* + + + + diff --git a/bundles/ri/src/main/assembly/archive.xml b/bundles/ri/src/main/assembly/archive.xml index 83ba35e..e66fd4f 100755 --- a/bundles/ri/src/main/assembly/archive.xml +++ b/bundles/ri/src/main/assembly/archive.xml @@ -2,7 +2,7 @@ DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. - Copyright (c) 2013-2017 Oracle and/or its affiliates. All rights reserved. + Copyright (c) 2013-2018 Oracle and/or its affiliates. All rights reserved. The contents of this file are subject to the terms of either the GNU General Public License Version 2 only ("GPL") or the Common Development @@ -45,17 +45,42 @@ zip - - - src/main/resources + + + src/main/resources/README.txt - - - target/assembly + true + + + src/main/resources/LICENSE.txt + + + + + + false + mods + + javax.json:javax.json-api:* + org.glassfish:javax.json:jar:module:* + + + + false + standalone + + org.glassfish:javax.json + + + org.glassfish:javax.json:jar:module:* + + + + false + jaxrs - *.jar + org.glassfish:jsonp-jaxrs* - lib - - + + diff --git a/bundles/ri/src/main/resources/README.txt b/bundles/ri/src/main/resources/README.txt index c061627..99d63d0 100644 --- a/bundles/ri/src/main/resources/README.txt +++ b/bundles/ri/src/main/resources/README.txt @@ -1,22 +1,51 @@ -* javax.json-1.1.2.jar contains both "JSR 374 : Java API for JSON Processing 1.1" API and its default provider implementation. Keep it in classpath for both compiling and running your application. +* standalone/javax.json-${project.version}.jar contains both "JSR 374 : Java API for JSON Processing 1.1" API + and its default provider implementation. Keep it in classpath for both compiling and running your application. + Automatic module name is: 'java.json' + +For running on JPMS, following modules are provided: +* mods/javax.json-api-${project.version}.jar - 'java.json' module containing only API classes +* mods/javax.json-${project.version}-module.jar - 'org.glassfish.java.json' module containing implementation + +Integration with JAX-RS: Java API for RESTful Web Services (JAX-RS) is provided through +* jaxrs/jsonp-jaxrs-${project.version}.jar + + +IMPORTANT NOTE: module names are not yet final and may change in the future releases + * If you are running with maven, you can use the following maven coordinates: +for standalone reference implementation which includes APIs and implementation classes: + + org.glassfish + javax.json + ${project.version} + + for APIs: javax.json javax.json-api - 1.1.2 + ${project.version} -for reference implementation: - +for implementation only: org.glassfish javax.json - 1.1.2 + module + ${project.version} + + +for JAX-RS integration module: + + org.glassfish + jsonp-jaxrs + ${project.version} -* GlassFish 5.x already bundles latest JSON Processing implementation and JAX-RS integration module. If you deploy an application with GlassFish 5.x, your application (war/ear) doesn't have to bundle APIs nor the ri jar. + +* GlassFish 5.x already bundles latest JSON Processing implementation and JAX-RS integration module. +If you deploy an application with GlassFish 5.x, your application (war/ear) doesn't have to bundle APIs nor the ri jar. * Samples can be run from https://github.com/javaee/glassfish-samples diff --git a/demos/facebook/pom.xml b/demos/facebook/pom.xml index 17c4a36..f69411d 100644 --- a/demos/facebook/pom.xml +++ b/demos/facebook/pom.xml @@ -2,7 +2,7 @@ DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. - Copyright (c) 2012-2017 Oracle and/or its affiliates. All rights reserved. + Copyright (c) 2012-2018 Oracle and/or its affiliates. All rights reserved. The contents of this file are subject to the terms of either the GNU General Public License Version 2 only ("GPL") or the Common Development @@ -100,12 +100,18 @@ jdk9-setup - 9 + [9,) + + javax.json + javax.json-api + compile + org.glassfish javax.json + module compile diff --git a/demos/jsonpointer/pom.xml b/demos/jsonpointer/pom.xml index 2719468..6f40704 100644 --- a/demos/jsonpointer/pom.xml +++ b/demos/jsonpointer/pom.xml @@ -2,7 +2,7 @@ DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. - Copyright (c) 2013-2017 Oracle and/or its affiliates. All rights reserved. + Copyright (c) 2013-2018 Oracle and/or its affiliates. All rights reserved. The contents of this file are subject to the terms of either the GNU General Public License Version 2 only ("GPL") or the Common Development @@ -100,12 +100,18 @@ jdk9-setup - 9 + [9,) + + javax.json + javax.json-api + compile + org.glassfish javax.json + module compile diff --git a/demos/pom.xml b/demos/pom.xml index 68be010..4b4a52a 100644 --- a/demos/pom.xml +++ b/demos/pom.xml @@ -2,7 +2,7 @@ DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. - Copyright (c) 2012-2017 Oracle and/or its affiliates. All rights reserved. + Copyright (c) 2012-2018 Oracle and/or its affiliates. All rights reserved. The contents of this file are subject to the terms of either the GNU General Public License Version 2 only ("GPL") or the Common Development @@ -84,7 +84,7 @@ jdk9-all - 9 + [9,) jaxrs diff --git a/demos/twitter/pom.xml b/demos/twitter/pom.xml index c2331b6..764670f 100644 --- a/demos/twitter/pom.xml +++ b/demos/twitter/pom.xml @@ -2,7 +2,7 @@ DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. - Copyright (c) 2012-2017 Oracle and/or its affiliates. All rights reserved. + Copyright (c) 2012-2018 Oracle and/or its affiliates. All rights reserved. The contents of this file are subject to the terms of either the GNU General Public License Version 2 only ("GPL") or the Common Development @@ -88,12 +88,18 @@ jdk9-setup - 9 + [9,) + + javax.json + javax.json-api + compile + org.glassfish javax.json + module compile diff --git a/gf/pom.xml b/gf/pom.xml index af1c117..d831c85 100644 --- a/gf/pom.xml +++ b/gf/pom.xml @@ -2,7 +2,7 @@ DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. - Copyright (c) 2012-2017 Oracle and/or its affiliates. All rights reserved. + Copyright (c) 2012-2018 Oracle and/or its affiliates. All rights reserved. The contents of this file are subject to the terms of either the GNU General Public License Version 2 only ("GPL") or the Common Development @@ -77,7 +77,7 @@ customprovider - customprovider - defaultprovider + customprovider + defaultprovider diff --git a/impl/pom.xml b/impl/pom.xml index fe47a12..2b69407 100644 --- a/impl/pom.xml +++ b/impl/pom.xml @@ -3,7 +3,7 @@ DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. - Copyright (c) 2011-2017 Oracle and/or its affiliates. All rights reserved. + Copyright (c) 2011-2018 Oracle and/or its affiliates. All rights reserved. The contents of this file are subject to the terms of either the GNU General Public License Version 2 only ("GPL") or the Common Development @@ -61,7 +61,7 @@ org.glassfish.json - org.glassfish.json.api + javax.json.*,org.glassfish.json.api @@ -91,9 +91,81 @@ + + org.apache.maven.plugins + maven-source-plugin + + true + + + + org.apache.maven.plugins + maven-resources-plugin + + + sources-as-resources + package + + copy-resources + + + + + src/main/java + + + ${project.build.directory}/sources + + + + + + org.apache.maven.plugins + maven-dependency-plugin + + + unpack-client-sources + package + + unpack + + + + + javax.json + javax.json-api + ${spec_impl_version} + sources + false + ${project.build.directory}/sources + + + + + + + + org.apache.maven.plugins + maven-jar-plugin + + + attach-source-jar + + jar + + + sources + ${project.build.directory}/sources + + + + org.apache.maven.plugins maven-javadoc-plugin + + true + attach-javadocs @@ -113,17 +185,27 @@ org.apache.felix maven-bundle-plugin true - - - ${spec.bundle.version} - ${spec.bundle.symbolic-name} - ${spec.extension.name} - ${spec.implementation.version} - ${spec.specification.version} - ${packages.export} - ${packages.private} - - + + + default-bundle + + bundle + + + + ${spec.bundle.version} + ${spec.bundle.symbolic-name} + ${spec.extension.name} + ${spec.implementation.version} + ${spec.specification.version} + ${packages.export} + ${packages.private} + java.json + <_donotcopy>.*services.* + + + + @@ -131,6 +213,7 @@ javax.json javax.json-api + true @@ -138,36 +221,37 @@ jdk9-setup - 9 + [9,) - - org.apache.maven.plugins - maven-javadoc-plugin - - - - --add-modules - java.json - --module-path - ${project.build.directory}/../../api/target/javax.json-api-${project.version}.jar - - - org.apache.felix maven-bundle-plugin - - - {maven-resources},target/classes/module-info.class - - + + + main-artifact-module + + bundle + + + module + + ${spec.bundle.version} + ${spec.bundle.symbolic-name}.module + ${spec.extension.name} + ${spec.implementation.version} + ${spec.specification.version} + org.glassfish.json.api + ${packages.private} + {maven-resources},target/classes/module-info.class + + + + - + \ No newline at end of file diff --git a/jaxrs-1x/pom.xml b/jaxrs-1x/pom.xml index a86a23a..7a9ef69 100644 --- a/jaxrs-1x/pom.xml +++ b/jaxrs-1x/pom.xml @@ -3,7 +3,7 @@ DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. - Copyright (c) 2013-2017 Oracle and/or its affiliates. All rights reserved. + Copyright (c) 2013-2018 Oracle and/or its affiliates. All rights reserved. The contents of this file are subject to the terms of either the GNU General Public License Version 2 only ("GPL") or the Common Development @@ -108,7 +108,7 @@ jdk9-setup - 9 + [9,) diff --git a/jaxrs/pom.xml b/jaxrs/pom.xml index db1e385..34629de 100644 --- a/jaxrs/pom.xml +++ b/jaxrs/pom.xml @@ -3,7 +3,7 @@ DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. - Copyright (c) 2013-2017 Oracle and/or its affiliates. All rights reserved. + Copyright (c) 2013-2018 Oracle and/or its affiliates. All rights reserved. The contents of this file are subject to the terms of either the GNU General Public License Version 2 only ("GPL") or the Common Development @@ -96,6 +96,7 @@ javax.ws.rs javax.ws.rs-api + provided javax.json @@ -108,7 +109,7 @@ jdk9-setup - 9 + [9,) diff --git a/pom.xml b/pom.xml index e6b6f84..856f40d 100644 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. - Copyright (c) 2011-2017 Oracle and/or its affiliates. All rights reserved. + Copyright (c) 2011-2018 Oracle and/or its affiliates. All rights reserved. The contents of this file are subject to the terms of either the GNU General Public License Version 2 only ("GPL") or the Common Development @@ -100,8 +100,8 @@ org.glassfish 1.1 1.2 - 1.1.3 - 1.1.3 + 1.1.4 + 1.1.4 1.2 false @@ -162,7 +162,12 @@ org.apache.felix maven-bundle-plugin - 3.3.0 + 3.5.0 + + + <_noee>true + + org.codehaus.mojo @@ -172,7 +177,7 @@ org.apache.maven.plugins maven-javadoc-plugin - 3.0.0-M1 + 3.0.1 org.apache.maven.plugins @@ -194,32 +199,32 @@ org.apache.maven.plugins maven-war-plugin - 3.1.0 + 3.2.1 org.apache.maven.plugins maven-jar-plugin - 3.0.2 + 3.1.0 org.apache.maven.plugins maven-dependency-plugin - 3.0.2 + 3.1.0 org.apache.maven.plugins maven-resources-plugin - 3.0.2 + 3.1.0 org.codehaus.mojo wagon-maven-plugin - 1.0 + 2.0.0 org.apache.maven.plugins maven-clean-plugin - 3.0.0 + 3.1.0 org.apache.maven.plugins @@ -234,12 +239,12 @@ org.apache.maven.plugins maven-site-plugin - 3.6 + 3.7.1 org.apache.maven.plugins maven-surefire-plugin - 2.20 + 2.22.0 org.codehaus.mojo @@ -287,12 +292,18 @@ org.glassfish - java.json + javax.json ${project.version} org.glassfish javax.json + module + ${project.version} + + + org.glassfish + jsonp-jaxrs ${project.version} @@ -316,13 +327,14 @@ api impl jaxrs + bundles jdk9-setup - 9 + [9,) @@ -355,15 +367,6 @@ - - org.apache.felix - maven-bundle-plugin - - - <_failok>true - - - @@ -391,7 +394,7 @@ jdk9-all - 9 + [9,) api @@ -461,7 +464,7 @@ org.codehaus.mojo findbugs-maven-plugin - 2.5.3 + 3.0.5