From c44b9db487f97bc06c0f9908735cf079bc54166d Mon Sep 17 00:00:00 2001 From: Adubbz Date: Sun, 19 Jan 2014 12:32:45 +1100 Subject: [PATCH] Updated build.gradle --- build.gradle | 77 +++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 76 insertions(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index 5cf066d37..5504a0f49 100644 --- a/build.gradle +++ b/build.gradle @@ -1,6 +1,7 @@ buildscript { repositories { mavenCentral() + mavenLocal() maven { name = "ForgeFS" url = "http://files.minecraftforge.net/maven" @@ -15,6 +16,7 @@ buildscript { } } +apply plugin "maven" apply plugin: "forge" // define the properties file @@ -127,4 +129,77 @@ artifacts { archives sourceJar archives deobfJar archives apiJar -} \ No newline at end of file +} + +uploadArchives { + repositories { + add getProject().repositories.mavenLocal() + } + repositories.mavenDeployer { + configuration = configurations.deployJars + + if (project.hasProperty("filesmaven")) { + logger.info('Publishing to files server') + repository(url: project.filesmaven.url) { + authentication(userName: project.filesmaven.username, privateKey: project.filesmaven.key) + } + } else { + logger.info('Publishing to repo folder') + repository(url: 'file://localhost/' + project.file('repo').getAbsolutePath()) + } + + pom { + groupId = project.group + version = project.version + artifactId = project.archivesBaseName + } + pom.project { + name project.archivesBaseName + packaging 'jar' + description 'Biomes O' Plenty' + url 'https://github.com/Glitchfiend/BiomesOPlenty' + + scm { + url 'https://github.com/Glitchfiend/BiomesOPlenty' + connection 'scm:git:git://github.com/Glitchfiend/BiomesOPlenty.git' + developerConnection 'scm:git:git@github.com:MinecraftForge/MinecraftForge.git' + } + + issueManagement { + system 'github' + url 'https://github.com/Glitchfiend/BiomesOPlenty/issues' + } + + licenses { + license { + name 'Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported' + url 'http://creativecommons.org/licenses/by-nc-nd/3.0/deed.en_US' + distribution 'repo' + } + } + + developers { + developer { + id 'Adubbz' + name 'Adubbz' + roles { role 'developer' } + } + developer { + id 'Forstride' + name 'Forstride' + roles { role 'developer' } + } + developer { + id 'Amnet' + name 'Amnet' + roles { role 'developer' } + } + + developer { + id 'ted80' + name 'ted80' + roles { role 'developer' } + } + } + } + } \ No newline at end of file