Skip to content

Commit 9fd8ac3

Browse files
committed
[fix] Formatting code(mvn spotless:apply)
1 parent f45ee46 commit 9fd8ac3

File tree

64 files changed

+8497
-7885
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+8497
-7885
lines changed

pom.xml

Lines changed: 72 additions & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,26 @@
2121
<artifactId>apache</artifactId>
2222
<version>29</version>
2323
</parent>
24-
<version>1.0.0-SNAPSHOT</version>
25-
26-
<inceptionYear>2024</inceptionYear>
2724

2825
<artifactId>pulsar-java-contrib</artifactId>
26+
<version>1.0.0-SNAPSHOT</version>
2927
<packaging>pom</packaging>
3028
<name>Pulsar Java Contrib</name>
3129

30+
<modules>
31+
<module>pulsar-client-common-contrib</module>
32+
<module>pulsar-loadbalance-contrib</module>
33+
<module>pulsar-interceptor-contrib</module>
34+
<module>pulsar-connector-contrib</module>
35+
<module>pulsar-function-contrib</module>
36+
<module>pulsar-bookkeeper-contrib</module>
37+
<module>pulsar-transaction-contrib</module>
38+
<module>pulsar-metrics-contrib</module>
39+
<module>pulsar-auth-contrib</module>
40+
<module>pulsar-rpc-contrib</module>
41+
<module>pulsar-admin-mcp-contrib</module>
42+
</modules>
43+
3244
<properties>
3345
<lombok.version>1.18.32</lombok.version>
3446
<slf4j.version>2.0.13</slf4j.version>
@@ -52,20 +64,6 @@
5264
<mockito.version>5.12.0</mockito.version>
5365
</properties>
5466

55-
<modules>
56-
<module>pulsar-client-common-contrib</module>
57-
<module>pulsar-loadbalance-contrib</module>
58-
<module>pulsar-interceptor-contrib</module>
59-
<module>pulsar-connector-contrib</module>
60-
<module>pulsar-function-contrib</module>
61-
<module>pulsar-bookkeeper-contrib</module>
62-
<module>pulsar-transaction-contrib</module>
63-
<module>pulsar-metrics-contrib</module>
64-
<module>pulsar-auth-contrib</module>
65-
<module>pulsar-rpc-contrib</module>
66-
<module>pulsar-admin-mcp-contrib</module>
67-
</modules>
68-
6967
<dependencyManagement>
7068
<dependencies>
7169
<dependency>
@@ -102,6 +100,12 @@
102100
</dependencyManagement>
103101

