11plugins {
2- id ' org.cadixdev. licenser' version ' 0.6.1 ' apply false
2+ id ' dev.yumi.gradle. licenser' version ' 2.2.2 ' apply false
33 id ' com.gradleup.shadow' version ' 8.3.8' apply false
4- id ' fabric-loom' version ' 1.13 -SNAPSHOT' apply false
4+ id ' net.fabricmc. fabric-loom-remap ' version ' 1.15 -SNAPSHOT' apply false
55}
66
77import org.gradle.api.tasks.testing.logging.TestExceptionFormat
@@ -16,7 +16,7 @@ subprojects {
1616 apply plugin : ' java'
1717 apply plugin : ' idea'
1818 apply plugin : ' java-library'
19- apply plugin : ' org.cadixdev .licenser'
19+ apply plugin : ' dev.yumi.gradle .licenser'
2020
2121 ext {
2222 baseVersion = ' 1.10'
@@ -60,8 +60,7 @@ subprojects {
6060 }
6161
6262 license {
63- header = rootProject. file(' HEADER.txt' )
64- include ' **/*.java'
63+ rule(rootProject. file(" HEADER.txt" ))
6564 }
6665
6766 repositories {
@@ -82,12 +81,9 @@ subprojects {
8281}
8382
8483def determinePatchVersion () {
85- def tagInfo = new ByteArrayOutputStream ()
86- exec {
84+ def tagInfo = providers. exec {
8785 commandLine ' git' , ' describe' , ' --tags'
88- standardOutput = tagInfo
89- }
90- tagInfo = tagInfo. toString()
86+ }. standardOutput. asText. get(). trim()
9187
92- return tagInfo. contains(' -' ) ? tagInfo. split(" - " )[1 ] : 0
88+ return tagInfo. contains(' -' ) ? tagInfo. split(' - ' )[1 ] : 0
9389}
0 commit comments