From a2366fee20c7d62037b37ddea20740fcdf1120d1 Mon Sep 17 00:00:00 2001 From: mezz Date: Sun, 20 Aug 2017 12:29:17 -0700 Subject: [PATCH] Add cursegradle integration --- build.gradle | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index 6974dab4..8dde0a38 100644 --- a/build.gradle +++ b/build.gradle @@ -19,12 +19,15 @@ buildscript { } } +plugins { + id "com.matthewprenger.cursegradle" version "1.0.6" +} apply plugin: "se.bjurr.gitchangelog.git-changelog-gradle-plugin" apply plugin: 'forge' version = "2.0.21" if (System.getenv("BUILD_NUMBER") != null) { - version = version + "-" + System.getenv("BUILD_NUMBER") + version = version + "." + System.getenv("BUILD_NUMBER") } group = "binnie" // http://maven.apache.org/guides/mini/guide-naming-conventions.html archivesBaseName = "binnie-mods-1.7.10" @@ -66,3 +69,23 @@ task gitChangelogTask(type: se.bjurr.gitchangelog.plugin.gradle.GitChangelogTask toRef = "HEAD" templateContent = file('changelog.mustache').getText('UTF-8') } + +curseforge { + apiKey = project.hasProperty('curseforge_apikey') ? project.curseforge_apikey : '0' + project { + id = '223525' + changelog = file('changelog.html') + changelogType = 'html' + releaseType = 'release' + relations { + requiredLibrary 'forestry' + incompatible 'binnie-fix' + incompatible 'binniepatcher' + incompatible 'more-binnie-fixes' + } + } +} + +afterEvaluate { + tasks.curseforge223525.dependsOn.add(gitChangelogTask) +}