Skip to content

Commit

Permalink
feat: add reactor module (#11)
Browse files Browse the repository at this point in the history
Signed-off-by: ZhangJian He <shoothzj@gmail.com>
  • Loading branch information
ZhangJian He authored Aug 30, 2024
1 parent 2adbe6a commit a5851bb
Show file tree
Hide file tree
Showing 9 changed files with 137 additions and 9 deletions.
14 changes: 14 additions & 0 deletions bookkeeper-admin-api/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>io.github.protocol-laboratory</groupId>
<artifactId>bookkeeper-admin-parent</artifactId>
<version>0.0.2</version>
</parent>

<artifactId>bookkeeper-admin-api</artifactId>

</project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
package io.github.protocol.bookkeeper.admin.api;

import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;

@Setter
@NoArgsConstructor
@AllArgsConstructor
public class TlsConfig {
public String keyStorePath;

@ToString.Exclude
public char[] keyStorePassword;

public String trustStorePath;

@ToString.Exclude
public char[] trustStorePassword;

public boolean verifyDisabled;

public boolean hostnameVerifyDisabled;

public String[] versions;

public String[] cipherSuites;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
package io.github.protocol.bookkeeper.admin.api;
10 changes: 9 additions & 1 deletion bookkeeper-admin-jdk/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,17 @@
<parent>
<groupId>io.github.protocol-laboratory</groupId>
<artifactId>bookkeeper-admin-parent</artifactId>
<version>0.0.1</version>
<version>0.0.2</version>
</parent>

<artifactId>bookkeeper-admin-jdk</artifactId>

<dependencies>
<dependency>
<groupId>io.github.protocol-laboratory</groupId>
<artifactId>bookkeeper-admin-api</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>

</project>
27 changes: 27 additions & 0 deletions bookkeeper-admin-reactor/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>io.github.protocol-laboratory</groupId>
<artifactId>bookkeeper-admin-parent</artifactId>
<version>0.0.2</version>
</parent>

<artifactId>bookkeeper-admin-reactor</artifactId>

<dependencies>
<dependency>
<groupId>io.github.protocol-laboratory</groupId>
<artifactId>bookkeeper-admin-api</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>io.projectreactor.netty</groupId>
<artifactId>reactor-netty-http</artifactId>
<version>${reactor-netty.version}</version>
</dependency>
</dependencies>

</project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package io.github.protocol.bookkeeper.admin.reactor;

public class InnerReactorClient {
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
package io.github.protocol.bookkeeper.admin.reactor;
8 changes: 8 additions & 0 deletions ci/spotbugs/exclude.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,12 @@
<Bug pattern="EI_EXPOSE_REP2"/>
</Match>

<Match>
<Bug pattern="PA_PUBLIC_PRIMITIVE_ATTRIBUTE"/>
</Match>

<Match>
<Bug pattern="URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD"/>
</Match>

</FindBugsFilter>
52 changes: 44 additions & 8 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,13 @@

<groupId>io.github.protocol-laboratory</groupId>
<artifactId>bookkeeper-admin-parent</artifactId>
<version>0.0.1</version>
<version>0.0.2</version>
<packaging>pom</packaging>

<modules>
<module>bookkeeper-admin-api</module>
<module>bookkeeper-admin-jdk</module>
<module>bookkeeper-admin-reactor</module>
</modules>

<properties>
Expand All @@ -25,21 +27,36 @@
<log4j.version>2.20.0</log4j.version>
<lombok.version>1.18.34</lombok.version>
<puppycrawl.version>10.18.0</puppycrawl.version>
<reactor-netty.version>1.1.22</reactor-netty.version>
<!-- plugin -->
<lombok-maven-plugin.version>1.18.20.0</lombok-maven-plugin.version>
<maven-compiler-plugin.version>3.13.0</maven-compiler-plugin.version>
<maven-checkstyle-plugin.version>3.4.0</maven-checkstyle-plugin.version>
<maven-gpg-plugin.version>3.2.4</maven-gpg-plugin.version>
<maven-javadoc-plugin.version>3.8.0</maven-javadoc-plugin.version>
<maven-checkstyle-plugin.version>3.5.0</maven-checkstyle-plugin.version>
<maven-enforcer-plugin.version>3.5.0</maven-enforcer-plugin.version>
<maven-enforce-plugin-maven.version>3.8.0</maven-enforce-plugin-maven.version>
<maven-gpg-plugin.version>3.2.5</maven-gpg-plugin.version>
<maven-javadoc-plugin.version>3.10.0</maven-javadoc-plugin.version>
<maven-release-plugin.version>3.1.1</maven-release-plugin.version>
<maven-scm-provider-gitexe.version>2.1.0</maven-scm-provider-gitexe.version>
<maven-source-plugin.version>3.3.1</maven-source-plugin.version>
<maven-surefire-plugin.version>3.3.1</maven-surefire-plugin.version>
<spotbugs-maven-plugin.version>4.7.2.0</spotbugs-maven-plugin.version>
<spotless-maven-plugi.version>2.43.0</spotless-maven-plugi.version>
<maven-surefire-plugin.version>3.5.0</maven-surefire-plugin.version>
<nexus-staging-maven-plugin.version>1.7.0</nexus-staging-maven-plugin.version>
<spotbugs-maven-plugin.version>4.8.6.2</spotbugs-maven-plugin.version>
<spotless-maven-plugi.version>2.43.0</spotless-maven-plugi.version>
</properties>

<dependencyManagement>
<dependencies>
<dependency>
<groupId>com.fasterxml.jackson</groupId>
<artifactId>jackson-bom</artifactId>
<version>${jackson.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>

<dependencies>
<dependency>
<groupId>org.projectlombok</groupId>
Expand All @@ -49,7 +66,6 @@
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>${jackson.version}</version>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
Expand All @@ -74,6 +90,26 @@
<build>
<sourceDirectory>${src.dir}</sourceDirectory>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<version>${maven-enforcer-plugin.version}</version>
<executions>
<execution>
<id>enforce-versions</id>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<rules>
<requireMavenVersion>
<version>${maven-enforce-plugin-maven.version}</version>
</requireMavenVersion>
</rules>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
Expand Down

0 comments on commit a5851bb

Please sign in to comment.