@@ -4,14 +4,14 @@ plugins() {
44 id(" java" )
55
66 id(" checkstyle" )
7- id(" com.github.spotbugs" ). version(" 6.0.12 " ). apply(false )
8- id(" org.cadixdev .licenser" ). version(" 0.6.1 " ). apply(false )
7+ id(" com.github.spotbugs" ). version(" 6.4.8 " ). apply(false )
8+ id(" net.minecraftforge .licenser" ). version(" 1.2.0 " ). apply(false )
99}
1010
1111allprojects() {
1212 apply(plugin : " checkstyle" )
1313 apply(plugin : " com.github.spotbugs" )
14- apply(plugin : " org.cadixdev .licenser" )
14+ apply(plugin : " net.minecraftforge .licenser" )
1515
1616 setGroup(" net.elytrium.limboapi" )
1717 setVersion(" 1.1.27-SNAPSHOT" )
@@ -56,16 +56,7 @@ allprojects() {
5656}
5757
5858String getCurrentShortRevision () {
59- OutputStream outputStream = new ByteArrayOutputStream ()
60- exec {
61- if (System . getProperty(" os.name" ). toLowerCase(). contains(" win" )) {
62- commandLine(" cmd" , " /c" , " git rev-parse --short HEAD" )
63- } else {
64- commandLine(" bash" , " -c" , " git rev-parse --short HEAD" )
65- }
66-
67- setStandardOutput(outputStream)
68- }
69-
70- return outputStream. toString(). trim()
59+ return System . getProperty(" os.name" ). toLowerCase(). contains(" win" )
60+ ? [" cmd" , " /c" , " git rev-parse --short HEAD" ]. execute(). text. trim()
61+ : [" bash" , " -c" , " git rev-parse --short HEAD" ]. execute(). text. trim()
7162}
0 commit comments