mirror of
https://github.com/GTNewHorizons/Postea.git
synced 2026-11-13 17:04:01 +00:00
buildscript: remove leftovers after resolving conflicts
This commit is contained in:
1 parent
675d43898b
commit
b5400c40ac
1 file changed
-21
@@ -48,27 +48,6 @@ idea {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
static boolean checkForUpdate() {
|
||||
Thread.start {
|
||||
Map parameters = ["connectTimeout": 2000, "readTimeout": 2000]
|
||||
|
||||
String currentBuildScript = new File("build.gradle").getText()
|
||||
String currentBuildScriptHash = getVersionHash(currentBuildScript)
|
||||
|
||||
String availableBuildScript = new URL("https://raw.githubusercontent.com/SinTh0r4s/ExampleMod1.7.10/main/build.gradle").newInputStream(parameters).getText()
|
||||
String availableBuildScriptHash = getVersionHash(availableBuildScript)
|
||||
|
||||
if (currentBuildScriptHash.empty || availableBuildScriptHash.empty || currentBuildScriptHash == availableBuildScriptHash)
|
||||
return false
|
||||
|
||||
return true
|
||||
}
|
||||
}
|
||||
if(checkForUpdate()) {
|
||||
println("Build script update available! Run 'gradle updateGTNHBuildScript'")
|
||||
}
|
||||
|
||||
checkPropertyExists("modName")
|
||||
checkPropertyExists("modId")
|
||||
checkPropertyExists("modGroup")
|
||||
|
||||
Reference in new issue
Block a user