From 65d970c28f30489ff4086aa98825ecabb92744e0 Mon Sep 17 00:00:00 2001 From: Walter Oggioni Date: Sun, 24 Jan 2016 15:46:18 +0100 Subject: [PATCH] aggiunto autopublish delle librerie del client --- build.gradle | 18 ++++++++++++++++-- jpacrepo.iml | 8 ++++++-- 2 files changed, 22 insertions(+), 4 deletions(-) diff --git a/build.gradle b/build.gradle index 5aaf4f2..00eb9df 100644 --- a/build.gradle +++ b/build.gradle @@ -1,10 +1,10 @@ apply plugin: 'java' apply plugin: 'war' +apply plugin: 'maven-publish' - +group='org.jpacrepo' sourceCompatibility = 1.8 -//version = '1.0' logging.captureStandardOutput LogLevel.INFO @@ -70,3 +70,17 @@ task serverJar(type: Jar) { } } + +publishing { + publications { + maven(MavenPublication) { + groupId project.group + artifactId project.name + "-common" + version "1.0" + + artifact clientJar { + //classifier "sources" + } + } + } +} \ No newline at end of file diff --git a/jpacrepo.iml b/jpacrepo.iml index f603ead..7b735f0 100644 --- a/jpacrepo.iml +++ b/jpacrepo.iml @@ -1,5 +1,5 @@ - + @@ -28,7 +28,6 @@ - @@ -101,5 +100,10 @@ + + + + + \ No newline at end of file