Attempting to fix Gradle
This commit is contained in:
parent
313ea7f562
commit
6840197c44
1 changed files with 68 additions and 62 deletions
28
build.gradle
28
build.gradle
|
@ -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())
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue