Skip to content

Commit

Permalink
Fixed dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
keilw committed Feb 17, 2024
1 parent 282205b commit 3fba568
Show file tree
Hide file tree
Showing 8 changed files with 30 additions and 58 deletions.
6 changes: 6 additions & 0 deletions common/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,12 @@
<scope>provided</scope>
</dependency>

<dependency>
<groupId>jakarta.annotation</groupId>
<artifactId>jakarta.annotation-api</artifactId>
<scope>compile</scope>
</dependency>

<!-- Testing -->
<dependency>
<groupId>org.junit.jupiter</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion common/src/main/jdk9/module-info.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
14 changes: 11 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
<artifactId>uom-parent</artifactId>
<version>2.2</version>
</parent>
<version>2.2-SNAPSHOT</version>
<packaging>pom</packaging>
<name>Units of Measurement Systems Parent</name>
<url>http://www.uom.systems</url>
Expand All @@ -32,9 +33,10 @@
<lib.version>2.2</lib.version>
<jsr.version>2.2</jsr.version>
<ri.version>2.2</ri.version>
<si.version>2.1</si.version>
<si.version>2.2-SNAPSHOT</si.version>
<quantity.version>2.2-SNAPSHOT</quantity.version><!-- only need to change when new quantities added -->
<systems.version>2.2-SNAPSHOT</systems.version>
<jakarta.annotation.version>2.0.0</jakarta.annotation.version>
<project.build.javaVersion>${jdkVersion}</project.build.javaVersion>
<maven.compile.targetLevel>${jdkVersion}</maven.compile.targetLevel>
<maven.compile.sourceLevel>${jdkVersion}</maven.compile.sourceLevel>
Expand Down Expand Up @@ -214,6 +216,12 @@
<version>${si.version}</version>
</dependency>

<dependency>
<groupId>jakarta.annotation</groupId>
<artifactId>jakarta.annotation-api</artifactId>
<version>${jakarta.annotation.version}</version>
<scope>compile</scope>
</dependency>

<!-- OSGI support -->
<dependency>
Expand Down Expand Up @@ -312,11 +320,12 @@
<plugin>
<groupId>org.reficio</groupId>
<artifactId>p2-maven-plugin</artifactId>
<version>1.6.0</version>
<version>2.1.0</version>
<executions>
<execution>
<id>default-cli</id>
<configuration>
<label>Unit Systems</label>
<artifacts>
<!-- specify your depencies here -->
<artifact>
Expand Down Expand Up @@ -349,5 +358,4 @@
</build>
</profile>
</profiles>
<version>2.2-SNAPSHOT</version>
</project>
5 changes: 4 additions & 1 deletion src/main/config/uom-systems p2.launch
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<launchConfiguration type="org.eclipse.m2e.Maven2LaunchConfigurationType">
<intAttribute key="M2_COLORS" value="0"/>
<booleanAttribute key="M2_DEBUG_OUTPUT" value="false"/>
<stringAttribute key="M2_GOALS" value="clean p2:site"/>
<booleanAttribute key="M2_NON_RECURSIVE" value="false"/>
Expand All @@ -12,9 +13,11 @@
<booleanAttribute key="M2_UPDATE_SNAPSHOTS" value="true"/>
<stringAttribute key="M2_USER_SETTINGS" value=""/>
<booleanAttribute key="M2_WORKSPACE_RESOLUTION" value="false"/>
<booleanAttribute key="org.eclipse.debug.core.ATTR_FORCE_SYSTEM_CONSOLE_ENCODING" value="false"/>
<stringAttribute key="org.eclipse.debug.ui.ATTR_CONSOLE_ENCODING" value="UTF-8"/>
<booleanAttribute key="org.eclipse.jdt.launching.ATTR_ATTR_USE_ARGFILE" value="false"/>
<booleanAttribute key="org.eclipse.jdt.launching.ATTR_SHOW_CODEDETAILS_IN_EXCEPTION_MESSAGES" value="true"/>
<booleanAttribute key="org.eclipse.jdt.launching.ATTR_USE_CLASSPATH_ONLY_JAR" value="false"/>
<stringAttribute key="org.eclipse.jdt.launching.JRE_CONTAINER" value="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-9"/>
<stringAttribute key="org.eclipse.jdt.launching.JRE_CONTAINER" value="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-17/"/>
<stringAttribute key="org.eclipse.jdt.launching.WORKING_DIRECTORY" value="${project_loc:systems-parent}"/>
</launchConfiguration>
5 changes: 5 additions & 0 deletions ucum/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,11 @@
<artifactId>jakarta.inject-api</artifactId>
<version>2.0.1</version>
</dependency>
<dependency>
<groupId>jakarta.annotation</groupId>
<artifactId>jakarta.annotation-api</artifactId>
<scope>compile</scope>
</dependency>

<!-- Testing -->
<dependency>
Expand Down
50 changes: 0 additions & 50 deletions ucum/src/etc/jdk9/module-info.java

This file was deleted.

2 changes: 1 addition & 1 deletion ucum/src/main/jdk9/module-info.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 3fba568

Please sign in to comment.