104102
<dependencies>
103+
<dependency>
104+
<groupId>org.awaitility</groupId>
105+
<artifactId>awaitility</artifactId>
106+
<version>${awaitility.version}</version>
107+
<scope>test</scope>
108+
</dependency>
105109
<dependency>
106110
<groupId>org.projectlombok</groupId>
107111
<artifactId>lombok</artifactId>
@@ -122,34 +126,9 @@
122126
<version>${org.testing.version}</version>
123127
<scope>test</scope>
124128
</dependency>
125-
<dependency>
126-
<groupId>org.awaitility</groupId>
127-
<artifactId>awaitility</artifactId>
128-
<version>${awaitility.version}</version>
129-
<scope>test</scope>
130-
</dependency>
131129
</dependencies>
132130
<build>
133131
<plugins>
134-
<plugin>
135-
<groupId>org.apache.maven.plugins</groupId>
136-
<artifactId>maven-wrapper-plugin</artifactId>
137-
<version>${maven-wrapper-plugin.version}</version>
138-
</plugin>
139-
<plugin>
140-
<groupId>org.apache.maven.plugins</groupId>
141-
<artifactId>maven-compiler-plugin</artifactId>
142-
<version>${maven-compiler-plugin.version}</version>
143-
<configuration>
144-
<annotationProcessorPaths>
145-
<path>
146-
<groupId>org.projectlombok</groupId>
147-
<artifactId>lombok</artifactId>
148-
<version>${lombok.version}</version>
149-
</path>
150-
</annotationProcessorPaths>
151-
</configuration>
152-
</plugin>
153132
<!-- Spotless Plugin -->
154133
<plugin>
155134
<groupId>com.diffplug.spotless</groupId>
@@ -195,36 +174,6 @@
195174
</execution>
196175
</executions>
197176
</plugin>
198-
<!-- Checkstyle Plugin -->
199-
<plugin>
200-
<groupId>org.apache.maven.plugins</groupId>
201-
<artifactId>maven-checkstyle-plugin</artifactId>
202-
<version>${maven-checkstyle-plugin.version}</version>
203-
<dependencies>
204-
<dependency>
205-
<groupId>com.puppycrawl.tools</groupId>
206-
<artifactId>checkstyle</artifactId>
207-
<version>${puppycrawl.checkstyle.version}</version>
208-
</dependency>
209-
</dependencies>
210-
<configuration>
211-
<configLocation>./src/main/resources/checkstyle.xml</configLocation>
212-
<suppressionsLocation>./src/main/resources/suppressions.xml</suppressionsLocation>
213-
<includeTestSourceDirectory>true</includeTestSourceDirectory>
214-
<encoding>UTF-8</encoding>
215-
<excludes>**/*.proto</excludes>
216-
<!-- Example exclusion -->
217-
</configuration>
218-
<executions>
219-
<execution>
220-
<id>validate-checkstyle</id>
221-
<phase>validate</phase>
222-
<goals>
223-
<goal>check</goal>
224-
</goals>
225-
</execution>
226-
</executions>
227-
</plugin>
228177

229178
<plugin>
230179
<!-- Check that source files have appropriate license headers -->
@@ -267,6 +216,57 @@
267216
</execution>
268217
</executions>
269218
</plugin>
219+
<!-- Checkstyle Plugin -->
220+
<plugin>
221+
<groupId>org.apache.maven.plugins</groupId>
222+
<artifactId>maven-checkstyle-plugin</artifactId>
223+
<version>${maven-checkstyle-plugin.version}</version>
224+
<configuration>
225+
<configLocation>./src/main/resources/checkstyle.xml</configLocation>
226+
<suppressionsLocation>./src/main/resources/suppressions.xml</suppressionsLocation>
227+
<includeTestSourceDirectory>true</includeTestSourceDirectory>
228+
<encoding>UTF-8</encoding>
229+
<excludes>**/*.proto</excludes>
230+
<!-- Example exclusion -->
231+
</configuration>
232+
<dependencies>
233+
<dependency>
234+
<groupId>com.puppycrawl.tools</groupId>
235+
<artifactId>checkstyle</artifactId>
236+
<version>${puppycrawl.checkstyle.version}</version>
237+
</dependency>
238+
</dependencies>
239+
<executions>
240+
<execution>
241+
<id>validate-checkstyle</id>
242+
<goals>
243+
<goal>check</goal>
244+
</goals>
245+
<phase>validate</phase>
246+
</execution>
247+
</executions>
248+
</plugin>
249+
<plugin>
250+
<groupId>org.apache.maven.plugins</groupId>
251+
<artifactId>maven-compiler-plugin</artifactId>
252+
<version>${maven-compiler-plugin.version}</version>
253+
<configuration>
254+
<annotationProcessorPaths>
255+
<path>
256+
<groupId>org.projectlombok</groupId>
257+
<artifactId>lombok</artifactId>
258+
<version>${lombok.version}</version>
259+
</path>
260+
</annotationProcessorPaths>
261+
</configuration>
262+
</plugin>
263+
<plugin>
264+
<groupId>org.apache.maven.plugins</groupId>
265+
<artifactId>maven-wrapper-plugin</artifactId>
266+
<version>${maven-wrapper-plugin.version}</version>
267+
</plugin>
270268
</plugins>
271269
</build>
270+
271+
<inceptionYear>2024</inceptionYear>
272272
</project>

