From 8f7abca01b7dc55f19c252a01a1fcc4dec7a67f7 Mon Sep 17 00:00:00 2001 From: Kirill Vainer Date: Tue, 3 May 2016 22:34:51 -0400 Subject: [PATCH] niftygui: add nifty repository to POM --- common.gradle | 3 ++- jme3-niftygui/build.gradle | 36 +++++++++++++++++++++++++++--------- 2 files changed, 29 insertions(+), 10 deletions(-) diff --git a/common.gradle b/common.gradle index 9a4aba272..bcda5aeb9 100644 --- a/common.gradle +++ b/common.gradle @@ -67,7 +67,7 @@ task javadocJar(type: Jar, dependsOn: javadoc, description: 'Creates a jar from from javadoc.destinationDir } -def pomConfig = { +ext.pomConfig = { name POM_NAME description POM_DESCRIPTION url POM_URL @@ -103,6 +103,7 @@ task writeFullPom { }.writeTo(pomFile) } } + assemble.dependsOn(writeFullPom) install.dependsOn(writeFullPom) uploadArchives.dependsOn(writeFullPom) diff --git a/jme3-niftygui/build.gradle b/jme3-niftygui/build.gradle index fe4f46462..4945ea407 100644 --- a/jme3-niftygui/build.gradle +++ b/jme3-niftygui/build.gradle @@ -15,15 +15,33 @@ dependencies { compile 'lessvoid:nifty-style-black:1.4.1' } -uploadArchives { - repositories.mavenDeployer { - pom.project { - repositories { - repository { - id "nifty-maven-repo.sourceforge.net" - url "http://nifty-gui.sourceforge.net/nifty-maven-repo" - } - } +ext.pomConfig = { + name POM_NAME + description POM_DESCRIPTION + url POM_URL + inceptionYear POM_INCEPTION_YEAR + scm { + url POM_SCM_URL + connection POM_SCM_CONNECTION + developerConnection POM_SCM_DEVELOPER_CONNECTION + } + licenses { + license { + name POM_LICENSE_NAME + url POM_LICENSE_URL + distribution POM_LICENSE_DISTRIBUTION + } + } + developers { + developer { + name 'jMonkeyEngine Team' + id 'jMonkeyEngine' + } + } + repositories { + repository { + id "nifty-maven-repo.sourceforge.net" + url "http://nifty-gui.sourceforge.net/nifty-maven-repo" } } } \ No newline at end of file