From cefff832a4a180e9657dc846a853a814e6028588 Mon Sep 17 00:00:00 2001 From: modmuss50 Date: Mon, 15 Aug 2016 18:49:20 +0100 Subject: Added maven uploading --- build.gradle | 61 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 60 insertions(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index 2332c815..03812709 100644 --- a/build.gradle +++ b/build.gradle @@ -188,4 +188,63 @@ configurations.archives { // And finally, make the build generate / install the jars. assemble.dependsOn thinJar -build.dependsOn install \ No newline at end of file +build.dependsOn install + +uploadArchives { + repositories { + mavenDeployer { + if (project.hasProperty('mavenPass')){ + repository(url: "http://mavenupload.modmuss50.me/") { + authentication(userName: "buildslave", password: project.getProperty('mavenPass')) + } + } + else{ + repository(url: "file:///var/www/maven/") + } + pom { + groupId = "chorusmc" + version = project.version + artifactId = project.archivesBaseName + project { + name project.archivesBaseName + packaging 'jar' + description 'Enigma' + url 'https://github.com/ChorusMC/Enigma' + scm { + url 'https://github.com/ChorusMC/Enigma' + connection 'scm:git:git@github.com:ChorusMC/Enigma.git' + developerConnection 'scm:git:git@github.com:ChorusMC/Enigma.git' + } + issueManagement { + system 'github' + url 'https://github.com/ChorusMC/Enigma/issues' + } + licenses { + license { + name 'License' + url 'https://github.com/ChorusMC/Enigma/blob/master/readme.txt' + distribution 'repo' + } + } + developers { + developer { + id 'modmuss50' + name 'modmuss50' + roles { role 'developer' } + } + developer { + id 'Thog' + name 'Thog' + roles { role 'developer' } + } + developer { + id 'Cuchaz' + name 'Cuchaz' + roles { role 'developer' } + } + } + } + } + } + } +} \ No newline at end of file -- cgit v1.2.3