From 3b46700e79911553cd917326187897d20874fd27 Mon Sep 17 00:00:00 2001 From: Dan Beghin Date: Wed, 25 Sep 2024 16:49:36 -0500 Subject: [PATCH] fix(plugin): publishing (#9) --- build.gradle | 8 ++++++++ .../java/com/widen/plugins/buildkite/JavadocStub.java | 8 ++++++++ 2 files changed, 16 insertions(+) create mode 100644 buildSrc/src/main/java/com/widen/plugins/buildkite/JavadocStub.java diff --git a/build.gradle b/build.gradle index 92454fa..dd9fb99 100644 --- a/build.gradle +++ b/build.gradle @@ -16,6 +16,14 @@ dependencies { compile localGroovy() } +javadoc { + source 'buildSrc/src/main/java' +} + +groovydoc { + source 'buildSrc/src/main/groovy' +} + jar { from "${rootProject.rootDir}/buildSrc/build/classes/groovy/main" from("${rootProject.rootDir}/buildSrc/src/main/groovy") { diff --git a/buildSrc/src/main/java/com/widen/plugins/buildkite/JavadocStub.java b/buildSrc/src/main/java/com/widen/plugins/buildkite/JavadocStub.java new file mode 100644 index 0000000..aab66ab --- /dev/null +++ b/buildSrc/src/main/java/com/widen/plugins/buildkite/JavadocStub.java @@ -0,0 +1,8 @@ +package com.widen.plugins.buildkite; + +/** + * This class only serves as a placeholder to generate non-empty javadoc, which appears to be required for + * plugin publishing (and having multiple sources with the same hash causes an error within the plugin-publish plugin). + */ +public class JavadocStub { +}