File tree Expand file tree Collapse file tree 3 files changed +39
-30
lines changed Expand file tree Collapse file tree 3 files changed +39
-30
lines changed Original file line number Diff line number Diff line change 234
234
<compilerArgument >-Xlint:unchecked</compilerArgument >
235
235
</configuration >
236
236
</plugin >
237
- <plugin >
238
- <groupId >org.apache.maven.plugins</groupId >
239
- <artifactId >maven-source-plugin</artifactId >
240
- <version >3.0.0</version >
241
- <executions >
242
- <execution >
243
- <id >attach-sources</id >
244
- <goals >
245
- <goal >jar-no-fork</goal >
246
- </goals >
247
- </execution >
248
- </executions >
249
- </plugin >
250
- <plugin >
251
- <groupId >org.apache.maven.plugins</groupId >
252
- <artifactId >maven-javadoc-plugin</artifactId >
253
- <version >2.10.3</version >
254
- <executions >
255
- <execution >
256
- <id >attach-javadocs</id >
257
- <goals >
258
- <goal >jar</goal >
259
- </goals >
260
- </execution >
261
- </executions >
262
- </plugin >
263
237
<plugin >
264
238
<groupId >org.apache.maven.plugins</groupId >
265
239
<artifactId >maven-gpg-plugin</artifactId >
444
418
</plugin >
445
419
</plugins >
446
420
</build >
421
+ <profiles >
422
+ <profile >
423
+ <id >release</id >
424
+ <build >
425
+ <plugins >
426
+ <plugin >
427
+ <groupId >org.apache.maven.plugins</groupId >
428
+ <artifactId >maven-source-plugin</artifactId >
429
+ <version >3.0.0</version >
430
+ <executions >
431
+ <execution >
432
+ <id >attach-sources</id >
433
+ <goals >
434
+ <goal >jar-no-fork</goal >
435
+ </goals >
436
+ </execution >
437
+ </executions >
438
+ </plugin >
439
+ <plugin >
440
+ <groupId >org.apache.maven.plugins</groupId >
441
+ <artifactId >maven-javadoc-plugin</artifactId >
442
+ <version >2.10.3</version >
443
+ <executions >
444
+ <execution >
445
+ <id >attach-javadocs</id >
446
+ <goals >
447
+ <goal >jar</goal >
448
+ </goals >
449
+ </execution >
450
+ </executions >
451
+ </plugin >
452
+ </plugins >
453
+ </build >
454
+ </profile >
455
+ </profiles >
447
456
</project >
Original file line number Diff line number Diff line change @@ -34,9 +34,9 @@ if [ "${TRAVIS_JDK_VERSION}" == "oraclejdk7" ]; then
34
34
35
35
cd ..
36
36
utilities/update_docs_version.sh # Update version in READMEs
37
- mvn clean deploy --settings ~ /.m2/settings.xml -P sign-deploy
37
+ mvn clean deploy --settings ~ /.m2/settings.xml -P sign-deploy,release
38
38
else
39
- mvn clean deploy -DskipTests=true -Dgpg.skip=true --settings ~ /.m2/settings.xml
39
+ mvn clean deploy -DskipTests=true -Dgpg.skip=true --settings ~ /.m2/settings.xml -P release
40
40
fi
41
41
else
42
42
echo " Not deploying artifacts. This is only done with non-pull-request commits to master branch with Oracle Java 7 builds."
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ if [ "${TRAVIS_PULL_REQUEST}" == "false" ]; then
10
10
chmod 700 $TRAVIS_BUILD_DIR /signing-tools
11
11
tar xvf $TRAVIS_BUILD_DIR /signing-tools.tar -C $TRAVIS_BUILD_DIR /signing-tools
12
12
# Run verify
13
- mvn verify
13
+ mvn verify -P release
14
14
else
15
- mvn verify -DskipITs
15
+ mvn verify -DskipITs -P release
16
16
fi
You can’t perform that action at this time.
0 commit comments