Add the indraGit gradle plugin
This commit is contained in:
parent
218e3f4a82
commit
daa9255086
|
@ -15,6 +15,7 @@ plugins {
|
||||||
id("architectury-plugin") version "[3.0.100, 3.2["
|
id("architectury-plugin") version "[3.0.100, 3.2["
|
||||||
id("dev.architectury.loom") version "[0.7.1.104, 0.7.3[" apply false
|
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("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"
|
id("com.modrinth.minotaur") version "1.2.1"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -138,8 +139,10 @@ allprojects {
|
||||||
exclude("META-INF/maven/**/*")
|
exclude("META-INF/maven/**/*")
|
||||||
archiveClassifier.set("shadow")
|
archiveClassifier.set("shadow")
|
||||||
}
|
}
|
||||||
|
apply(plugin = "net.kyori.indra.git")
|
||||||
withType(Jar::class) {
|
withType(Jar::class) {
|
||||||
from("$rootDir/LICENSE.txt")
|
from("$rootDir/LICENSE.txt")
|
||||||
|
indraGit.applyVcsInformationToManifest(manifest)
|
||||||
archiveBaseName.set("${rootProject.name}-${rootProject.version}")
|
archiveBaseName.set("${rootProject.name}-${rootProject.version}")
|
||||||
}
|
}
|
||||||
withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile::class) {
|
withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile::class) {
|
||||||
|
|
Loading…
Reference in New Issue