From c6b9324c88e8a2d83d1e9a141ac558efb8896c57 Mon Sep 17 00:00:00 2001 From: lucio Date: Wed, 2 Oct 2024 09:29:07 +0200 Subject: [PATCH] moved to jakarta --- .classpath | 4 +-- pom.xml | 26 ++++++++++++------- .../org/gcube/common/clients/LegacyQuery.java | 8 +++--- .../java/org/gcube/common/clients/Plugin.java | 4 +-- .../common/clients/ProxyBuilderImpl.java | 6 ++--- .../java/org/gcube/common/clients/Utils.java | 4 +-- 6 files changed, 30 insertions(+), 22 deletions(-) diff --git a/.classpath b/.classpath index 635aca3..93923f7 100644 --- a/.classpath +++ b/.classpath @@ -6,16 +6,16 @@ - + - + diff --git a/pom.xml b/pom.xml index 7d1a48b..0ee8fbf 100644 --- a/pom.xml +++ b/pom.xml @@ -1,4 +1,6 @@ - + 4.0.0 org.gcube.tools @@ -7,10 +9,12 @@ org.gcube.core common-generic-clients - 2.0.0 + 2.0.0-SNAPSHOT - scm:git:https://code-repo.d4science.org/gCubeSystem/${project.artifactId}.git - scm:git:https://code-repo.d4science.org/gCubeSystem/${project.artifactId}.git + + scm:git:https://code-repo.d4science.org/gCubeSystem/${project.artifactId}.git + + scm:git:https://code-repo.d4science.org/gCubeSystem/${project.artifactId}.git https://code-repo.d4science.org/gCubeSystem/${project.artifactId} @@ -18,7 +22,7 @@ org.gcube.distribution gcube-bom - 3.0.1-SNAPSHOT + 4.0.0-SNAPSHOT pom import @@ -46,10 +50,14 @@ slf4j-api - com.sun.xml.ws - rt - 2.3.3 + jakarta.xml.bind + jakarta.xml.bind-api + + org.glassfish.jaxb + jaxb-runtime + + junit junit @@ -63,5 +71,5 @@ test - + diff --git a/src/main/java/org/gcube/common/clients/LegacyQuery.java b/src/main/java/org/gcube/common/clients/LegacyQuery.java index 7574ad6..d1041c1 100644 --- a/src/main/java/org/gcube/common/clients/LegacyQuery.java +++ b/src/main/java/org/gcube/common/clients/LegacyQuery.java @@ -1,14 +1,11 @@ package org.gcube.common.clients; -import static java.lang.String.*; +import static java.lang.String.format; import java.net.URI; import java.util.ArrayList; import java.util.List; -import javax.xml.ws.EndpointReference; -import javax.xml.ws.wsaddressing.W3CEndpointReferenceBuilder; - import org.gcube.common.clients.exceptions.DiscoveryException; import org.gcube.common.clients.queries.Query; import org.gcube.common.resources.gcore.GCoreEndpoint; @@ -16,6 +13,9 @@ import org.gcube.resources.discovery.client.api.DiscoveryClient; import org.gcube.resources.discovery.client.queries.api.SimpleQuery; import org.gcube.resources.discovery.icclient.ICFactory; +import jakarta.xml.ws.EndpointReference; +import jakarta.xml.ws.wsaddressing.W3CEndpointReferenceBuilder; + /** * A query for service endpoints published as {@link GCoreEndpoint}s. * @author Fabio Simeoni diff --git a/src/main/java/org/gcube/common/clients/Plugin.java b/src/main/java/org/gcube/common/clients/Plugin.java index 2dd9a8f..eeeaac8 100644 --- a/src/main/java/org/gcube/common/clients/Plugin.java +++ b/src/main/java/org/gcube/common/clients/Plugin.java @@ -1,9 +1,9 @@ package org.gcube.common.clients; -import javax.xml.ws.EndpointReference; - import org.gcube.common.clients.delegates.ProxyPlugin; +import jakarta.xml.ws.EndpointReference; + /** * Plugs into the framework to provide information about target endpoints. * diff --git a/src/main/java/org/gcube/common/clients/ProxyBuilderImpl.java b/src/main/java/org/gcube/common/clients/ProxyBuilderImpl.java index e62644d..d41d585 100644 --- a/src/main/java/org/gcube/common/clients/ProxyBuilderImpl.java +++ b/src/main/java/org/gcube/common/clients/ProxyBuilderImpl.java @@ -1,13 +1,13 @@ package org.gcube.common.clients; -import javax.xml.ws.EndpointReference; -import javax.xml.ws.wsaddressing.W3CEndpointReference; - import org.gcube.common.clients.builders.AbstractStatelessBuilder; import org.gcube.common.clients.cache.EndpointCache; import org.gcube.common.clients.config.Property; import org.gcube.common.clients.queries.Query; +import jakarta.xml.ws.EndpointReference; +import jakarta.xml.ws.wsaddressing.W3CEndpointReference; + /** * Default implementation of {@link ProxyBuilder}. * diff --git a/src/main/java/org/gcube/common/clients/Utils.java b/src/main/java/org/gcube/common/clients/Utils.java index da8c959..8cb8865 100644 --- a/src/main/java/org/gcube/common/clients/Utils.java +++ b/src/main/java/org/gcube/common/clients/Utils.java @@ -1,10 +1,10 @@ package org.gcube.common.clients; -import javax.xml.ws.EndpointReference; - import org.gcube.common.clients.cache.DefaultEndpointCache; import org.gcube.common.clients.cache.EndpointCache; +import jakarta.xml.ws.EndpointReference; + /** * Library-wide utilities *