Get the deployment system working

This commit is contained in:
conreptio 2017-06-12 10:33:17 +02:00
parent 96727bca4d
commit 167dc82764
2 changed files with 30 additions and 4 deletions

View File

@ -11,6 +11,24 @@ description =
'Vault is a Permissions and Economy API to allow plugins to more easily hook ' +
'into these systems without needing to hook each individual system themselves.'
ext {
homepage = 'https://natrolite.org/'
licenseName = 'GNU Lesser General Public License (LGPL)'
licenseUrl = 'https://www.gnu.org/licenses/lgpl.txt'
licenseDist = 'repo'
issueSystem = 'GitHub Issues'
issueUrl = 'https://github.com/natrolite/vault/issues'
ciSystem = 'Travis CI'
ciUrl = 'https://travis-ci.org/natrolite/vault'
scmUrl = 'https://github.com/natrolite/vault'
scmConnection = 'scm:git:git://github.com/natrolite/vault.git'
scmDevConnection = 'scm:git:ssh://github.com:natrolite/vault.git'
}
ext {
javaVersion = '1.7'
encoding = 'UTF-8'
@ -85,6 +103,8 @@ shadowJar {
build.dependsOn(shadowJar)
apply from: 'gradle/deploy.gradle'
task wrapper(type: Wrapper) {
gradleVersion = '3.5'
}

View File

@ -1,15 +1,21 @@
// Version 2.0
apply plugin: 'maven'
uploadArchives.repositories.mavenDeployer {
if (project.hasProperty('deployRelease')) {
repository(url: deployRelease)
repository(url: deployRelease) {
if(project.hasProperty('deployUser')) {
authentication(userName: deployUser, password: deployPass)
}
}
}
if (project.hasProperty('deploySnapshot')) {
snapshotRepository(url: deploySnapshot)
snapshotRepository(url: deploySnapshot) {
if(project.hasProperty('deployUser')) {
authentication(userName: deployUser, password: deployPass)
}
}
}
pom.project {