blob: 68c77b7cc6c8bba5bd61731b126f23c2cdc63f4e [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")
}
apply from: "build_dependencies.gradle"
ext.supportRootFolder = project.projectDir.getParentFile()
apply from: 'repos.gradle'
repos.addMavenRepositories(repositories)
apply plugin: 'java'
apply plugin: 'kotlin'
apply from: "kotlin-dsl-dependency.gradle.kts"
compileGroovy {
dependsOn tasks.getByPath('compileKotlin')
classpath += files(compileKotlin.destinationDir)
}
dependencies {
compile build_libs.gradle
compile build_libs.jacoco
compile build_libs.error_prone
compile build_libs.jarjar_gradle
compile gradleApi()
testCompile "junit:junit:4.12"
}