blob: f028c0db356ec18a02a41cc9db26d274e1a0f62f [file] [log] [blame]
buildscript {
def supportRootFolder = project.projectDir.getParentFile()
apply from: "unbundled_check.gradle"
repositories {
maven {
url "${supportRootFolder}/../../prebuilts/tools/common/m2/repository"
}
if (isUnbundledBuild(supportRootFolder)) {
jcenter()
}
}
apply from: "build_dependencies.gradle"
dependencies {
classpath build_libs.kotlin.gradle_plugin
}
configurations.classpath.resolutionStrategy {
eachDependency { details ->
if (details.requested.group == 'org.jetbrains.kotlin') {
details.useVersion build_versions.kotlin
}
}
}
}
def runningInBuildServer = System.env.DIST_DIR != null && System.env.OUT_DIR != null
if (runningInBuildServer) {
System.setProperty("kotlin.compiler.execution.strategy", "in-process")
}
ext.supportRootFolder = project.projectDir.getParentFile()
apply from: 'repos.gradle'
apply from: "build_dependencies.gradle"
apply plugin: "kotlin"
apply from: "kotlin-dsl-dependency.gradle.kts"
repos.addMavenRepositories(repositories)
dependencies {
compile build_libs.gradle
compile build_libs.jacoco
compile build_libs.error_prone_gradle
compile build_libs.jarjar_gradle
compile gradleApi()
testCompile "junit:junit:4.12"
}