From ac5af96db1dd0ed22d7f748b2eddf09a425b0f8a Mon Sep 17 00:00:00 2001 From: JozsefA Date: Fri, 18 Jun 2021 23:52:13 -0700 Subject: [PATCH] Fancy buildscript and 0.0.2 --- build.gradle | 42 ++++++++++++++++++++---------------------- changelog.txt | 9 +++++++++ gradle.properties | 5 ++++- 3 files changed, 33 insertions(+), 23 deletions(-) create mode 100644 changelog.txt diff --git a/build.gradle b/build.gradle index 5d67fed6f..13f38357a 100644 --- a/build.gradle +++ b/build.gradle @@ -18,8 +18,10 @@ plugins { apply plugin: 'net.minecraftforge.gradle' apply plugin: 'org.spongepowered.mixin' +boolean dev = System.getenv('RELEASE') == null || System.getenv('RELEASE').equals('false'); + group = 'jozufozu' -version = "${mod_version}" +version = "${mc_update_version}-${mod_version}" archivesBaseName = 'flywheel' sourceCompatibility = targetCompatibility = compileJava.sourceCompatibility = compileJava.targetCompatibility = '1.8' @@ -115,29 +117,8 @@ repositories { } dependencies { - // Specify the version of Minecraft to use, If this is any group other then 'net.minecraft' it is assumed - // that the dep is a ForgeGradle 'patcher' dependency. And it's patches will be applied. - // The userdev artifact is a special name and will get all sorts of transformations applied to it. minecraft "net.minecraftforge:forge:${minecraft_version}-${forge_version}" - // You may put jars on which you depend on in ./libs or you may define them like so.. - // compile "some.group:artifact:version:classifier" - // compile "some.group:artifact:version" - - // Real examples - // compile 'com.mod-buildcraft:buildcraft:6.0.8:dev' // adds buildcraft to the dev env - // compile 'com.googlecode.efficient-java-matrix-library:ejml:0.24' // adds ejml to the dev env - - // The 'provided' configuration is for optional dependencies that exist at compile-time but might not at runtime. - // provided 'com.mod-buildcraft:buildcraft:6.0.8:dev' - - // These dependencies get remapped to your current MCP mappings - // deobf 'com.mod-buildcraft:buildcraft:6.0.8:dev' - - // For more info... - // http://www.gradle.org/docs/current/userguide/artifact_dependencies_tutorial.html - // http://www.gradle.org/docs/current/userguide/dependency_management.html - annotationProcessor 'org.spongepowered:mixin:0.8:processor' } @@ -158,3 +139,20 @@ jar { } jar.finalizedBy('reobfJar') + +tasks.curseforge.enabled = !dev && project.hasProperty('jozu_curseforge_key') + +curseforge { + if (project.hasProperty('jozu_curseforge_key')) { + apiKey = project.jozu_curseforge_key + } + + project { + id = project.projectId + changelog = file('changelog.txt') + releaseType = project.curse_type + mainArtifact(jar) { + displayName = "${archivesBaseName}-${version}" + } + } +} diff --git a/changelog.txt b/changelog.txt new file mode 100644 index 000000000..6ae1b8efe --- /dev/null +++ b/changelog.txt @@ -0,0 +1,9 @@ +0.0.2: +New + - Added /flywheel backend command to replace /create experimentalRendering + - Added /flywheel normalOverlay command + - Added basic config + - New logo (thanks, bumble_dani!) + +0.0.1: + - Initial release diff --git a/gradle.properties b/gradle.properties index 5d55b81e7..61fa6b11f 100644 --- a/gradle.properties +++ b/gradle.properties @@ -2,7 +2,8 @@ org.gradle.jvmargs=-Xmx3G org.gradle.daemon=false # mod version info -mod_version=0.0.1 +mod_version=0.0.2 +mc_update_version=1.16 minecraft_version=1.16.5 forge_version=36.0.42 mcp_mappings=20200920-mixed-1.16.3 @@ -16,4 +17,6 @@ jei_version=7.6.1.71 # curse_type=beta # github information +projectId=486392 +curse_type=beta github_project=Jozufozu/Flywheel