niftygui: add nifty repository to POM

define_list_fix
Kirill Vainer 9 years ago
parent cbedf5ef08
commit b01d356ee4
  1. 3
      common.gradle
  2. 36
      jme3-niftygui/build.gradle

@ -67,7 +67,7 @@ task javadocJar(type: Jar, dependsOn: javadoc, description: 'Creates a jar from
from javadoc.destinationDir from javadoc.destinationDir
} }
def pomConfig = { ext.pomConfig = {
name POM_NAME name POM_NAME
description POM_DESCRIPTION description POM_DESCRIPTION
url POM_URL url POM_URL
@ -102,6 +102,7 @@ task writeFullPom {
}.writeTo(pomFile) }.writeTo(pomFile)
} }
} }
assemble.dependsOn(writeFullPom) assemble.dependsOn(writeFullPom)
install.dependsOn(writeFullPom) install.dependsOn(writeFullPom)
uploadArchives.dependsOn(writeFullPom) uploadArchives.dependsOn(writeFullPom)

@ -15,15 +15,33 @@ dependencies {
compile 'lessvoid:nifty-style-black:1.4.1' compile 'lessvoid:nifty-style-black:1.4.1'
} }
uploadArchives { ext.pomConfig = {
repositories.mavenDeployer { name POM_NAME
pom.project { description POM_DESCRIPTION
repositories { url POM_URL
repository { inceptionYear POM_INCEPTION_YEAR
id "nifty-maven-repo.sourceforge.net" scm {
url "http://nifty-gui.sourceforge.net/nifty-maven-repo" 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"
} }
} }
} }
Loading…
Cancel
Save