blob: b89ffbad3163e50a46a9793a3d35d20a08ca57a3 [file] [log] [blame]
Sergey Vasilinets70a2e822017-11-03 12:20:28 -07001buildscript {
2 def supportRootFolder = project.projectDir.getParentFile()
Aurimas Liutikasa2cbbfa2018-01-25 14:42:41 -08003 apply from: "unbundled_check.gradle"
Sergey Vasilinets70a2e822017-11-03 12:20:28 -07004 repositories {
5 maven {
6 url "${supportRootFolder}/../../prebuilts/tools/common/m2/repository"
7 }
Aurimas Liutikasa2cbbfa2018-01-25 14:42:41 -08008 if (isUnbundledBuild(supportRootFolder)) {
9 jcenter()
10 }
Sergey Vasilinets70a2e822017-11-03 12:20:28 -070011 }
Sergey Vasilinetsccb3fcb2017-10-16 23:46:48 +000012
Sergey Vasilinets70a2e822017-11-03 12:20:28 -070013 apply from: "build_dependencies.gradle"
14
15 dependencies {
16 classpath build_libs.kotlin.gradle_plugin
17 }
Jake Wharton7495cc12018-01-05 11:05:13 -050018
19 configurations.classpath.resolutionStrategy {
20 eachDependency { details ->
21 if (details.requested.group == 'org.jetbrains.kotlin') {
22 details.useVersion build_versions.kotlin
23 }
24 }
25 }
Sergey Vasilinets70a2e822017-11-03 12:20:28 -070026}
Sergey Vasilinets71469cb2017-11-17 13:56:50 -080027def runningInBuildServer = System.env.DIST_DIR != null && System.env.OUT_DIR != null
28if (runningInBuildServer) {
29 System.setProperty("kotlin.compiler.execution.strategy", "in-process")
30}
Sergey Vasilinets70a2e822017-11-03 12:20:28 -070031
Aurimas Liutikas9ab3b4c32017-04-19 09:33:27 -070032ext.supportRootFolder = project.projectDir.getParentFile()
33apply from: 'repos.gradle'
Aurimas Liutikas36bbc1d2018-01-24 19:32:16 -080034apply from: "build_dependencies.gradle"
Sergey Vasilinets164c38d2018-02-02 00:50:57 -080035apply plugin: "kotlin"
Aurimas Liutikas36bbc1d2018-01-24 19:32:16 -080036apply from: "kotlin-dsl-dependency.gradle.kts"
Aurimas Liutikas9ab3b4c32017-04-19 09:33:27 -070037
Sergey Vasilinetsccb3fcb2017-10-16 23:46:48 +000038repos.addMavenRepositories(repositories)
Sergey Vasilinetsbb245e082017-10-11 00:16:04 -070039
Aurimas Liutikas9697da72016-12-22 15:50:42 -080040dependencies {
Sergey Vasilinets70a2e822017-11-03 12:20:28 -070041 compile build_libs.gradle
42 compile build_libs.jacoco
43 compile build_libs.error_prone
44 compile build_libs.jarjar_gradle
Aurimas Liutikasa1928282017-07-17 12:32:26 -070045 compile gradleApi()
Aurimas Liutikasec5894e2018-01-02 15:08:37 -080046 testCompile "junit:junit:4.12"
Aurimas Liutikas9697da72016-12-22 15:50:42 -080047}