aboutsummaryrefslogtreecommitdiff
path: root/build.gradle
diff options
context:
space:
mode:
Diffstat (limited to 'build.gradle')
-rw-r--r--build.gradle3
1 files changed, 3 insertions, 0 deletions
diff --git a/build.gradle b/build.gradle
index 10768106..ebc39b61 100644
--- a/build.gradle
+++ b/build.gradle
@@ -21,8 +21,11 @@ task buildMavenPlugin << {
if (exitValue != 0) {
throw new IOException("Failed to run Maven command: exit value $exitValue, output $mvnOutput")
}
+}
+task prepareMavenPluginUpload << {
def uploadDir = new File("maven-plugin/upload")
+ uploadDir.delete()
uploadDir.mkdirs()
def releaseFileName = "dokka-maven-plugin-${dokka_version}"
new File("maven-plugin/target/${releaseFileName}.jar").renameTo(new File(uploadDir, "${releaseFileName}.jar"))