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 234234 <compilerArgument >-Xlint:unchecked</compilerArgument >
235235 </configuration >
236236 </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 >
263237 <plugin >
264238 <groupId >org.apache.maven.plugins</groupId >
265239 <artifactId >maven-gpg-plugin</artifactId >
444418 </plugin >
445419 </plugins >
446420 </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 >
447456</project >
Original file line number Diff line number Diff line change @@ -34,9 +34,9 @@ if [ "${TRAVIS_JDK_VERSION}" == "oraclejdk7" ]; then
3434
3535 cd ..
3636 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
3838 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
4040 fi
4141 else
4242 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
1010 chmod 700 $TRAVIS_BUILD_DIR /signing-tools
1111 tar xvf $TRAVIS_BUILD_DIR /signing-tools.tar -C $TRAVIS_BUILD_DIR /signing-tools
1212 # Run verify
13- mvn verify
13+ mvn verify -P release
1414else
15- mvn verify -DskipITs
15+ mvn verify -DskipITs -P release
1616fi
You can’t perform that action at this time.
0 commit comments