This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
hello |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Created by Seal.Wu on 2020/7/11 | |
* Description: Set up mirrors for Gradle Globally | |
*/ | |
val MAVEN_REPOSITORY_URL = "https://maven.aliyun.com/repository/central" | |
val JCENTER_REPOSITORY_URL = "https://maven.aliyun.com/repository/jcenter" | |
val GOOGLE_REPOSITORY_URL = "https://maven.aliyun.com/repository/google" | |
val GRADLE_PLUGIN_REPOSITORY_URL = "https://maven.aliyun.com/repository/gradle-plugin" | |
gradle.settingsEvaluated { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.File | |
import java.util.concurrent.TimeUnit | |
data class BashResult(val exitCode: Int, val stdout: Iterable<String>, val stderr: Iterable<String>) { | |
fun sout() = stdout.joinToString("\n").trim() | |
fun serr() = stderr.joinToString("\n").trim() | |
} |