|
1 | 1 | <?xml version="1.0" encoding="UTF-8"?> |
2 | | -<project xmlns="http://maven.apache.org/POM/4.0.0" |
3 | | - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 2 | +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
4 | 3 | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
5 | 4 | <modelVersion>4.0.0</modelVersion> |
6 | 5 |
|
7 | 6 | <groupId>com.featureprobe</groupId> |
8 | 7 | <artifactId>server-sdk-java</artifactId> |
9 | 8 | <version>2.0.1</version> |
10 | 9 | <name>server-sdk-java</name> |
11 | | - <url>https://github.com/FeatureProbe/server-sdk-java</url> |
12 | 10 | <description>FeatureProbe Server Side SDK for Java</description> |
13 | 11 |
|
14 | | - <developers> |
15 | | - <developer> |
16 | | - <id>KaKa</id> |
17 | | - <name>KaKa Jiang</name> |
18 | | - <roles> |
19 | | - <role>lead developer</role> |
20 | | - </roles> |
21 | | - </developer> |
22 | | - </developers> |
23 | | - |
24 | | - <licenses> |
25 | | - <license> |
26 | | - <name>Apache License, Version 2.0</name> |
27 | | - <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url> |
28 | | - <distribution>repo</distribution> |
29 | | - <comments>A business-friendly OSS license</comments> |
30 | | - </license> |
31 | | - </licenses> |
32 | | - |
33 | | - <scm> |
34 | | - <connection>scm:git@github.com:FeatureProbe/server-sdk-java.git</connection> |
35 | | - <developerConnection>scm:git@github.com:FeatureProbe/server-sdk-java.git</developerConnection> |
36 | | - <url>https://github.com/FeatureProbe/server-sdk-java</url> |
37 | | - </scm> |
38 | | - |
39 | 12 | <properties> |
40 | 13 | <java.version>1.8</java.version> |
41 | 14 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
|
109 | 82 | <scope>test</scope> |
110 | 83 | </dependency> |
111 | 84 | <!-- Optional dependencies for using Spock --> |
112 | | - <dependency> <!-- use a specific Groovy version rather than the one specified by spock-core --> |
| 85 | + <dependency> |
| 86 | + <!-- use a specific Groovy version rather than the one specified by spock-core --> |
113 | 87 | <groupId>org.codehaus.groovy</groupId> |
114 | 88 | <artifactId>groovy</artifactId> |
115 | 89 | <version>${groovy.version}</version> |
116 | 90 | <scope>test</scope> |
117 | 91 | </dependency> |
118 | | - <dependency> <!-- enables mocking of classes (in addition to interfaces) --> |
| 92 | + <dependency> |
| 93 | + <!-- enables mocking of classes (in addition to interfaces) --> |
119 | 94 | <groupId>net.bytebuddy</groupId> |
120 | 95 | <artifactId>byte-buddy</artifactId> |
121 | 96 | <version>1.12.7</version> |
122 | 97 | <scope>test</scope> |
123 | 98 | </dependency> |
124 | | - <dependency> <!-- enables mocking of classes without default constructor (together with ByteBuddy or CGLIB) --> |
| 99 | + <dependency> |
| 100 | + <!-- enables mocking of classes without default constructor (together with ByteBuddy or CGLIB) --> |
125 | 101 | <groupId>org.objenesis</groupId> |
126 | 102 | <artifactId>objenesis</artifactId> |
127 | 103 | <version>3.2</version> |
128 | 104 | <scope>test</scope> |
129 | 105 | </dependency> |
130 | | - <dependency> <!-- only required if Hamcrest matchers are used --> |
| 106 | + <dependency> |
| 107 | + <!-- only required if Hamcrest matchers are used --> |
131 | 108 | <groupId>org.hamcrest</groupId> |
132 | 109 | <artifactId>hamcrest-core</artifactId> |
133 | 110 | <version>2.2</version> |
|
148 | 125 | </dependency> |
149 | 126 | </dependencies> |
150 | 127 |
|
151 | | - <distributionManagement> |
152 | | - <snapshotRepository> |
153 | | - <id>ossrh</id> |
154 | | - <url>https://s01.oss.sonatype.org/content/repositories/snapshots</url> |
155 | | - </snapshotRepository> |
156 | | - <repository> |
157 | | - <id>ossrh</id> |
158 | | - <url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url> |
159 | | - </repository> |
160 | | - </distributionManagement> |
161 | | - |
162 | 128 | <build> |
163 | 129 | <plugins> |
164 | 130 | <plugin> |
|
191 | 157 | <artifactId>maven-surefire-plugin</artifactId> |
192 | 158 | <version>3.0.0-M5</version> |
193 | 159 | <configuration> |
194 | | - <useModulePath>false</useModulePath> <!-- https://issues.apache.org/jira/browse/SUREFIRE-1809 --> |
| 160 | + <useModulePath>false</useModulePath> |
| 161 | + <!-- https://issues.apache.org/jira/browse/SUREFIRE-1809 --> |
195 | 162 | <useFile>false</useFile> |
196 | 163 | <includes> |
197 | 164 | <include>**/*Test</include> |
|
207 | 174 | </statelessTestsetReporter> |
208 | 175 | </configuration> |
209 | 176 | </plugin> |
| 177 | + <plugin> |
| 178 | + <groupId>com.diffplug.spotless</groupId> |
| 179 | + <artifactId>spotless-maven-plugin</artifactId> |
| 180 | + <version>2.25.0</version> |
| 181 | + <configuration> |
| 182 | + <java> |
| 183 | + <eclipse> |
| 184 | + <file>.github/misc/spotless-formatter.xml</file> |
| 185 | + </eclipse> |
| 186 | + <removeUnusedImports /> |
| 187 | + <licenseHeader> |
| 188 | + <file>.github/misc/license-header</file> |
| 189 | + </licenseHeader> |
| 190 | + </java> |
| 191 | + <pom> |
| 192 | + <sortPom> |
| 193 | + <encoding>UTF-8</encoding> |
| 194 | + <nrOfIndentSpace>4</nrOfIndentSpace> |
| 195 | + <keepBlankLines>true</keepBlankLines> |
| 196 | + <indentBlankLines>false</indentBlankLines> |
| 197 | + <indentSchemaLocation>true</indentSchemaLocation> |
| 198 | + <spaceBeforeCloseEmptyElement>true</spaceBeforeCloseEmptyElement> |
| 199 | + <sortModules>false</sortModules> |
| 200 | + <sortExecutions>false</sortExecutions> |
| 201 | + <predefinedSortOrder>custom_1</predefinedSortOrder> |
| 202 | + <expandEmptyElements>false</expandEmptyElements> |
| 203 | + <sortProperties>false</sortProperties> |
| 204 | + </sortPom> |
| 205 | + <replace> |
| 206 | + <name>Leading blank line</name> |
| 207 | + <search>project</search> |
| 208 | + <replacement>project</replacement> |
| 209 | + </replace> |
| 210 | + </pom> |
| 211 | + <markdown> |
| 212 | + <includes> |
| 213 | + <include>**/*.md</include> |
| 214 | + </includes> |
| 215 | + <flexmark /> |
| 216 | + </markdown> |
| 217 | + </configuration> |
| 218 | + </plugin> |
210 | 219 | <plugin> |
211 | 220 | <groupId>org.jacoco</groupId> |
212 | 221 | <artifactId>jacoco-maven-plugin</artifactId> |
|
226 | 235 | </execution> |
227 | 236 | <execution> |
228 | 237 | <id>jacoco-site</id> |
229 | | - <phase>test</phase> |
230 | 238 | <goals> |
231 | 239 | <goal>report</goal> |
232 | 240 | </goals> |
| 241 | + <phase>test</phase> |
233 | 242 | </execution> |
234 | 243 | </executions> |
235 | 244 | </plugin> |
|
289 | 298 | <executions> |
290 | 299 | <execution> |
291 | 300 | <id>sign-artifacts</id> |
292 | | - <phase>verify</phase> |
293 | 301 | <goals> |
294 | 302 | <goal>sign</goal> |
295 | 303 | </goals> |
| 304 | + <phase>verify</phase> |
296 | 305 | <configuration> |
297 | 306 | <gpgArguments> |
298 | 307 | <arg>--pinentry-mode</arg> |
|
322 | 331 | <executions> |
323 | 332 | <execution> |
324 | 333 | <id>make-assembly</id> |
325 | | - <phase>package</phase> |
326 | 334 | <goals> |
327 | 335 | <goal>single</goal> |
328 | 336 | </goals> |
| 337 | + <phase>package</phase> |
329 | 338 |
|
330 | 339 | </execution> |
331 | 340 | </executions> |
|
354 | 363 | </plugin> |
355 | 364 | </plugins> |
356 | 365 | </reporting> |
| 366 | + <url>https://github.com/FeatureProbe/server-sdk-java</url> |
| 367 | + |
| 368 | + <licenses> |
| 369 | + <license> |
| 370 | + <name>Apache License, Version 2.0</name> |
| 371 | + <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url> |
| 372 | + <distribution>repo</distribution> |
| 373 | + <comments>A business-friendly OSS license</comments> |
| 374 | + </license> |
| 375 | + </licenses> |
| 376 | + |
| 377 | + <developers> |
| 378 | + <developer> |
| 379 | + <id>KaKa</id> |
| 380 | + <name>KaKa Jiang</name> |
| 381 | + <roles> |
| 382 | + <role>lead developer</role> |
| 383 | + </roles> |
| 384 | + </developer> |
| 385 | + </developers> |
| 386 | + |
| 387 | + <scm> |
| 388 | + <connection>scm:git@github.com:FeatureProbe/server-sdk-java.git</connection> |
| 389 | + <developerConnection>scm:git@github.com:FeatureProbe/server-sdk-java.git</developerConnection> |
| 390 | + <url>https://github.com/FeatureProbe/server-sdk-java</url> |
| 391 | + </scm> |
| 392 | + |
| 393 | + <distributionManagement> |
| 394 | + <repository> |
| 395 | + <id>ossrh</id> |
| 396 | + <url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url> |
| 397 | + </repository> |
| 398 | + <snapshotRepository> |
| 399 | + <id>ossrh</id> |
| 400 | + <url>https://s01.oss.sonatype.org/content/repositories/snapshots</url> |
| 401 | + </snapshotRepository> |
| 402 | + </distributionManagement> |
357 | 403 | </project> |
0 commit comments