Skip to content

Commit 3b076d0

Browse files
committed
👷 ci: add javadocs and sources to bundle
1 parent 7fabca6 commit 3b076d0

File tree

3 files changed

+118
-30
lines changed

3 files changed

+118
-30
lines changed

‎bundle/pom.xml‎

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,82 @@
2424

2525
<build>
2626
<plugins>
27+
<!-- Unpack sources and javadoc of dependencies -->
28+
<plugin>
29+
<groupId>org.apache.maven.plugins</groupId>
30+
<artifactId>maven-dependency-plugin</artifactId>
31+
<version>3.6.1</version>
32+
<executions>
33+
<execution>
34+
<id>unpack-dependency-sources</id>
35+
<phase>process-resources</phase>
36+
<goals>
37+
<goal>unpack-dependencies</goal>
38+
</goals>
39+
<configuration>
40+
<classifier>sources</classifier>
41+
<includeScope>compile</includeScope>
42+
<outputDirectory>${project.build.directory}/bundle-sources</outputDirectory>
43+
<excludeTransitive>false</excludeTransitive>
44+
</configuration>
45+
</execution>
46+
<execution>
47+
<id>unpack-dependency-javadocs</id>
48+
<phase>process-resources</phase>
49+
<goals>
50+
<goal>unpack-dependencies</goal>
51+
</goals>
52+
<configuration>
53+
<classifier>javadoc</classifier>
54+
<includeScope>compile</includeScope>
55+
<outputDirectory>${project.build.directory}/bundle-javadoc</outputDirectory>
56+
<excludeTransitive>false</excludeTransitive>
57+
</configuration>
58+
</execution>
59+
</executions>
60+
</plugin>
61+
62+
<!-- Create aggregated sources and javadoc jars -->
63+
<plugin>
64+
<groupId>org.apache.maven.plugins</groupId>
65+
<artifactId>maven-jar-plugin</artifactId>
66+
<version>3.3.0</version>
67+
<executions>
68+
<execution>
69+
<id>bundle-aggregated-sources</id>
70+
<phase>package</phase>
71+
<goals>
72+
<goal>jar</goal>
73+
</goals>
74+
<configuration>
75+
<classifier>sources</classifier>
76+
<classesDirectory>${project.build.directory}/bundle-sources</classesDirectory>
77+
<archive>
78+
<manifest>
79+
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
80+
</manifest>
81+
</archive>
82+
</configuration>
83+
</execution>
84+
<execution>
85+
<id>bundle-aggregated-javadoc</id>
86+
<phase>package</phase>
87+
<goals>
88+
<goal>jar</goal>
89+
</goals>
90+
<configuration>
91+
<classifier>javadoc</classifier>
92+
<classesDirectory>${project.build.directory}/bundle-javadoc</classesDirectory>
93+
<archive>
94+
<manifest>
95+
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
96+
</manifest>
97+
</archive>
98+
</configuration>
99+
</execution>
100+
</executions>
101+
</plugin>
102+
27103
<plugin>
28104
<groupId>org.apache.maven.plugins</groupId>
29105
<artifactId>maven-shade-plugin</artifactId>

‎pom.xml‎

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,46 @@
8989
</profiles>
9090

9191
<build>
92+
<pluginManagement>
93+
<plugins>
94+
<plugin>
95+
<groupId>org.apache.maven.plugins</groupId>
96+
<artifactId>maven-source-plugin</artifactId>
97+
<version>3.3.0</version>
98+
<executions>
99+
<execution>
100+
<id>attach-sources</id>
101+
<goals>
102+
<goal>jar</goal>
103+
</goals>
104+
</execution>
105+
</executions>
106+
</plugin>
107+
<plugin>
108+
<groupId>org.apache.maven.plugins</groupId>
109+
<artifactId>maven-javadoc-plugin</artifactId>
110+
<version>3.6.0</version>
111+
<executions>
112+
<execution>
113+
<id>attach-javadocs</id>
114+
<goals>
115+
<goal>jar</goal>
116+
</goals>
117+
</execution>
118+
</executions>
119+
<configuration>
120+
<doclint>none</doclint>
121+
<tags>
122+
<tag>
123+
<name>http.response.details</name>
124+
<placement>a</placement>
125+
<head>Http Response Details:</head>
126+
</tag>
127+
</tags>
128+
</configuration>
129+
</plugin>
130+
</plugins>
131+
</pluginManagement>
92132
<plugins>
93133
<plugin>
94134
<groupId>org.apache.maven.plugins</groupId>

‎sdk/pom.xml‎

Lines changed: 2 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -133,39 +133,11 @@
133133
</plugin>
134134
<plugin>
135135
<groupId>org.apache.maven.plugins</groupId>
136-
<artifactId>maven-javadoc-plugin</artifactId>
137-
<version>3.4.1</version>
138-
<executions>
139-
<execution>
140-
<id>attach-javadocs</id>
141-
<goals>
142-
<goal>jar</goal>
143-
</goals>
144-
</execution>
145-
</executions>
146-
<configuration>
147-
<doclint>none</doclint>
148-
<tags>
149-
<tag>
150-
<name>http.response.details</name>
151-
<placement>a</placement>
152-
<head>Http Response Details:</head>
153-
</tag>
154-
</tags>
155-
</configuration>
136+
<artifactId>maven-source-plugin</artifactId>
156137
</plugin>
157138
<plugin>
158139
<groupId>org.apache.maven.plugins</groupId>
159-
<artifactId>maven-source-plugin</artifactId>
160-
<version>3.2.1</version>
161-
<executions>
162-
<execution>
163-
<id>attach-sources</id>
164-
<goals>
165-
<goal>jar-no-fork</goal>
166-
</goals>
167-
</execution>
168-
</executions>
140+
<artifactId>maven-javadoc-plugin</artifactId>
169141
</plugin>
170142
<plugin>
171143
<groupId>com.diffplug.spotless</groupId>

0 commit comments

Comments
 (0)