mirror of
https://github.com/MetaCubeX/ClashMetaForAndroid.git
synced 2026-05-09 18:11:26 +08:00
Chore: update gradle wrapper & append sha256sum
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
@file:Suppress("UNUSED_VARIABLE")
|
||||
|
||||
import java.net.URL
|
||||
|
||||
allprojects {
|
||||
repositories {
|
||||
google()
|
||||
@@ -14,3 +16,15 @@ allprojects {
|
||||
task("clean", type = Delete::class) {
|
||||
delete(rootProject.buildDir)
|
||||
}
|
||||
|
||||
tasks.named<Wrapper>("wrapper") {
|
||||
distributionType = Wrapper.DistributionType.ALL
|
||||
|
||||
doLast {
|
||||
val sha256 = URL("$distributionUrl.sha256").openStream()
|
||||
.use { it.reader().readText().trim() }
|
||||
|
||||
file("gradle/wrapper/gradle-wrapper.properties")
|
||||
.appendText("distributionSha256Sum=$sha256")
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user