diff options
author | ThatGravyBoat <thatgravyboat@gmail.com> | 2024-09-23 02:51:37 -0230 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-23 07:21:37 +0200 |
commit | 8f7b79a0b4953bb64f342ccc21d962c8aacbc169 (patch) | |
tree | cd26dc00f4009b990e30b5f3aaef125fb5663d06 /build.gradle.kts | |
parent | 4b34113c86f824000bbe9eebb5cc3fcdfe56b9ba (diff) | |
download | skyhanni-8f7b79a0b4953bb64f342ccc21d962c8aacbc169.tar.gz skyhanni-8f7b79a0b4953bb64f342ccc21d962c8aacbc169.tar.bz2 skyhanni-8f7b79a0b4953bb64f342ccc21d962c8aacbc169.zip |
Backend: Add blossom and make source checker show version again (#2558)
Diffstat (limited to 'build.gradle.kts')
-rw-r--r-- | build.gradle.kts | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/build.gradle.kts b/build.gradle.kts index e8464ada2..447387f86 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -18,6 +18,7 @@ plugins { kotlin("plugin.power-assert") `maven-publish` id("moe.nea.shot") version "1.0.0" + id("net.kyori.blossom") } val target = ProjectTarget.values().find { it.projectPath == project.path }!! @@ -312,12 +313,18 @@ if (!MultiVersionStage.activeState.shouldCompile(target)) { onlyIf { false } } } + preprocess { vars.put("MC", target.minecraftVersion.versionNumber) vars.put("FORGE", if (target.forgeDep != null) 1 else 0) vars.put("JAVA", target.minecraftVersion.javaVersion) patternAnnotation.set("at.hannibal2.skyhanni.utils.compat.Pattern") } + +blossom { + replaceToken("@MOD_VERSION@", version) +} + val sourcesJar by tasks.creating(Jar::class) { destinationDirectory.set(layout.buildDirectory.dir("badjars")) archiveClassifier.set("src") |