From 3624682c1e2574d395b9fd0e81592404365722b8 Mon Sep 17 00:00:00 2001 From: Wouter Born Date: Sun, 26 Nov 2023 21:26:19 +0100 Subject: [PATCH] Add JavaDoc build badge and reconfigure plugin to indicate JavaDoc warnings/errors (#3886) * Add JavaDoc build badge * Add dependency to upgradetool to fix remaining JavaDoc error * Fail JavaDoc build on JavaDoc warnings/errors * Upgrade maven-javadoc-plugin to fix it failures even if there are no warnings/errors * Enable legacyMode to workaround JPMS issues in newer maven-javadoc-plugin versions Signed-off-by: Wouter Born --- README.md | 1 + pom.xml | 6 ++++-- tools/upgradetool/pom.xml | 5 +++++ 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 06b306d29..1ce5ff03b 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,7 @@ [![GitHub Actions Build Status](https://github.com/openhab/openhab-core/actions/workflows/ci-build.yml/badge.svg?branch=main)](https://github.com/openhab/openhab-core/actions/workflows/ci-build.yml) [![Jenkins Build Status](https://ci.openhab.org/job/openHAB-Core/badge/icon)](https://ci.openhab.org/job/openHAB-Core/) +[![JavaDoc Build Status](https://ci.openhab.org/view/Documentation/job/openHAB-JavaDoc/badge/icon?subject=javadoc)](https://ci.openhab.org/view/Documentation/job/openHAB-JavaDoc/) [![EPL-2.0](https://img.shields.io/badge/license-EPL%202-green.svg)](https://opensource.org/licenses/EPL-2.0) [![Crowdin](https://badges.crowdin.net/openhab-core/localized.svg)](https://crowdin.com/project/openhab-core) diff --git a/pom.xml b/pom.xml index 511284603..dde28aa8d 100644 --- a/pom.xml +++ b/pom.xml @@ -326,10 +326,12 @@ Import-Package: \\ org.apache.maven.plugins maven-javadoc-plugin - 3.2.0 + 3.6.2 - !${quality.skip} + true + true none + true *.internal,*.internal.* diff --git a/tools/upgradetool/pom.xml b/tools/upgradetool/pom.xml index 890c02c14..a0c991432 100644 --- a/tools/upgradetool/pom.xml +++ b/tools/upgradetool/pom.xml @@ -38,6 +38,11 @@ commons-cli 1.5.0 + + org.osgi + org.osgi.service.component.annotations + 1.5.0 + org.slf4j slf4j-simple