Add the indraGit gradle plugin

This commit is contained in:
Username404 2021-05-17 15:39:54 +02:00
parent 218e3f4a82
commit daa9255086
Signed by: Username404-59
GPG Key ID: 7AB361FBB257A5D1
1 changed files with 3 additions and 0 deletions

View File

@ -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) {