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 0c03ed7
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
TickProfiler [![Build Status](https://jenkins.nallar.me/job/TickProfiler/branch/1.12/badge/icon)](https://jenkins.nallar.me/job/TickProfiler/)
TickProfiler [![Build Status](https://jenkins.nallar.me/job/TickProfiler/branch/1.12/badge/icon)](https://jenkins.nallar.me/job/TickProfiler/) ![Curse](http://cf.way2muchnoise.eu/versions/For%20MC_270330_all.svg)
==========
A small mod for servers to assist with finding which TileEntities(machines) and Entities are being slow.

Expand Down
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
}
}
project.tasks.getByName("curseforge").dependsOn.add(sourceJar)
}

0 comments on commit 0c03ed7

Please sign in to comment.