pulsar-admin-mcp-contrib/pom.xml

Lines changed: 54 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,7 @@
1414
limitations under the License.
1515
1616
-->
17-
<project xmlns="http://maven.apache.org/POM/4.0.0"
18-
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
19-
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
17+
<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">
2018
<modelVersion>4.0.0</modelVersion>
2119

2220
<parent>
@@ -58,19 +56,47 @@
5856
</dependencyManagement>
5957

6058
<dependencies>
59+
<dependency>
60+
<groupId>com.fasterxml.jackson.core</groupId>
61+
<artifactId>jackson-core</artifactId>
62+
<version>${jackson.version}</version>
63+
</dependency>
64+
<dependency>
65+
<groupId>com.fasterxml.jackson.core</groupId>
66+
<artifactId>jackson-databind</artifactId>
67+
<version>${jackson.version}</version>
68+
</dependency>
69+
<dependency>
70+
<groupId>io.modelcontextprotocol.sdk</groupId>
71+
<artifactId>mcp</artifactId>
72+
<version>0.12.0</version>
73+
</dependency>
74+
<dependency>
75+
<groupId>org.apache.commons</groupId>
76+
<artifactId>commons-lang3</artifactId>
77+
<version>3.18.0</version>
78+
</dependency>
79+
<dependency>
80+
<groupId>org.apache.pulsar</groupId>
81+
<artifactId>pulsar-client</artifactId>
82+
</dependency>
6183
<dependency>
6284
<groupId>org.apache.pulsar</groupId>
6385
<artifactId>pulsar-client-admin</artifactId>
6486
<scope>test</scope>
6587
</dependency>
88+
<dependency>
89+
<groupId>org.apache.pulsar</groupId>
90+
<artifactId>pulsar-client-admin</artifactId>
91+
</dependency>
6692
<dependency>
6793
<groupId>org.eclipse.jetty</groupId>
68-
<artifactId>jetty-server</artifactId>
94+
<artifactId>jetty-http</artifactId>
6995
<version>${jetty.version}</version>
7096
</dependency>
7197
<dependency>
7298
<groupId>org.eclipse.jetty</groupId>
73-
<artifactId>jetty-servlet</artifactId>
99+
<artifactId>jetty-io</artifactId>
74100
<version>${jetty.version}</version>
75101
</dependency>
76102
<dependency>
@@ -80,12 +106,12 @@
80106
</dependency>
81107
<dependency>
82108
<groupId>org.eclipse.jetty</groupId>
83-
<artifactId>jetty-webapp</artifactId>
109+
<artifactId>jetty-server</artifactId>
84110
<version>${jetty.version}</version>
85111
</dependency>
86112
<dependency>
87113
<groupId>org.eclipse.jetty</groupId>
88-
<artifactId>jetty-io</artifactId>
114+
<artifactId>jetty-servlet</artifactId>
89115
<version>${jetty.version}</version>
90116
</dependency>
91117
<dependency>
@@ -95,37 +121,9 @@
95121
</dependency>
96122
<dependency>
97123
<groupId>org.eclipse.jetty</groupId>
98-
<artifactId>jetty-http</artifactId>
124+
<artifactId>jetty-webapp</artifactId>
99125
<version>${jetty.version}</version>
100126
</dependency>
101-
<dependency>
102-
<groupId>com.fasterxml.jackson.core</groupId>
103-
<artifactId>jackson-core</artifactId>
104-
<version>${jackson.version}</version>
105-
</dependency>
106-
<dependency>
107-
<groupId>com.fasterxml.jackson.core</groupId>
108-
<artifactId>jackson-databind</artifactId>
109-
<version>${jackson.version}</version>
110-
</dependency>
111-
<dependency>
112-
<groupId>io.modelcontextprotocol.sdk</groupId>
113-
<artifactId>mcp</artifactId>
114-
<version>0.12.0</version>
115-
</dependency>
116-
<dependency>
117-
<groupId>org.apache.pulsar</groupId>
118-
<artifactId>pulsar-client</artifactId>
119-
</dependency>
120-
<dependency>
121-
<groupId>org.apache.pulsar</groupId>
122-
<artifactId>pulsar-client-admin</artifactId>
123-
</dependency>
124-
<dependency>
125-
<groupId>org.apache.commons</groupId>
126-
<artifactId>commons-lang3</artifactId>
127-
<version>3.18.0</version>
128-
</dependency>
129127
<dependency>
130128
<groupId>org.mockito</groupId>
131129
<artifactId>mockito-core</artifactId>
@@ -139,8 +137,7 @@
139137
</dependency>
140138
<dependency>
141139
<groupId>org.springframework.boot</groupId>
142-
<artifactId>spring-boot-starter-test</artifactId>
143-
<scope>test</scope>
140+
<artifactId>spring-boot-starter</artifactId>
144141
<exclusions>
145142
<exclusion>
146143
<groupId>org.springframework.boot</groupId>
@@ -150,33 +147,42 @@
150147
</dependency>
151148
<dependency>
152149
<groupId>org.springframework.boot</groupId>
153-
<artifactId>spring-boot-starter-validation</artifactId>
150+
<artifactId>spring-boot-starter-test</artifactId>
151+
<scope>test</scope>
154152
<exclusions>
155153
<exclusion>
156154
<groupId>org.springframework.boot</groupId>
157155
<artifactId>spring-boot-starter-logging</artifactId>
158156
</exclusion>
159157
</exclusions>
160158
</dependency>
161-
<dependency>
162-
<groupId>org.testcontainers</groupId>
163-
<artifactId>pulsar</artifactId>
164-
<scope>test</scope>
165-
</dependency>
166159
<dependency>
167160
<groupId>org.springframework.boot</groupId>
168-
<artifactId>spring-boot-starter</artifactId>
161+
<artifactId>spring-boot-starter-validation</artifactId>
169162
<exclusions>
170163
<exclusion>
171164
<groupId>org.springframework.boot</groupId>
172165
<artifactId>spring-boot-starter-logging</artifactId>
173166
</exclusion>
174167
</exclusions>
175168
</dependency>
169+
<dependency>
170+
<groupId>org.testcontainers</groupId>
171+
<artifactId>pulsar</artifactId>
172+
<scope>test</scope>
173+
</dependency>
176174
</dependencies>
177175

