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