Skip to content

Commit

Permalink
Update to latest vertx5-parent pom
Browse files Browse the repository at this point in the history
  • Loading branch information
vietj committed Oct 5, 2024
1 parent 55a2c75 commit d435c6e
Show file tree
Hide file tree
Showing 4 changed files with 176 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@

<parent>
<groupId>io.vertx</groupId>
<artifactId>vertx-ext-parent</artifactId>
<version>38</version>
<artifactId>vertx5-parent</artifactId>
<version>6</version>
</parent>

<artifactId>vertx-auth</artifactId>
Expand All @@ -36,6 +36,7 @@

<properties>
<doc.skip>true</doc.skip>
<vertx.javadoc.legacyMode>true</vertx.javadoc.legacyMode>
</properties>

<dependencyManagement>
Expand Down
39 changes: 39 additions & 0 deletions vertx-auth-mongo/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,43 @@
<scope>test</scope>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<executions>
<execution>
<id>default-compile</id>
<configuration>
<annotationProcessorPaths>
<annotationProcessorPath>
<groupId>io.vertx</groupId>
<artifactId>vertx-codegen</artifactId>
<classifier>processor</classifier>
</annotationProcessorPath>
<annotationProcessorPath>
<groupId>io.vertx</groupId>
<artifactId>vertx-docgen-processor</artifactId>
<classifier>processor</classifier>
</annotationProcessorPath>
</annotationProcessorPaths>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<executions>
<execution>
<id>package-docs</id>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>

</project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
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<java.util.Map.Entry<String, Object>> json, MongoAuthenticationOptions obj) {
for (java.util.Map.Entry<String, Object> 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<String, Object> 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());
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
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<java.util.Map.Entry<String, Object>> json, MongoAuthorizationOptions obj) {
for (java.util.Map.Entry<String, Object> 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<String, Object> 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());
}
}
}

0 comments on commit d435c6e

Please sign in to comment.