mirror of
https://github.com/MetaCubeX/ClashMetaForAndroid.git
synced 2024-11-29 00:36:09 +03:00
26 lines
550 B
Plaintext
26 lines
550 B
Plaintext
@file:Suppress("UNUSED_VARIABLE")
|
|
|
|
import java.net.URL
|
|
|
|
allprojects {
|
|
repositories {
|
|
google()
|
|
mavenCentral()
|
|
}
|
|
}
|
|
|
|
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")
|
|
}
|
|
} |