178176
<build>
179177
<plugins>
178+
<plugin>
179+
<groupId>org.apache.maven.plugins</groupId>
180+
<artifactId>maven-compiler-plugin</artifactId>
181+
<configuration>
182+
<source>${maven.compiler.source}</source>
183+
<target>${maven.compiler.target}</target>
184+
</configuration>
185+
</plugin>
180186
<plugin>
181187
<groupId>org.springframework.boot</groupId>
182188
<artifactId>spring-boot-maven-plugin</artifactId>
@@ -186,22 +192,15 @@
186192
</configuration>
187193
<executions>
188194
<execution>
189-
<goals><goal>repackage</goal></goals>
195+
<goals>
196+
<goal>repackage</goal>
197+
</goals>
190198
</execution>
191199
</executions>
192200
</plugin>
193-
<plugin>
194-
<groupId>org.apache.maven.plugins</groupId>
195-
<artifactId>maven-compiler-plugin</artifactId>
196-
<configuration>
197-
<source>${maven.compiler.source}</source>
198-
<target>${maven.compiler.target}</target>
199-
</configuration>
200-
</plugin>
201201
</plugins>
202202
</build>
203203

204204
<inceptionYear>2024</inceptionYear>
205205

206206
</project>
207-

0 commit comments

Comments
 (0)