1
- <project xmlns =" http://maven.apache.org/POM/4.0.0" xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
1
+ <project xmlns =" http://maven.apache.org/POM/4.0.0"
2
+ xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
2
3
xsi : schemaLocation =" http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd" >
3
4
<modelVersion >4.0.0</modelVersion >
4
5
<groupId >net.avalara</groupId >
32
33
</developers >
33
34
34
35
<organization >
35
- <name >Avalara</name >
36
- <url >https://developer.avalara.com/</url >
36
+ <name >Avalara</name >
37
+ <url >https://developer.avalara.com/</url >
37
38
</organization >
38
39
39
- <distributionManagement >
40
+ <distributionManagement >
40
41
<repository >
41
42
<id >ossrh</id >
42
43
<url >https://ossrh-staging-api.central.sonatype.com/service/local/staging/deploy/maven2/</url >
46
47
<url >https://ossrh-staging-api.central.sonatype.com/service/local/staging/deploy/maven2/</url >
47
48
</snapshotRepository >
48
49
</distributionManagement >
49
-
50
+
50
51
<build >
51
52
<plugins >
52
- <plugin >
53
+ <!-- Central Publishing Maven Plugin for auto-release -->
54
+ <plugin >
55
+ <groupId >org.sonatype.central</groupId >
56
+ <artifactId >central-publishing-maven-plugin</artifactId >
57
+ <version >0.8.0</version >
58
+ <extensions >true</extensions >
59
+ <configuration >
60
+ <publishingServerId >ossrh</publishingServerId >
61
+ <autoPublish >true</autoPublish >
62
+ <waitUntil >published</waitUntil >
63
+ </configuration >
64
+ </plugin >
65
+ <!-- Compiler Plugin -->
66
+ <plugin >
53
67
<groupId >org.apache.maven.plugins</groupId >
54
68
<artifactId >maven-compiler-plugin</artifactId >
55
69
<version >3.8.1</version >
59
73
<maxmem >512m</maxmem >
60
74
<compilerArgs >
61
75
<arg >-Xlint:all</arg >
62
- <arg >-J-Xss4m</arg ><!-- Compiling the generated JSON.java file may require larger stack size. -->
76
+ <arg >-J-Xss4m</arg >
63
77
</compilerArgs >
64
78
</configuration >
65
79
</plugin >
80
+ <!-- Enforcer Plugin -->
66
81
<plugin >
67
82
<groupId >org.apache.maven.plugins</groupId >
68
83
<artifactId >maven-enforcer-plugin</artifactId >
83
98
</execution >
84
99
</executions >
85
100
</plugin >
101
+ <!-- Surefire Plugin -->
86
102
<plugin >
87
103
<groupId >org.apache.maven.plugins</groupId >
88
104
<artifactId >maven-surefire-plugin</artifactId >
99
115
<threadCount >10</threadCount >
100
116
</configuration >
101
117
</plugin >
118
+ <!-- Dependency Plugin -->
102
119
<plugin >
103
120
<artifactId >maven-dependency-plugin</artifactId >
104
121
<executions >
113
130
</execution >
114
131
</executions >
115
132
</plugin >
116
- <!-- attach test jar -->
133
+ <!-- Jar Plugin for test- jar -->
117
134
<plugin >
118
135
<groupId >org.apache.maven.plugins</groupId >
119
136
<artifactId >maven-jar-plugin</artifactId >
125
142
</goals >
126
143
</execution >
127
144
</executions >
128
- <configuration >
129
- </configuration >
130
145
</plugin >
146
+ <!-- Build Helper Plugin -->
131
147
<plugin >
132
148
<groupId >org.codehaus.mojo</groupId >
133
149
<artifactId >build-helper-maven-plugin</artifactId >
159
175
</execution >
160
176
</executions >
161
177
</plugin >
178
+ <!-- Javadoc Plugin -->
162
179
<plugin >
163
180
<groupId >org.apache.maven.plugins</groupId >
164
181
<artifactId >maven-javadoc-plugin</artifactId >
182
199
</tags >
183
200
</configuration >
184
201
</plugin >
202
+ <!-- Source Plugin -->
185
203
<plugin >
186
204
<groupId >org.apache.maven.plugins</groupId >
187
205
<artifactId >maven-source-plugin</artifactId >
195
213
</execution >
196
214
</executions >
197
215
</plugin >
198
- <!-- Use spotless plugin to automatically format code, remove unused import, etc
199
- To apply changes directly to the file, run `mvn spotless:apply`
200
- Ref: https://github.com/diffplug/spotless/tree/main/plugin-maven
201
- -->
216
+ <!-- Spotless Plugin -->
202
217
<plugin >
203
- <groupId >com.diffplug.spotless</groupId >
204
- <artifactId >spotless-maven-plugin</artifactId >
205
- <version >${spotless.version} </version >
206
- <configuration >
207
- <formats >
208
- <!-- you can define as many formats as you want, each is independent -->
209
- <format >
218
+ <groupId >com.diffplug.spotless</groupId >
219
+ <artifactId >spotless-maven-plugin</artifactId >
220
+ <version >${spotless.version} </version >
221
+ <configuration >
222
+ <formats >
223
+ <format >
210
224
<!-- define the files to apply to -->
211
225
<includes >
212
226
<include >.gitignore</include >
213
227
</includes >
214
228
<!-- define the steps to apply to those files -->
215
- <trimTrailingWhitespace />
216
- <endWithNewline />
229
+ <trimTrailingWhitespace />
230
+ <endWithNewline />
217
231
<indent >
218
232
<spaces >true</spaces > <!-- or <tabs>true</tabs> -->
219
233
<spacesPerTab >4</spacesPerTab > <!-- optional, default is 4 -->
220
234
</indent >
221
- </format >
222
- </formats >
223
- <!-- define a language-specific format -->
224
- <java >
235
+ </format >
236
+ </formats >
237
+ <java >
225
238
<!-- no need to specify files, inferred automatically, but you can if you want -->
226
239
227
240
<!-- apply a specific flavor of google-java-format and reflow long strings -->
231
244
<reflowLongStrings >true</reflowLongStrings >
232
245
</googleJavaFormat >
233
246
234
- <removeUnusedImports />
235
- <importOrder />
236
-
237
- </java >
238
- </configuration >
247
+ <removeUnusedImports />
248
+ <importOrder />
249
+ </java >
250
+ </configuration >
239
251
</plugin >
240
252
</plugins >
241
253
</build >
270
282
<artifactId >swagger-annotations</artifactId >
271
283
<version >${swagger-core-version} </version >
272
284
</dependency >
273
- <!-- @Nullable annotation -->
274
285
<dependency >
275
286
<groupId >com.google.code.findbugs</groupId >
276
287
<artifactId >jsr305</artifactId >
343
354
<artifactId >javax.ws.rs-api</artifactId >
344
355
<version >${javax-version} </version >
345
356
</dependency >
346
- <!-- test dependencies -->
347
357
<dependency >
348
358
<groupId >junit</groupId >
349
359
<artifactId >junit</artifactId >
357
367
<scope >test</scope >
358
368
</dependency >
359
369
</dependencies >
370
+
360
371
<properties >
361
372
<java .version>1.8</java .version>
362
373
<maven .compiler.source>${java.version} </maven .compiler.source>
376
387
<project .build.sourceEncoding>UTF-8</project .build.sourceEncoding>
377
388
<spotless .version>2.17.3</spotless .version>
378
389
</properties >
379
- </project >
390
+ </project >
0 commit comments