From de8215a35761271444c3968b89fc490d3f2c3a9c Mon Sep 17 00:00:00 2001 From: lucio Date: Tue, 12 Mar 2024 10:36:15 +0100 Subject: [PATCH] moved to jakarta --- .classpath | 22 ++++++++++++++++- .settings/org.eclipse.jdt.core.prefs | 6 ++--- CHANGELOG.md | 4 ++++ pom.xml | 24 ++++++++++++++----- .../common/authorization/client/Binder.java | 6 ++--- .../authorizationservice/cl/CallTest.java | 5 ++++ 6 files changed, 54 insertions(+), 13 deletions(-) diff --git a/.classpath b/.classpath index ca37101..df724b9 100644 --- a/.classpath +++ b/.classpath @@ -4,6 +4,7 @@ + @@ -11,10 +12,29 @@ - + + + + + + + + + + + + + + + + + + + + diff --git a/.settings/org.eclipse.jdt.core.prefs b/.settings/org.eclipse.jdt.core.prefs index 8b5c4dc..f545d06 100644 --- a/.settings/org.eclipse.jdt.core.prefs +++ b/.settings/org.eclipse.jdt.core.prefs @@ -1,9 +1,9 @@ eclipse.preferences.version=1 org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled org.eclipse.jdt.core.compiler.codegen.methodParameters=do not generate -org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 +org.eclipse.jdt.core.compiler.codegen.targetPlatform=11 org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve -org.eclipse.jdt.core.compiler.compliance=1.8 +org.eclipse.jdt.core.compiler.compliance=11 org.eclipse.jdt.core.compiler.debug.lineNumber=generate org.eclipse.jdt.core.compiler.debug.localVariable=generate org.eclipse.jdt.core.compiler.debug.sourceFile=generate @@ -13,4 +13,4 @@ org.eclipse.jdt.core.compiler.problem.enumIdentifier=error org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=ignore org.eclipse.jdt.core.compiler.release=disabled -org.eclipse.jdt.core.compiler.source=1.8 +org.eclipse.jdt.core.compiler.source=11 diff --git a/CHANGELOG.md b/CHANGELOG.md index 76df42d..c69b1bf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm # Changelog for legacy Authorization Client +## [v3.0.1-SNAPSHOT] - 2022-06-13 + +- moved to jakarta + ## [v3.0.0] - 2022-06-13 - First Release diff --git a/pom.xml b/pom.xml index 1b052d1..d7f0b6c 100644 --- a/pom.xml +++ b/pom.xml @@ -1,9 +1,10 @@ - 4.0.0 org.gcube.common authorization-client - 3.0.0 + 3.0.1-SNAPSHOT authorization service client library maven-parent @@ -15,19 +16,22 @@ org.gcube.distribution gcube-bom - 3.0.0 + 3.0.1-SNAPSHOT pom import - 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} - distro + 11 + 11 @@ -38,6 +42,14 @@ org.slf4j slf4j-api + + jakarta.xml.bind + jakarta.xml.bind-api + + + org.glassfish.jaxb + jaxb-runtime + junit junit diff --git a/src/main/java/org/gcube/common/authorization/client/Binder.java b/src/main/java/org/gcube/common/authorization/client/Binder.java index 6c4b1f8..bbb6dc6 100644 --- a/src/main/java/org/gcube/common/authorization/client/Binder.java +++ b/src/main/java/org/gcube/common/authorization/client/Binder.java @@ -1,9 +1,6 @@ package org.gcube.common.authorization.client; -import javax.xml.bind.JAXBContext; -import javax.xml.bind.JAXBException; - import org.gcube.common.authorization.library.AuthorizationEntry; import org.gcube.common.authorization.library.ExternalServiceList; import org.gcube.common.authorization.library.Policies; @@ -16,6 +13,9 @@ import org.gcube.common.authorization.library.utils.AuthorizationEntryList; import org.gcube.common.authorization.library.utils.ListMapper; import org.gcube.common.authorization.library.utils.MultiServiceTokenRequest; +import jakarta.xml.bind.JAXBContext; +import jakarta.xml.bind.JAXBException; + public class Binder { private static JAXBContext context; diff --git a/src/test/java/org/gcube/common/authorizationservice/cl/CallTest.java b/src/test/java/org/gcube/common/authorizationservice/cl/CallTest.java index 854cd3b..e30a2de 100644 --- a/src/test/java/org/gcube/common/authorizationservice/cl/CallTest.java +++ b/src/test/java/org/gcube/common/authorizationservice/cl/CallTest.java @@ -37,6 +37,11 @@ public class CallTest { public void createTestToken() throws Exception { System.out.println(requestTestToken("/pred4s")); } + + @Test + public void resoveTokenAndPrint() throws Exception{ + System.out.println(resolveToken("fa7ed90a-d9d6-4bfb-95c9-5e3d7b6cd23e-843339462")); + } private String requestTestToken(String context) throws Exception{ return authorizationService().generateUserToken(new UserInfo("lucio.lelii", new ArrayList()), context);