Skip to content

Commit

Permalink
Adapt to Apache Maven Javadoc Plugin 3.10.0
Browse files Browse the repository at this point in the history
  • Loading branch information
basil committed Aug 27, 2024
1 parent 96378c1 commit 72d98d8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/test/java/plugins/JavadocPluginTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ private void setup(Job job) {
m.targets.set("javadoc:javadoc -f my-app/pom.xml");

JavadocPublisher jd = job.addPublisher(JavadocPublisher.class);
jd.javadocDir.set("my-app/target/site/apidocs/");
jd.javadocDir.set("my-app/target/site/reports/apidocs/");
job.save();
}

Expand Down
4 changes: 2 additions & 2 deletions src/test/java/plugins/PipelineTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public String scriptForPipeline() {
" junit 'target/surefire-reports/TEST-io.jenkins.tools.MainTest.xml'\n" +
" \n" +
" sh \"mvn javadoc:javadoc -f pom.xml\"\n" +
" step([$class: 'JavadocArchiver', javadocDir: 'target/site/apidocs', keepAll: false])\n" +
" step([$class: 'JavadocArchiver', javadocDir: 'target/site/reports/apidocs', keepAll: false])\n" +
" }" +
"}";
} else {
Expand All @@ -90,7 +90,7 @@ public String scriptForPipeline() {
" junit 'target/surefire-reports/TEST-io.jenkins.tools.MainTest.xml'\n" +
" \n" +
" bat \"mvn javadoc:javadoc -f pom.xml\"\n" +
" step([$class: 'JavadocArchiver', javadocDir: 'target/site/apidocs', keepAll: false])\n" +
" step([$class: 'JavadocArchiver', javadocDir: 'target/site/reports/apidocs', keepAll: false])\n" +
" }" +
"}";
}
Expand Down

0 comments on commit 72d98d8

Please sign in to comment.