Skip to content

Commit

Permalink
build sources and javadoc jars when CI=true
Browse files Browse the repository at this point in the history
  • Loading branch information
SingingBush committed Oct 11, 2024
1 parent d13d5d8 commit b9d9f7d
Showing 1 changed file with 45 additions and 1 deletion.
46 changes: 45 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -613,6 +613,50 @@
</build>
</profile>

<profile>
<id>CI</id>
<activation>
<property>
<name>env.CI</name>
<value>true</value>
</property>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
<configuration>
<quiet>true</quiet>
<failOnWarnings>false</failOnWarnings>
<failOnError>true</failOnError>
</configuration>
</plugin>
</plugins>
</build>
</profile>

<profile>
<id>release</id>
<activation>
Expand Down Expand Up @@ -650,7 +694,7 @@
<configuration>
<quiet>true</quiet>
<failOnWarnings>false</failOnWarnings>
<failOnError>false</failOnError>
<failOnError>true</failOnError>
</configuration>
</plugin>

Expand Down

0 comments on commit b9d9f7d

Please sign in to comment.