From 640aed6d5d4fddac7ec21d43f3e05f5af890d96d Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Fri, 4 Aug 2017 17:17:50 -0400 Subject: [PATCH] Update build.gradle --- build.gradle | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/build.gradle b/build.gradle index 44e7ee3..abddb64 100644 --- a/build.gradle +++ b/build.gradle @@ -7,6 +7,10 @@ buildscript { } } +plugins { + id "maven" +} + apply plugin: "kotlin" repositories { @@ -18,3 +22,11 @@ dependencies { compile group: "org.jetbrains.kotlin", name: "kotlin-compiler", version: kotlin_version compile group: "org.jetbrains.kotlin", name: "kotlin-script-util", version: kotlin_version } + +uploadArchives { + repositories.mavenDeployer { + repository(url: "http://archiva.shadowfacts.net/repository/local/") { + authentication(userName: project.hasProperty("mavenUser") ? project.mavenUser : System.getenv("mavenUser"), password: project.hasProperty("mavenPassword") ? project.mavenPassword : System.getenv("mavenPassword")) + } + } +}