Skip to content

Commit dbfe12e

Browse files
committed
Add release profile for generating sources/javadocs
1 parent 89c4a5b commit dbfe12e

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

pom.xml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,4 +86,40 @@
8686
</plugin>
8787
</plugins>
8888
</build>
89+
90+
<profiles>
91+
<profile>
92+
<id>release</id>
93+
<build>
94+
<plugins>
95+
<plugin>
96+
<groupId>org.apache.maven.plugins</groupId>
97+
<artifactId>maven-javadoc-plugin</artifactId>
98+
<version>3.4.1</version>
99+
<executions>
100+
<execution>
101+
<id>attach-javadoc</id>
102+
<goals>
103+
<goal>jar</goal>
104+
</goals>
105+
</execution>
106+
</executions>
107+
</plugin>
108+
<plugin>
109+
<groupId>org.apache.maven.plugins</groupId>
110+
<artifactId>maven-source-plugin</artifactId>
111+
<version>3.2.1</version>
112+
<executions>
113+
<execution>
114+
<id>attach-source</id>
115+
<goals>
116+
<goal>jar</goal>
117+
</goals>
118+
</execution>
119+
</executions>
120+
</plugin>
121+
</plugins>
122+
</build>
123+
</profile>
124+
</profiles>
89125
</project>

0 commit comments

Comments
 (0)