2021-05-15 00:51:08 +08:00
|
|
|
@file:Suppress("UNUSED_VARIABLE")
|
|
|
|
|
2021-05-15 19:15:43 +08:00
|
|
|
import java.net.URL
|
|
|
|
|
2021-05-15 00:51:08 +08:00
|
|
|
allprojects {
|
|
|
|
repositories {
|
|
|
|
google()
|
|
|
|
mavenCentral()
|
|
|
|
|
|
|
|
maven {
|
|
|
|
url = uri("https://maven.kr328.app")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
task("clean", type = Delete::class) {
|
|
|
|
delete(rootProject.buildDir)
|
|
|
|
}
|
2021-05-15 19:15:43 +08:00
|
|
|
|
|
|
|
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")
|
|
|
|
}
|
|
|
|
}
|