Updated build.gradle in preparation for maven changes

This commit is contained in:
Adubbz 2016-01-01 11:49:15 +11:00
parent 475abae786
commit 5fd444c260

View file

@ -144,81 +144,75 @@ curseforge {
import groovy.io.FileType import groovy.io.FileType
uploadArchives { uploadArchives {
dependsOn 'build'
repositories { repositories {
if (project.hasProperty("filesmaven")) { mavenDeployer {
logger.info('Publishing to files server') configuration = configurations.deployJars
mavenDeployer {
configuration = configurations.deployJars
repository(url: project.filesmaven.url) { repository(url: project.filesmaven.url) {
authentication(userName: project.filesmaven.username, privateKey: project.filesmaven.key) authentication(userName: forgeMavenUsername, privateKey: forgeMavenPassword)
} }
// This is just the pom data for the maven repo pom {
pom { groupId = project.group
groupId = project.group version = project.version
version = project.version artifactId = project.archivesBaseName
artifactId = project.archivesBaseName project {
project { name project.archivesBaseName
name project.archivesBaseName packaging 'jar'
packaging 'jar' description 'Biomes O Plenty'
description 'Biomes O Plenty' url 'https://github.com/Glitchfiend/BiomesOPlenty'
scm {
url 'https://github.com/Glitchfiend/BiomesOPlenty' url 'https://github.com/Glitchfiend/BiomesOPlenty'
connection 'scm:git:git://github.com/Glitchfiend/BiomesOPlenty.git'
scm { developerConnection 'scm:git:git@github.com:Glitchfiend/BiomesOPlenty.git'
url 'https://github.com/Glitchfiend/BiomesOPlenty' }
connection 'scm:git:git://github.com/Glitchfiend/BiomesOPlenty.git'
developerConnection 'scm:git:git@github.com:Glitchfiend/BiomesOPlenty.git' issueManagement {
system 'github'
url 'https://github.com/Glitchfiend/BiomesOPlenty/issues'
}
licenses {
license {
name 'Creative Commons Attribution-NonCommercial-NoDerivs 4.0 International Public License'
url 'http://creativecommons.org/licenses/by-nc-nd/4.0/'
distribution 'repo'
} }
}
issueManagement {
system 'github' developers {
url 'https://github.com/Glitchfiend/BiomesOPlenty/issues' developer {
id 'Adubbz'
name 'Adubbz'
roles { role 'developer' }
} }
developer {
licenses { id 'Amnet'
license { name 'Amnet'
name 'Creative Commons Attribution-NonCommercial-NoDerivs 4.0 International Public License' roles { role 'developer' }
url 'http://creativecommons.org/licenses/by-nc-nd/4.0/'
distribution 'repo'
}
} }
developer {
developers { id 'Forstride'
developer { name 'Forstride'
id 'Adubbz' roles { role 'developer' }
name 'Adubbz' }
roles { role 'developer' } developer {
} id 'ted80'
developer { name 'ted80'
id 'Amnet' roles { role 'developer' }
name 'Amnet'
roles { role 'developer' }
}
developer {
id 'Forstride'
name 'Forstride'
roles { role 'developer' }
}
developer {
id 'ted80'
name 'ted80'
roles { role 'developer' }
}
} }
} }
} }
} }
} else { }
logger.info('Publishing to repo folder') } else {
logger.info('Publishing to repo folder')
mavenDeployer {
pom.version = "${project.minecraft.version}-${project.version}" mavenDeployer {
repository(url: 'file://localhost/' + project.file('repo').getAbsolutePath()) pom.version = "${project.minecraft.version}-${project.version}"
} repository(url: 'file://localhost/' + project.file('repo').getAbsolutePath())
} }
} }
} }
}