@ -61,12 +61,84 @@ task javadocJar(type: Jar, dependsOn: javadoc, description: 'Creates a jar from
from javadoc . destinationDir
}
def pomConfig = {
name POM_NAME
description POM_DESCRIPTION
url POM_URL
inceptionYear '2016'
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
}
}
// from http: // hub . jmonkeyengine . org /introduction/ team /
developers {
developer {
name 'Kirill Vainer'
id 'Momoko_Fan'
}
developer {
name 'Erlend Sogge Heggen'
id 'erlend_sh'
}
developer {
name 'Skye Book'
id 'sbook'
}
developer {
name 'Normen Hansen'
id 'normen'
}
developer {
name 'Ruth Kusterer'
id 'zathras'
}
developer {
name 'Rémy Bouquet'
id 'nehon'
}
developer {
name 'Paul Speed'
id 'pspeed'
}
developer {
name 'Brent Owens'
id 'Sploreg'
}
developer {
name 'Eric Potter'
id 'iwgeric'
}
}
}
// workaround to be able to use same custom pom with 'maven' and 'bintray' plugin
task writeFullPom {
ext . pomFile = "$mavenPomDir/${project.name}-${project.version}.pom"
outputs . file pomFile
doLast {
pom {
project pomConfig
} . writeTo ( pomFile )
}
}
install . dependsOn ( writeFullPom )
uploadArchives . dependsOn ( writeFullPom )
artifacts {
archives jar
archives sourcesJar
if ( buildJavaDoc = = "true" ) {
archives javadocJar
}
archives writeFullPom . outputs . files [ 0 ]
}
uploadArchives {
@ -80,23 +152,7 @@ uploadArchives {
authentication ( userName: "www-updater" , privateKey: "private/www-updater.key" )
}
pom . project {
name POM_NAME
description POM_DESCRIPTION
url POM_URL
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
}
}
}
pom . project pomConfig
}
}