From 47a39f8282e5110a876348bbe8cac8d9f8f81566 Mon Sep 17 00:00:00 2001 From: Adubbz Date: Mon, 16 Feb 2015 09:06:47 +1100 Subject: [PATCH] Updating Gradle for CurseForge --- build.gradle | 14 +++++++------- build.properties | 4 +++- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/build.gradle b/build.gradle index 93cfab1da..f1711456b 100644 --- a/build.gradle +++ b/build.gradle @@ -42,6 +42,7 @@ archivesBaseName = "BiomesOPlenty" minecraft { version = config.minecraft_version + "-" + config.forge_version // grab latest forge + mappings = "snapshot_nodoc_20150214" } // add some stuff to the version @@ -55,13 +56,6 @@ jenkins { job = 'BiomesOPlenty' } -if (!minecraft.mappingsSet && minecraft.version.startsWith("1.8")) { - // Default mappings, normally if mappings are not specified then the plugin will set this - // default value internally, unfortunately this happens too late for the compile step below - // which needs the correct value to pass to the annotation processor. - minecraft.mappings = "snapshot_20141001" -} - def mixinSrg = "${tasks.reobf.temporaryDir}" + File.separator + 'mixins.srg' reobf.addExtraSrgFile mixinSrg @@ -151,6 +145,12 @@ artifacts { archives deobfJar } +curse { + projectId = project.config.curse_project_id + apiKey = "$System.env.curse_api_key" + releaseType = project.config.curse_release_type +} + uploadArchives { dependsOn 'reobf' repositories { diff --git a/build.properties b/build.properties index 97ffc6ffb..9fb09a252 100644 --- a/build.properties +++ b/build.properties @@ -1,3 +1,5 @@ minecraft_version=1.8 -forge_version=11.14.0.1265-1.8 +forge_version=11.14.1.1308 mod_version=3.0.0 +curse_project_id=220318 +curse_release_type=alpha