Attempting to fix Gradle

This commit is contained in:
Adubbz 2015-12-15 20:05:06 +11:00
parent 313ea7f562
commit 6840197c44

View file

@ -106,22 +106,19 @@ artifacts {
}
uploadArchives {
dependsOn 'build'
repositories.mavenDeployer {
if ("$System.env.maven_username" != "null" && "$System.env.maven_password" != "null") {
dependsOn 'reobf'
repositories {
if (project.hasProperty("filesmaven")) {
logger.info('Publishing to files server')
repository(url: "http://files.minecraftforge.net/maven/manage/upload") {
authentication(userName: "$System.env.maven_username", privateKey: "$System.env.maven_password")
}
} else {
logger.info('Publishing to repo folder')
mavenDeployer {
configuration = configurations.deployJars
pom.version = "${project.minecraft.version}-${project.version}"
repository(url: 'file://localhost/' + project.file('repo').getAbsolutePath())
repository(url: project.filesmaven.url) {
authentication(userName: project.filesmaven.username, privateKey: project.filesmaven.key)
}
// This is just the pom data for the maven repo
pom {
groupId = project.group
version = project.version
@ -176,4 +173,13 @@ uploadArchives {
}
}
}
} else {
logger.info('Publishing to repo folder')
mavenDeployer {
pom.version = "${project.minecraft.version}-${project.version}"
repository(url: 'file://localhost/' + project.file('repo').getAbsolutePath())
}
}
}
}