Skip to content

Commit 6d4a449

Browse files
committed
Enable JavaDoc.
1 parent bab77b2 commit 6d4a449

File tree

3 files changed

+32
-13
lines changed

3 files changed

+32
-13
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,4 @@ jobs:
4141
- name: Build with Maven
4242
uses: coactions/setup-xvfb@v1
4343
with:
44-
run: mvn -f org.eclipse.swtchart.cbi/pom.xml -T 1C verify --B -ntp -Dstyle.color=always
44+
run: mvn -f org.eclipse.swtchart.cbi/pom.xml -Pjavadoc -T 1C verify --B -ntp -Dstyle.color=always

Jenkinsfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ pipeline {
1818
withCredentials([file(credentialsId: 'secret-subkeys.asc', variable: 'KEYRING'),string(credentialsId: 'gpg-passphrase', variable: 'MAVEN_GPG_PASSPHRASE') ]) {
1919
wrap([$class: 'Xvnc', takeScreenshot: false, useXauthority: true]) {
2020
sh '''
21-
mvn -f org.eclipse.swtchart.cbi/pom.xml -Peclipse-sign clean install -Dtycho.pgp.signer.bc.secretKeys="${KEYRING}"
21+
mvn -f org.eclipse.swtchart.cbi/pom.xml -Peclipse-sign -Pjavadoc clean install -Dtycho.pgp.signer.bc.secretKeys="${KEYRING}"
2222
'''
2323
}
2424
}

org.eclipse.swtchart.cbi/pom.xml

Lines changed: 30 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -251,19 +251,14 @@
251251
</execution>
252252
</executions>
253253
</plugin>
254-
<!-- <plugin>
254+
<plugin>
255255
<groupId>org.apache.maven.plugins</groupId>
256256
<artifactId>maven-javadoc-plugin</artifactId>
257-
<version>3.7.0</version>
258-
<executions>
259-
<execution>
260-
<id>attach-javadocs</id>
261-
<goals>
262-
<goal>jar</goal>
263-
</goals>
264-
</execution>
265-
</executions>
266-
</plugin> -->
257+
<version>3.11.2</version>
258+
<configuration>
259+
<source>21</source>
260+
</configuration>
261+
</plugin>
267262
<plugin>
268263
<groupId>org.apache.maven.plugins</groupId>
269264
<artifactId>maven-shade-plugin</artifactId>
@@ -293,6 +288,30 @@
293288
</plugins>
294289
</build>
295290
</profile>
291+
<profile>
292+
<id>javadoc</id>
293+
<build>
294+
<plugins>
295+
<plugin>
296+
<groupId>org.apache.maven.plugins</groupId>
297+
<artifactId>maven-javadoc-plugin</artifactId>
298+
<executions>
299+
<execution>
300+
<id>attach-javadocs</id>
301+
<phase>package</phase>
302+
<goals>
303+
<goal>jar</goal>
304+
</goals>
305+
<configuration>
306+
<failOnError>true</failOnError>
307+
<excludePackageNames>org.eclipse.swt.*:*</excludePackageNames>
308+
</configuration>
309+
</execution>
310+
</executions>
311+
</plugin>
312+
</plugins>
313+
</build>
314+
</profile>
296315
</profiles>
297316
<pluginRepositories>
298317
<pluginRepository>

0 commit comments

Comments
 (0)