From 926d727e4b19df1ef2bc61a3c77323ede4b2cd33 Mon Sep 17 00:00:00 2001 From: "Jakob (XDjackieXD) Riepler" Date: Wed, 14 Nov 2018 21:19:32 +0100 Subject: [PATCH] add maven publish target --- build.gradle | 24 ++++++++++++++++++++++++ gradlew | 0 2 files changed, 24 insertions(+) mode change 100644 => 100755 gradlew diff --git a/build.gradle b/build.gradle index 639e7fec..c0250050 100644 --- a/build.gradle +++ b/build.gradle @@ -15,6 +15,10 @@ version = "b2" group = "de.ellpeck.naturesaura" archivesBaseName = "NaturesAura" +if(hasProperty('buildnumber')){ + version = "${version}-${this.properties['buildnumber']}" +} + sourceCompatibility = targetCompatibility = '1.8' compileJava { sourceCompatibility = targetCompatibility = '1.8' @@ -66,3 +70,23 @@ processResources { exclude 'mcmod.info' } } + +apply plugin: 'maven-publish' + +jar { + +} + +publishing { + publications { + mavenJava(MavenPublication) { + artifact jar + } + } + repositories { + maven { +// url "file:///srv/nginx/maven" + url "file:///tmp/maven" + } + } +} diff --git a/gradlew b/gradlew old mode 100644 new mode 100755