Sergey Vasilinets | 70a2e82 | 2017-11-03 12:20:28 -0700 | [diff] [blame] | 1 | buildscript { |
| 2 | def supportRootFolder = project.projectDir.getParentFile() |
Aurimas Liutikas | a2cbbfa | 2018-01-25 14:42:41 -0800 | [diff] [blame] | 3 | apply from: "unbundled_check.gradle" |
Sergey Vasilinets | 70a2e82 | 2017-11-03 12:20:28 -0700 | [diff] [blame] | 4 | repositories { |
| 5 | maven { |
| 6 | url "${supportRootFolder}/../../prebuilts/tools/common/m2/repository" |
| 7 | } |
Aurimas Liutikas | a2cbbfa | 2018-01-25 14:42:41 -0800 | [diff] [blame] | 8 | if (isUnbundledBuild(supportRootFolder)) { |
| 9 | jcenter() |
| 10 | } |
Sergey Vasilinets | 70a2e82 | 2017-11-03 12:20:28 -0700 | [diff] [blame] | 11 | } |
Sergey Vasilinets | ccb3fcb | 2017-10-16 23:46:48 +0000 | [diff] [blame] | 12 | |
Sergey Vasilinets | 70a2e82 | 2017-11-03 12:20:28 -0700 | [diff] [blame] | 13 | apply from: "build_dependencies.gradle" |
| 14 | |
| 15 | dependencies { |
| 16 | classpath build_libs.kotlin.gradle_plugin |
| 17 | } |
Jake Wharton | 7495cc1 | 2018-01-05 11:05:13 -0500 | [diff] [blame] | 18 | |
| 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 Vasilinets | 70a2e82 | 2017-11-03 12:20:28 -0700 | [diff] [blame] | 26 | } |
Sergey Vasilinets | 71469cb | 2017-11-17 13:56:50 -0800 | [diff] [blame] | 27 | def runningInBuildServer = System.env.DIST_DIR != null && System.env.OUT_DIR != null |
| 28 | if (runningInBuildServer) { |
| 29 | System.setProperty("kotlin.compiler.execution.strategy", "in-process") |
| 30 | } |
Sergey Vasilinets | 70a2e82 | 2017-11-03 12:20:28 -0700 | [diff] [blame] | 31 | |
Aurimas Liutikas | 9ab3b4c3 | 2017-04-19 09:33:27 -0700 | [diff] [blame] | 32 | ext.supportRootFolder = project.projectDir.getParentFile() |
| 33 | apply from: 'repos.gradle' |
Aurimas Liutikas | 36bbc1d | 2018-01-24 19:32:16 -0800 | [diff] [blame] | 34 | apply from: "build_dependencies.gradle" |
Sergey Vasilinets | 164c38d | 2018-02-02 00:50:57 -0800 | [diff] [blame^] | 35 | apply plugin: "kotlin" |
Aurimas Liutikas | 36bbc1d | 2018-01-24 19:32:16 -0800 | [diff] [blame] | 36 | apply from: "kotlin-dsl-dependency.gradle.kts" |
Aurimas Liutikas | 9ab3b4c3 | 2017-04-19 09:33:27 -0700 | [diff] [blame] | 37 | |
Sergey Vasilinets | ccb3fcb | 2017-10-16 23:46:48 +0000 | [diff] [blame] | 38 | repos.addMavenRepositories(repositories) |
Sergey Vasilinets | bb245e08 | 2017-10-11 00:16:04 -0700 | [diff] [blame] | 39 | |
Aurimas Liutikas | 9697da7 | 2016-12-22 15:50:42 -0800 | [diff] [blame] | 40 | dependencies { |
Sergey Vasilinets | 70a2e82 | 2017-11-03 12:20:28 -0700 | [diff] [blame] | 41 | compile build_libs.gradle |
| 42 | compile build_libs.jacoco |
| 43 | compile build_libs.error_prone |
| 44 | compile build_libs.jarjar_gradle |
Aurimas Liutikas | a192828 | 2017-07-17 12:32:26 -0700 | [diff] [blame] | 45 | compile gradleApi() |
Aurimas Liutikas | ec5894e | 2018-01-02 15:08:37 -0800 | [diff] [blame] | 46 | testCompile "junit:junit:4.12" |
Aurimas Liutikas | 9697da7 | 2016-12-22 15:50:42 -0800 | [diff] [blame] | 47 | } |