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"
23 xsi : schemaLocation =" http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd" >
34 <modelVersion >4.0.0</modelVersion >
45 <groupId >net.avalara</groupId >
3233 </developers >
3334
3435 <organization >
35- <name >Avalara</name >
36- <url >https://developer.avalara.com/</url >
36+ <name >Avalara</name >
37+ <url >https://developer.avalara.com/</url >
3738 </organization >
3839
39- <distributionManagement >
40+ <distributionManagement >
4041 <repository >
4142 <id >ossrh</id >
4243 <url >https://ossrh-staging-api.central.sonatype.com/service/local/staging/deploy/maven2/</url >
4647 <url >https://ossrh-staging-api.central.sonatype.com/service/local/staging/deploy/maven2/</url >
4748 </snapshotRepository >
4849 </distributionManagement >
49-
50+
5051 <build >
5152 <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 >
5367 <groupId >org.apache.maven.plugins</groupId >
5468 <artifactId >maven-compiler-plugin</artifactId >
5569 <version >3.8.1</version >
5973 <maxmem >512m</maxmem >
6074 <compilerArgs >
6175 <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 >
6377 </compilerArgs >
6478 </configuration >
6579 </plugin >
80+ <!-- Enforcer Plugin -->
6681 <plugin >
6782 <groupId >org.apache.maven.plugins</groupId >
6883 <artifactId >maven-enforcer-plugin</artifactId >
8398 </execution >
8499 </executions >
85100 </plugin >
101+ <!-- Surefire Plugin -->
86102 <plugin >
87103 <groupId >org.apache.maven.plugins</groupId >
88104 <artifactId >maven-surefire-plugin</artifactId >
99115 <threadCount >10</threadCount >
100116 </configuration >
101117 </plugin >
118+ <!-- Dependency Plugin -->
102119 <plugin >
103120 <artifactId >maven-dependency-plugin</artifactId >
104121 <executions >
113130 </execution >
114131 </executions >
115132 </plugin >
116- <!-- attach test jar -->
133+ <!-- Jar Plugin for test- jar -->
117134 <plugin >
118135 <groupId >org.apache.maven.plugins</groupId >
119136 <artifactId >maven-jar-plugin</artifactId >
125142 </goals >
126143 </execution >
127144 </executions >
128- <configuration >
129- </configuration >
130145 </plugin >
146+ <!-- Build Helper Plugin -->
131147 <plugin >
132148 <groupId >org.codehaus.mojo</groupId >
133149 <artifactId >build-helper-maven-plugin</artifactId >
159175 </execution >
160176 </executions >
161177 </plugin >
178+ <!-- Javadoc Plugin -->
162179 <plugin >
163180 <groupId >org.apache.maven.plugins</groupId >
164181 <artifactId >maven-javadoc-plugin</artifactId >
182199 </tags >
183200 </configuration >
184201 </plugin >
202+ <!-- Source Plugin -->
185203 <plugin >
186204 <groupId >org.apache.maven.plugins</groupId >
187205 <artifactId >maven-source-plugin</artifactId >
195213 </execution >
196214 </executions >
197215 </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 -->
202217 <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 >
210224 <!-- define the files to apply to -->
211225 <includes >
212226 <include >.gitignore</include >
213227 </includes >
214228 <!-- define the steps to apply to those files -->
215- <trimTrailingWhitespace />
216- <endWithNewline />
229+ <trimTrailingWhitespace />
230+ <endWithNewline />
217231 <indent >
218232 <spaces >true</spaces > <!-- or <tabs>true</tabs> -->
219233 <spacesPerTab >4</spacesPerTab > <!-- optional, default is 4 -->
220234 </indent >
221- </format >
222- </formats >
223- <!-- define a language-specific format -->
224- <java >
235+ </format >
236+ </formats >
237+ <java >
225238 <!-- no need to specify files, inferred automatically, but you can if you want -->
226239
227240 <!-- apply a specific flavor of google-java-format and reflow long strings -->
231244 <reflowLongStrings >true</reflowLongStrings >
232245 </googleJavaFormat >
233246
234- <removeUnusedImports />
235- <importOrder />
236-
237- </java >
238- </configuration >
247+ <removeUnusedImports />
248+ <importOrder />
249+ </java >
250+ </configuration >
239251 </plugin >
240252 </plugins >
241253 </build >
270282 <artifactId >swagger-annotations</artifactId >
271283 <version >${swagger-core-version} </version >
272284 </dependency >
273- <!-- @Nullable annotation -->
274285 <dependency >
275286 <groupId >com.google.code.findbugs</groupId >
276287 <artifactId >jsr305</artifactId >
343354 <artifactId >javax.ws.rs-api</artifactId >
344355 <version >${javax-version} </version >
345356 </dependency >
346- <!-- test dependencies -->
347357 <dependency >
348358 <groupId >junit</groupId >
349359 <artifactId >junit</artifactId >
357367 <scope >test</scope >
358368 </dependency >
359369 </dependencies >
370+
360371 <properties >
361372 <java .version>1.8</java .version>
362373 <maven .compiler.source>${java.version} </maven .compiler.source>
376387 <project .build.sourceEncoding>UTF-8</project .build.sourceEncoding>
377388 <spotless .version>2.17.3</spotless .version>
378389 </properties >
379- </project >
390+ </project >
0 commit comments