diff options
| author | 2016-08-15 18:49:20 +0100 | |
|---|---|---|
| committer | 2016-08-15 18:49:20 +0100 | |
| commit | cefff832a4a180e9657dc846a853a814e6028588 (patch) | |
| tree | 128caa59697558e57ae6f9e76c4e6912e5f48296 | |
| parent | "Close mappings" option now check if you have change your mappings and if you... (diff) | |
| download | enigma-cefff832a4a180e9657dc846a853a814e6028588.tar.gz enigma-cefff832a4a180e9657dc846a853a814e6028588.tar.xz enigma-cefff832a4a180e9657dc846a853a814e6028588.zip | |
Added maven uploading
| -rw-r--r-- | build.gradle | 61 |
1 files changed, 60 insertions, 1 deletions
diff --git a/build.gradle b/build.gradle index 2332c815..03812709 100644 --- a/build.gradle +++ b/build.gradle | |||
| @@ -188,4 +188,63 @@ configurations.archives { | |||
| 188 | 188 | ||
| 189 | // And finally, make the build generate / install the jars. | 189 | // And finally, make the build generate / install the jars. |
| 190 | assemble.dependsOn thinJar | 190 | assemble.dependsOn thinJar |
| 191 | build.dependsOn install \ No newline at end of file | 191 | build.dependsOn install |
| 192 | |||
| 193 | uploadArchives { | ||
| 194 | repositories { | ||
| 195 | mavenDeployer { | ||
| 196 | if (project.hasProperty('mavenPass')){ | ||
| 197 | repository(url: "http://mavenupload.modmuss50.me/") { | ||
| 198 | authentication(userName: "buildslave", password: project.getProperty('mavenPass')) | ||
| 199 | } | ||
| 200 | } | ||
| 201 | else{ | ||
| 202 | repository(url: "file:///var/www/maven/") | ||
| 203 | } | ||
| 204 | pom { | ||
| 205 | groupId = "chorusmc" | ||
| 206 | version = project.version | ||
| 207 | artifactId = project.archivesBaseName | ||
| 208 | project { | ||
| 209 | name project.archivesBaseName | ||
| 210 | packaging 'jar' | ||
| 211 | description 'Enigma' | ||
| 212 | url 'https://github.com/ChorusMC/Enigma' | ||
| 213 | scm { | ||
| 214 | url 'https://github.com/ChorusMC/Enigma' | ||
| 215 | connection 'scm:git:git@github.com:ChorusMC/Enigma.git' | ||
| 216 | developerConnection 'scm:git:git@github.com:ChorusMC/Enigma.git' | ||
| 217 | } | ||
| 218 | issueManagement { | ||
| 219 | system 'github' | ||
| 220 | url 'https://github.com/ChorusMC/Enigma/issues' | ||
| 221 | } | ||
| 222 | licenses { | ||
| 223 | license { | ||
| 224 | name 'License' | ||
| 225 | url 'https://github.com/ChorusMC/Enigma/blob/master/readme.txt' | ||
| 226 | distribution 'repo' | ||
| 227 | } | ||
| 228 | } | ||
| 229 | developers { | ||
| 230 | developer { | ||
| 231 | id 'modmuss50' | ||
| 232 | name 'modmuss50' | ||
| 233 | roles { role 'developer' } | ||
| 234 | } | ||
| 235 | developer { | ||
| 236 | id 'Thog' | ||
| 237 | name 'Thog' | ||
| 238 | roles { role 'developer' } | ||
| 239 | } | ||
| 240 | developer { | ||
| 241 | id 'Cuchaz' | ||
| 242 | name 'Cuchaz' | ||
| 243 | roles { role 'developer' } | ||
| 244 | } | ||
| 245 | } | ||
| 246 | } | ||
| 247 | } | ||
| 248 | } | ||
| 249 | } | ||
| 250 | } \ No newline at end of file | ||