From daa9255086e45301f8f9d0dbc74603f70338afeb Mon Sep 17 00:00:00 2001 From: Username404 Date: Mon, 17 May 2021 15:39:54 +0200 Subject: [PATCH] Add the indraGit gradle plugin --- build.gradle.kts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/build.gradle.kts b/build.gradle.kts index de204f7..118dcee 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -15,6 +15,7 @@ plugins { id("architectury-plugin") version "[3.0.100, 3.2[" id("dev.architectury.loom") version "[0.7.1.104, 0.7.3[" apply false id("com.github.ben-manes.versions") version "0.38.0" + id("net.kyori.indra.git") version "2.0.4" id("com.modrinth.minotaur") version "1.2.1" } @@ -138,8 +139,10 @@ allprojects { exclude("META-INF/maven/**/*") archiveClassifier.set("shadow") } + apply(plugin = "net.kyori.indra.git") withType(Jar::class) { from("$rootDir/LICENSE.txt") + indraGit.applyVcsInformationToManifest(manifest) archiveBaseName.set("${rootProject.name}-${rootProject.version}") } withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile::class) {