Skip to content

Commit

Permalink
separate Gradle task to prepare Maven plugin upload
Browse files Browse the repository at this point in the history
  • Loading branch information
yole committed Dec 28, 2015
1 parent a8e2cfe commit da9138c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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"))
Expand Down

0 comments on commit da9138c

Please sign in to comment.