Skip to content

Commit

Permalink
Moved JavaDoc and Src JAR to separate profile
Browse files Browse the repository at this point in the history
  • Loading branch information
AshwinJay committed Feb 25, 2018
1 parent 7820c01 commit 2f21ab2
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 6 deletions.
19 changes: 16 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -337,10 +337,17 @@

<profiles>
<profile>
<id>release</id>
<id>
javadoc-and-source
</id>
<activation>
<property>
<name>skipDocAndSrc</name>
<value>false</value>
</property>
</activation>
<build>
<plugins>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
Expand Down Expand Up @@ -374,7 +381,13 @@
</execution>
</executions>
</plugin>

</plugins>
</build>
</profile>
<profile>
<id>release</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion run_deploy_local.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/usr/bin/env bash

mvn -DskipTests=false -e clean package install -U
mvn -DskipTests=false -DskipDocAndSrc=true -e clean package install -U
2 changes: 1 addition & 1 deletion run_deploy_snapshot.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/usr/bin/env bash

mvn -DskipTests=false -e clean package deploy
mvn -DskipTests=false -DskipDocAndSrc=false -e clean package deploy
2 changes: 1 addition & 1 deletion run_package_local.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/usr/bin/env bash

mvn -DskipTests=false -e clean package
mvn -DskipTests=false -DskipDocAndSrc=true -e clean package

0 comments on commit 2f21ab2

Please sign in to comment.