From 3fba5687f186d09352106c432d9620e91767d967 Mon Sep 17 00:00:00 2001 From: Werner Keil Date: Sat, 17 Feb 2024 20:46:40 +0100 Subject: [PATCH] Fixed dependencies --- common/pom.xml | 6 +++ .../uom/common/spi/CommonServiceProvider.java | 4 +- common/src/main/jdk9/module-info.java | 2 +- pom.xml | 14 ++++-- src/main/config/uom-systems p2.launch | 5 +- ucum/pom.xml | 5 ++ ucum/src/etc/jdk9/module-info.java | 50 ------------------- ucum/src/main/jdk9/module-info.java | 2 +- 8 files changed, 30 insertions(+), 58 deletions(-) delete mode 100644 ucum/src/etc/jdk9/module-info.java diff --git a/common/pom.xml b/common/pom.xml index b6f8f161..0ee6af54 100644 --- a/common/pom.xml +++ b/common/pom.xml @@ -62,6 +62,12 @@ provided + + jakarta.annotation + jakarta.annotation-api + compile + + org.junit.jupiter diff --git a/common/src/main/java/systems/uom/common/spi/CommonServiceProvider.java b/common/src/main/java/systems/uom/common/spi/CommonServiceProvider.java index c2d08e46..2ac54f59 100644 --- a/common/src/main/java/systems/uom/common/spi/CommonServiceProvider.java +++ b/common/src/main/java/systems/uom/common/spi/CommonServiceProvider.java @@ -30,7 +30,7 @@ package systems.uom.common.spi; import static systems.uom.common.spi.ServiceConstants.*; -import javax.annotation.Priority; +import jakarta.annotation.Priority; import jakarta.inject.Named; import javax.measure.spi.ServiceProvider; import javax.measure.spi.SystemOfUnitsService; @@ -40,7 +40,7 @@ * This class implements the {@link ServiceProvider} interface and hereby uses the JDK {@link java.util.ServiceLoader} to load the services required. * * @author Werner Keil - * @version 2.0 + * @version 2.1 */ @Named(NAME) @Priority(PRIO) diff --git a/common/src/main/jdk9/module-info.java b/common/src/main/jdk9/module-info.java index 559225ca..e10f1320 100644 --- a/common/src/main/jdk9/module-info.java +++ b/common/src/main/jdk9/module-info.java @@ -31,7 +31,7 @@ requires transitive java.measure; requires transitive si.uom.quantity; requires transitive tech.uom.lib.common; - requires transitive java.annotation; + requires transitive jakarta.annotation; requires transitive jakarta.inject; requires transitive systems.uom.quantity; requires tech.units.indriya; diff --git a/pom.xml b/pom.xml index 6587b636..41d276a7 100644 --- a/pom.xml +++ b/pom.xml @@ -9,6 +9,7 @@ uom-parent 2.2 + 2.2-SNAPSHOT pom Units of Measurement Systems Parent http://www.uom.systems @@ -32,9 +33,10 @@ 2.2 2.2 2.2 - 2.1 + 2.2-SNAPSHOT 2.2-SNAPSHOT 2.2-SNAPSHOT + 2.0.0 ${jdkVersion} ${jdkVersion} ${jdkVersion} @@ -214,6 +216,12 @@ ${si.version} + + jakarta.annotation + jakarta.annotation-api + ${jakarta.annotation.version} + compile + @@ -312,11 +320,12 @@ org.reficio p2-maven-plugin - 1.6.0 + 2.1.0 default-cli + @@ -349,5 +358,4 @@ - 2.2-SNAPSHOT \ No newline at end of file diff --git a/src/main/config/uom-systems p2.launch b/src/main/config/uom-systems p2.launch index 7f2dfa76..741075d9 100644 --- a/src/main/config/uom-systems p2.launch +++ b/src/main/config/uom-systems p2.launch @@ -1,5 +1,6 @@ + @@ -12,9 +13,11 @@ + + - + diff --git a/ucum/pom.xml b/ucum/pom.xml index 42bd3790..9fcdb507 100644 --- a/ucum/pom.xml +++ b/ucum/pom.xml @@ -91,6 +91,11 @@ jakarta.inject-api 2.0.1 + + jakarta.annotation + jakarta.annotation-api + compile + diff --git a/ucum/src/etc/jdk9/module-info.java b/ucum/src/etc/jdk9/module-info.java deleted file mode 100644 index 2cd66724..00000000 --- a/ucum/src/etc/jdk9/module-info.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Units of Measurement Systems - * Copyright (c) 2005-2019, Jean-Marie Dautelle, Werner Keil and others. - * - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * - * 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions - * and the following disclaimer in the documentation and/or other materials provided with the distribution. - * - * 3. Neither the name of JSR-385, Units of Measurement nor the names of their contributors may be used to - * endorse or promote products derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE - * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED - * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, - * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ -module systems.uom.ucum { - requires transitive java.measure; - requires transitive si.uom.quantity; - requires transitive si.uom.units; - requires transitive tech.units.indriya; - requires transitive java.annotation; - requires transitive systems.uom.quantity; - - exports systems.uom.ucum; - exports systems.uom.ucum.format; - exports systems.uom.ucum.spi; - - provides javax.measure.spi.ServiceProvider with - systems.uom.ucum.spi.UCUMServiceProvider; - - provides javax.measure.spi.FormatService with - systems.uom.ucum.spi.UCUMFormatService; - - provides javax.measure.spi.SystemOfUnitsService with - systems.uom.ucum.spi.UCUMSystemService; -} \ No newline at end of file diff --git a/ucum/src/main/jdk9/module-info.java b/ucum/src/main/jdk9/module-info.java index b921c4e5..23ada407 100644 --- a/ucum/src/main/jdk9/module-info.java +++ b/ucum/src/main/jdk9/module-info.java @@ -32,7 +32,7 @@ requires transitive si.uom.quantity; requires transitive si.uom.units; requires transitive tech.units.indriya; - requires transitive java.annotation; + requires transitive jakarta.annotation; requires transitive systems.uom.quantity; exports systems.uom.ucum;