mirror of https://github.com/MilkBowl/Vault.git
Get the deployment system working
This commit is contained in:
parent
96727bca4d
commit
167dc82764
20
build.gradle
20
build.gradle
|
@ -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'
|
||||
}
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue