|
|
@ -4,7 +4,6 @@ |
|
|
|
|
|
|
|
|
|
|
|
apply plugin: 'java' |
|
|
|
apply plugin: 'java' |
|
|
|
apply plugin: 'maven' |
|
|
|
apply plugin: 'maven' |
|
|
|
apply plugin: 'maven-publish' |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
group = 'com.jme3' |
|
|
|
group = 'com.jme3' |
|
|
|
version = jmePomVersion |
|
|
|
version = jmePomVersion |
|
|
@ -19,15 +18,20 @@ repositories { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
configurations { |
|
|
|
|
|
|
|
deployerJars |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
dependencies { |
|
|
|
dependencies { |
|
|
|
// Adding dependencies here will add the dependencies to each subproject. |
|
|
|
// Adding dependencies here will add the dependencies to each subproject. |
|
|
|
testCompile group: 'junit', name: 'junit', version: '4.10' |
|
|
|
testCompile group: 'junit', name: 'junit', version: '4.10' |
|
|
|
|
|
|
|
deployerJars "org.apache.maven.wagon:wagon-ssh:2.9" |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
jar { |
|
|
|
jar { |
|
|
|
manifest { |
|
|
|
manifest { |
|
|
|
attributes 'Implementation-Title': 'jMonkeyEngine', |
|
|
|
attributes 'Implementation-Title': 'jMonkeyEngine', |
|
|
|
'Implementation-Version': version |
|
|
|
'Implementation-Version': jmeFullVersion |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -63,41 +67,35 @@ artifacts { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
publishing { |
|
|
|
uploadArchives { |
|
|
|
publications { |
|
|
|
repositories.mavenDeployer { |
|
|
|
maven(MavenPublication) { |
|
|
|
configuration = configurations.deployerJars |
|
|
|
from components.java |
|
|
|
|
|
|
|
artifact sourcesJar |
|
|
|
// disable this otherwise it will fill up the server with stale jars |
|
|
|
artifact javadocJar |
|
|
|
uniqueVersion = false |
|
|
|
|
|
|
|
|
|
|
|
pom.withXml { |
|
|
|
repository(url: "scp://updates.jmonkeyengine.org/var/www/updates/maven") { |
|
|
|
asNode().children().last() + { |
|
|
|
authentication(userName: "www-updater", privateKey: "private/www-updater.key") |
|
|
|
resolveStrategy = Closure.DELEGATE_FIRST |
|
|
|
} |
|
|
|
name POM_NAME |
|
|
|
|
|
|
|
description POM_DESCRIPTION |
|
|
|
pom.project { |
|
|
|
url POM_URL |
|
|
|
name POM_NAME |
|
|
|
scm { |
|
|
|
description POM_DESCRIPTION |
|
|
|
url POM_SCM_URL |
|
|
|
url POM_URL |
|
|
|
connection POM_SCM_CONNECTION |
|
|
|
scm { |
|
|
|
developerConnection POM_SCM_DEVELOPER_CONNECTION |
|
|
|
url POM_SCM_URL |
|
|
|
} |
|
|
|
connection POM_SCM_CONNECTION |
|
|
|
licenses { |
|
|
|
developerConnection POM_SCM_DEVELOPER_CONNECTION |
|
|
|
license { |
|
|
|
} |
|
|
|
name POM_LICENSE_NAME |
|
|
|
licenses { |
|
|
|
url POM_LICENSE_URL |
|
|
|
license { |
|
|
|
distribution POM_LICENSE_DISTRIBUTION |
|
|
|
name POM_LICENSE_NAME |
|
|
|
} |
|
|
|
url POM_LICENSE_URL |
|
|
|
} |
|
|
|
distribution POM_LICENSE_DISTRIBUTION |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
repositories { |
|
|
|
|
|
|
|
maven { |
|
|
|
|
|
|
|
url "${rootProject.buildDir}/repo" // change to point to your repo, e.g. http://my.org/repo |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
task createFolders(description: 'Creates the source folders if they do not exist.') doLast { |
|
|
|
task createFolders(description: 'Creates the source folders if they do not exist.') doLast { |
|
|
|