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 { +}