Skip to content

Commit ab93d20

Browse files
committed
supply sources and javadco
1 parent f5a1a69 commit ab93d20

File tree

1 file changed

+34
-1
lines changed

1 file changed

+34
-1
lines changed

pom.xml

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
<java.target.version>8</java.target.version> <!-- used for compiler plugin and animal-sniffer, for compatibility reasons with Java 9 only the values 6,7,8 and 9 is allowed -->
5757
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
5858
<junit.jupiter.version>5.6.0</junit.jupiter.version>
59-
<arguments /> <!-- additional arguments for the forked Maven run during releases -->
59+
<arguments/> <!-- additional arguments for the forked Maven run during releases -->
6060
</properties>
6161

6262
<dependencyManagement>
@@ -112,6 +112,14 @@
112112
<artifactId>maven-jar-plugin</artifactId>
113113
<version>3.2.0</version>
114114
</plugin>
115+
<plugin>
116+
<artifactId>maven-javadoc-plugin</artifactId>
117+
<version>3.1.1</version>
118+
</plugin>
119+
<plugin>
120+
<artifactId>maven-source-plugin</artifactId>
121+
<version>3.2.0</version>
122+
</plugin>
115123
<plugin>
116124
<artifactId>maven-release-plugin</artifactId>
117125
<version>3.0.0-M1</version>
@@ -295,7 +303,32 @@
295303
</property>
296304
</activation>
297305
<build>
306+
<!-- https://central.sonatype.org/pages/requirements.html -->
298307
<plugins>
308+
<plugin>
309+
<groupId>org.apache.maven.plugins</groupId>
310+
<artifactId>maven-source-plugin</artifactId>
311+
<executions>
312+
<execution>
313+
<id>attach-sources</id>
314+
<goals>
315+
<goal>jar-no-fork</goal>
316+
</goals>
317+
</execution>
318+
</executions>
319+
</plugin>
320+
<plugin>
321+
<groupId>org.apache.maven.plugins</groupId>
322+
<artifactId>maven-javadoc-plugin</artifactId>
323+
<executions>
324+
<execution>
325+
<id>attach-javadocs</id>
326+
<goals>
327+
<goal>jar</goal>
328+
</goals>
329+
</execution>
330+
</executions>
331+
</plugin>
299332
<plugin>
300333
<groupId>org.apache.maven.plugins</groupId>
301334
<artifactId>maven-gpg-plugin</artifactId>

0 commit comments

Comments
 (0)