From 7f7ad8870d124a88944a41d1b3e81bdd4aee4732 Mon Sep 17 00:00:00 2001 From: Julien Viet Date: Wed, 10 Jul 2024 08:42:06 +0200 Subject: [PATCH] Replace stack.version by project.version --- pom.xml | 3 +- .../MongoAuthenticationOptionsConverter.java | 71 ------------------- .../MongoAuthorizationOptionsConverter.java | 63 ---------------- 3 files changed, 1 insertion(+), 136 deletions(-) delete mode 100644 vertx-auth-mongo/src/main/generated/io/vertx/ext/auth/mongo/MongoAuthenticationOptionsConverter.java delete mode 100644 vertx-auth-mongo/src/main/generated/io/vertx/ext/auth/mongo/MongoAuthorizationOptionsConverter.java diff --git a/pom.xml b/pom.xml index de5a98dd..f7d0a7ec 100644 --- a/pom.xml +++ b/pom.xml @@ -35,7 +35,6 @@ Vert.x Auth - 5.0.0-SNAPSHOT true ${project.basedir}/src/main/resources/META-INF/MANIFEST.MF @@ -45,7 +44,7 @@ io.vertx vertx-dependencies - ${stack.version} + ${project.version} pom import diff --git a/vertx-auth-mongo/src/main/generated/io/vertx/ext/auth/mongo/MongoAuthenticationOptionsConverter.java b/vertx-auth-mongo/src/main/generated/io/vertx/ext/auth/mongo/MongoAuthenticationOptionsConverter.java deleted file mode 100644 index 9ed96cde..00000000 --- a/vertx-auth-mongo/src/main/generated/io/vertx/ext/auth/mongo/MongoAuthenticationOptionsConverter.java +++ /dev/null @@ -1,71 +0,0 @@ -package io.vertx.ext.auth.mongo; - -import io.vertx.core.json.JsonObject; -import io.vertx.core.json.JsonArray; -import java.time.Instant; -import java.time.format.DateTimeFormatter; -import java.util.Base64; - -/** - * Converter and mapper for {@link io.vertx.ext.auth.mongo.MongoAuthenticationOptions}. - * NOTE: This class has been automatically generated from the {@link io.vertx.ext.auth.mongo.MongoAuthenticationOptions} original class using Vert.x codegen. - */ -public class MongoAuthenticationOptionsConverter { - - private static final Base64.Decoder BASE64_DECODER = Base64.getUrlDecoder(); - private static final Base64.Encoder BASE64_ENCODER = Base64.getUrlEncoder().withoutPadding(); - - static void fromJson(Iterable> json, MongoAuthenticationOptions obj) { - for (java.util.Map.Entry member : json) { - switch (member.getKey()) { - case "collectionName": - if (member.getValue() instanceof String) { - obj.setCollectionName((String)member.getValue()); - } - break; - case "usernameField": - if (member.getValue() instanceof String) { - obj.setUsernameField((String)member.getValue()); - } - break; - case "passwordField": - if (member.getValue() instanceof String) { - obj.setPasswordField((String)member.getValue()); - } - break; - case "usernameCredentialField": - if (member.getValue() instanceof String) { - obj.setUsernameCredentialField((String)member.getValue()); - } - break; - case "passwordCredentialField": - if (member.getValue() instanceof String) { - obj.setPasswordCredentialField((String)member.getValue()); - } - break; - } - } - } - - static void toJson(MongoAuthenticationOptions obj, JsonObject json) { - toJson(obj, json.getMap()); - } - - static void toJson(MongoAuthenticationOptions obj, java.util.Map json) { - if (obj.getCollectionName() != null) { - json.put("collectionName", obj.getCollectionName()); - } - if (obj.getUsernameField() != null) { - json.put("usernameField", obj.getUsernameField()); - } - if (obj.getPasswordField() != null) { - json.put("passwordField", obj.getPasswordField()); - } - if (obj.getUsernameCredentialField() != null) { - json.put("usernameCredentialField", obj.getUsernameCredentialField()); - } - if (obj.getPasswordCredentialField() != null) { - json.put("passwordCredentialField", obj.getPasswordCredentialField()); - } - } -} diff --git a/vertx-auth-mongo/src/main/generated/io/vertx/ext/auth/mongo/MongoAuthorizationOptionsConverter.java b/vertx-auth-mongo/src/main/generated/io/vertx/ext/auth/mongo/MongoAuthorizationOptionsConverter.java deleted file mode 100644 index 36dc9aa7..00000000 --- a/vertx-auth-mongo/src/main/generated/io/vertx/ext/auth/mongo/MongoAuthorizationOptionsConverter.java +++ /dev/null @@ -1,63 +0,0 @@ -package io.vertx.ext.auth.mongo; - -import io.vertx.core.json.JsonObject; -import io.vertx.core.json.JsonArray; -import java.time.Instant; -import java.time.format.DateTimeFormatter; -import java.util.Base64; - -/** - * Converter and mapper for {@link io.vertx.ext.auth.mongo.MongoAuthorizationOptions}. - * NOTE: This class has been automatically generated from the {@link io.vertx.ext.auth.mongo.MongoAuthorizationOptions} original class using Vert.x codegen. - */ -public class MongoAuthorizationOptionsConverter { - - private static final Base64.Decoder BASE64_DECODER = Base64.getUrlDecoder(); - private static final Base64.Encoder BASE64_ENCODER = Base64.getUrlEncoder().withoutPadding(); - - static void fromJson(Iterable> json, MongoAuthorizationOptions obj) { - for (java.util.Map.Entry member : json) { - switch (member.getKey()) { - case "collectionName": - if (member.getValue() instanceof String) { - obj.setCollectionName((String)member.getValue()); - } - break; - case "usernameField": - if (member.getValue() instanceof String) { - obj.setUsernameField((String)member.getValue()); - } - break; - case "roleField": - if (member.getValue() instanceof String) { - obj.setRoleField((String)member.getValue()); - } - break; - case "permissionField": - if (member.getValue() instanceof String) { - obj.setPermissionField((String)member.getValue()); - } - break; - } - } - } - - static void toJson(MongoAuthorizationOptions obj, JsonObject json) { - toJson(obj, json.getMap()); - } - - static void toJson(MongoAuthorizationOptions obj, java.util.Map json) { - if (obj.getCollectionName() != null) { - json.put("collectionName", obj.getCollectionName()); - } - if (obj.getUsernameField() != null) { - json.put("usernameField", obj.getUsernameField()); - } - if (obj.getRoleField() != null) { - json.put("roleField", obj.getRoleField()); - } - if (obj.getPermissionField() != null) { - json.put("permissionField", obj.getPermissionField()); - } - } -}