From 41ee6cdd172db72367b7e8d113c9f270e021dead Mon Sep 17 00:00:00 2001 From: HenryLoenwind Date: Thu, 8 Oct 2015 16:24:03 +0200 Subject: [PATCH] Allow "gradle install" to install into local Maven repo --- build.gradle | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/build.gradle b/build.gradle index ceb245d0..eaacd14a 100644 --- a/build.gradle +++ b/build.gradle @@ -53,6 +53,7 @@ repositories { maven { url = "http://maven.tterrag.com" } maven { url = "http://maven.ic2.player.to" } maven { url = "http://maven.cil.li/" } + mavenLocal() } dependencies { @@ -141,6 +142,7 @@ if (JavaVersion.current().isJava8Compatible()) { } build.dependsOn sourceJar, deobfJar, apiJar, exportJavadoc +install.dependsOn build publishing { tasks.publish.dependsOn 'build' @@ -161,6 +163,12 @@ publishing { } } +artifacts { + archives sourceJar + archives apiJar + archives deobfJar +} + String getChangelogText() { def changelogFile = new File('ReleaseNotes.txt') String str = ''