Skip to content

Commit

Permalink
Jenkins will now publish to curseforge
Browse files Browse the repository at this point in the history
  • Loading branch information
LunNova committed Jun 20, 2017
1 parent 64ff2e8 commit 8d22451
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ buildscript {
classpath 'org.minimallycorrect.libloader:LibLoaderGradle:0.1-SNAPSHOT'
}
}
plugins {
id "com.matthewprenger.cursegradle" version "1.0.9"
}
apply plugin: 'org.minimallycorrect.libloader.LibLoaderGradle'
apply plugin: 'net.minecraftforge.gradle.forge'
apply plugin: 'idea'
Expand Down Expand Up @@ -108,3 +111,16 @@ wrapper {
batchScript.write batchScript.text.replace("set $optsEnvVar=", "set $optsEnvVar=$jvmOpts")
}
}

if (System.getenv("CURSEFORGE_API_KEY") != null) {
curseforge {
apiKey = System.getenv("CURSEFORGE_API_KEY") // This should really be in a gradle.properties file
project {
id = "270330"
changelog = "git rev-parse --short HEAD".execute().text.trim() + ":" + "git log -1 --pretty=%B".execute().text.trim()
releaseType = "beta"
addArtifact sourceJar
}
}
curseforge.dependsOn sourceJar
}

0 comments on commit 8d22451

Please sign in to comment.