|
23 | 23 | </scm>
|
24 | 24 | <developers>
|
25 | 25 | <developer>
|
26 |
| - <id>sshyiko</id> |
| 26 | + <id>shyiko</id> |
27 | 27 | <email>stanley.shyiko@gmail.com</email>
|
28 | 28 | <name>Stanley Shyiko</name>
|
29 | 29 | </developer>
|
30 | 30 | </developers>
|
31 | 31 | <distributionManagement>
|
32 | 32 | <repository>
|
33 |
| - <id>sonatype-nexus-staging</id> |
| 33 | + <id>maven-central</id> |
34 | 34 | <name>Sonatype Nexus Staging</name>
|
35 | 35 | <url>https://oss.sonatype.org/service/local/staging/deploy/maven2</url>
|
36 | 36 | </repository>
|
37 |
| - <snapshotRepository> |
38 |
| - <id>sonatype-nexus-snapshots</id> |
39 |
| - <name>Sonatype Nexus Snapshots</name> |
40 |
| - <url>https://oss.sonatype.org/content/repositories/snapshots</url> |
41 |
| - </snapshotRepository> |
42 | 37 | </distributionManagement>
|
43 | 38 |
|
44 | 39 | <properties>
|
|
91 | 86 | <plugin>
|
92 | 87 | <groupId>org.apache.maven.plugins</groupId>
|
93 | 88 | <artifactId>maven-compiler-plugin</artifactId>
|
94 |
| - <version>2.3.2</version> |
| 89 | + <version>3.5.1</version> |
95 | 90 | <configuration>
|
96 | 91 | <source>1.6</source>
|
97 | 92 | <target>1.6</target>
|
98 | 93 | </configuration>
|
99 | 94 | </plugin>
|
| 95 | + <plugin> |
| 96 | + <groupId>org.apache.maven.plugins</groupId> |
| 97 | + <artifactId>maven-jar-plugin</artifactId> |
| 98 | + <version>3.0.2</version> |
| 99 | + <configuration> |
| 100 | + <archive> |
| 101 | + <manifestEntries> |
| 102 | + <!-- for class.getPackage().getImplementationVersion() --> |
| 103 | + <Implementation-Version>${project.version}</Implementation-Version> |
| 104 | + </manifestEntries> |
| 105 | + </archive> |
| 106 | + </configuration> |
| 107 | + </plugin> |
| 108 | + <plugin> |
| 109 | + <groupId>org.apache.maven.plugins</groupId> |
| 110 | + <artifactId>maven-deploy-plugin</artifactId> |
| 111 | + <version>2.8.2</version> |
| 112 | + <configuration> |
| 113 | + <skip>true</skip> |
| 114 | + </configuration> |
| 115 | + </plugin> |
100 | 116 | <plugin>
|
101 | 117 | <groupId>org.apache.maven.plugins</groupId>
|
102 | 118 | <artifactId>maven-surefire-plugin</artifactId>
|
|
201 | 217 | <configuration>
|
202 | 218 | <usage>
|
203 | 219 | # build everything (append "-DskipTests=true" if you wish to skip tests)
|
204 |
| - mvn clean install |
| 220 | + ./mvnw clean package |
205 | 221 |
|
206 | 222 | # run unit + integration tests, validate codebase using checkstyle
|
207 |
| - mvn -P coverage clean verify |
| 223 | + ./mvnw -P coverage clean verify |
208 | 224 | # use -Dvagrant.integration.box= to switch between MySQL sandboxes
|
209 | 225 |
|
210 | 226 | # for aggregated coverage over different mysql releases use
|
211 |
| - mvn clean |
212 |
| - mvn -P coverage verify \ |
| 227 | + ./mvnw clean |
| 228 | + ./mvnw -P coverage verify \ |
213 | 229 | -Dvagrant.integration.box=supplement/vagrant/mysql-5.5.27-sandbox-prepackaged
|
214 |
| - mvn -P coverage verify \ |
| 230 | + ./mvnw -P coverage verify \ |
215 | 231 | -Dvagrant.integration.box=supplement/vagrant/mysql-5.6.12-sandbox-prepackaged
|
216 |
| - mvn -P coverage verify \ |
217 |
| - -Dvagrant.integration.box=supplement/vagrant/mysql-5.7.15-sandbox-prepackaged |
| 232 | + ./mvnw -P coverage verify \ |
| 233 | + -Dvagrant.integration.box=supplement/vagrant/mysql-5.7.15-sandbox-prepackaged |
218 | 234 |
|
219 | 235 | # submit coverage report to coveralls
|
220 |
| - mvn -P coverage coveralls:jacoco -DrepoToken=<coveralls.io> |
| 236 | + ./mvnw -P coverage coveralls:jacoco -DrepoToken=<coveralls.io> |
221 | 237 |
|
222 |
| - # deploy snapshots into nexus |
223 |
| - mvn -P with-sources-and-javadocs -Ddeploy=snapshot |
224 |
| - |
225 |
| - # sign release build and deploy into nexus |
226 |
| - mvn -P with-sources-and-javadocs -Ddeploy=release |
| 238 | + # publish a new version |
| 239 | + ./mvnw versions:set -DnewVersion=<version> |
| 240 | + ./mvnw -Ddeploy=maven-central |
227 | 241 | </usage>
|
228 | 242 | </configuration>
|
229 | 243 | </plugin>
|
|
279 | 293 | </build>
|
280 | 294 | </profile>
|
281 | 295 | <profile>
|
282 |
| - <id>with-sources-and-javadocs</id> |
| 296 | + <id>deploy-to-maven-central</id> |
| 297 | + <activation> |
| 298 | + <property> |
| 299 | + <name>deploy</name> |
| 300 | + <value>maven-central</value> |
| 301 | + </property> |
| 302 | + </activation> |
283 | 303 | <build>
|
| 304 | + <defaultGoal>clean deploy</defaultGoal> |
284 | 305 | <plugins>
|
285 | 306 | <plugin>
|
286 | 307 | <groupId>org.apache.maven.plugins</groupId>
|
287 | 308 | <artifactId>maven-source-plugin</artifactId>
|
288 |
| - <version>2.2.1</version> |
| 309 | + <version>3.0.1</version> |
289 | 310 | <executions>
|
290 | 311 | <execution>
|
291 | 312 | <id>attach-sources</id>
|
|
299 | 320 | <plugin>
|
300 | 321 | <groupId>org.apache.maven.plugins</groupId>
|
301 | 322 | <artifactId>maven-javadoc-plugin</artifactId>
|
302 |
| - <version>2.9</version> |
| 323 | + <version>2.10.4</version> |
303 | 324 | <executions>
|
304 | 325 | <execution>
|
305 | 326 | <id>attach-javadocs</id>
|
306 | 327 | <goals>
|
307 | 328 | <goal>jar</goal>
|
308 | 329 | </goals>
|
| 330 | + <configuration> |
| 331 | + <additionalparam>-Xdoclint:none</additionalparam> |
| 332 | + <quiet>true</quiet> |
| 333 | + </configuration> |
309 | 334 | </execution>
|
310 | 335 | </executions>
|
311 | 336 | </plugin>
|
312 |
| - </plugins> |
313 |
| - </build> |
314 |
| - </profile> |
315 |
| - <profile> |
316 |
| - <id>snapshot</id> |
317 |
| - <activation> |
318 |
| - <property> |
319 |
| - <name>deploy</name> |
320 |
| - <value>snapshot</value> |
321 |
| - </property> |
322 |
| - </activation> |
323 |
| - <build> |
324 |
| - <defaultGoal>clean deploy</defaultGoal> |
325 |
| - </build> |
326 |
| - </profile> |
327 |
| - <profile> |
328 |
| - <id>release</id> |
329 |
| - <activation> |
330 |
| - <property> |
331 |
| - <name>deploy</name> |
332 |
| - <value>release</value> |
333 |
| - </property> |
334 |
| - </activation> |
335 |
| - <build> |
336 |
| - <defaultGoal>clean release:clean release:prepare release:perform</defaultGoal> |
337 |
| - <plugins> |
338 | 337 | <plugin>
|
339 | 338 | <groupId>org.apache.maven.plugins</groupId>
|
340 | 339 | <artifactId>maven-gpg-plugin</artifactId>
|
341 |
| - <version>1.4</version> |
| 340 | + <version>1.6</version> |
342 | 341 | <executions>
|
343 | 342 | <execution>
|
344 | 343 | <id>sign-artifacts</id>
|
|
350 | 349 | </executions>
|
351 | 350 | </plugin>
|
352 | 351 | <plugin>
|
353 |
| - <groupId>org.apache.maven.plugins</groupId> |
354 |
| - <artifactId>maven-release-plugin</artifactId> |
355 |
| - <version>2.2.2</version> |
| 352 | + <groupId>org.sonatype.plugins</groupId> |
| 353 | + <artifactId>nexus-staging-maven-plugin</artifactId> |
| 354 | + <version>1.6.7</version> |
| 355 | + <extensions>true</extensions> |
356 | 356 | <configuration>
|
357 |
| - <mavenExecutorId>forked-path</mavenExecutorId> |
| 357 | + <nexusUrl>https://oss.sonatype.org/</nexusUrl> |
| 358 | + <serverId>maven-central</serverId> |
| 359 | + <skipStagingRepositoryClose>true</skipStagingRepositoryClose> |
| 360 | + <!--<autoReleaseAfterClose>true</autoReleaseAfterClose>--> |
358 | 361 | </configuration>
|
359 | 362 | </plugin>
|
360 | 363 | </plugins>
|
|
0 commit comments