summaryrefslogtreecommitdiff
path: root/integration-tests/ideCommonBuildScript.gradle
blob: 8d908ef84fff320c625cfb7eedfbf874f2e1bc04 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33

rootProject.buildscript {
    rootProject.ext.checkoutDir = "${rootProject.projectDir}/../../../.."
    Properties dependencyProperties = new Properties()
    dependencyProperties.load(new FileInputStream("${rootProject.ext.checkoutDir}/tools/buildSrc/base/dependencies.properties"))
    String kotlinStdLibProperty = dependencyProperties.kotlin_stdlib
    String bundledKotlinVersion= kotlinStdLibProperty.substring(kotlinStdLibProperty.lastIndexOf(":")+1)

    apply from: "${rootProject.ext.checkoutDir}/tools/buildSrc/base/version.gradle"
    rootProject.ext.latestCompileSdk = 30
    rootProject.ext.buildToolsVersion = "29.0.2"
    rootProject.ext.kotlinVersion = bundledKotlinVersion

    repositories {
        maven { url "file://${rootProject.ext.checkoutDir}/out/repo/" }
        maven { url "file://${rootProject.ext.checkoutDir}/prebuilts/tools/common/m2/repository/" }
    }

    dependencies {
        classpath "com.android.tools.build:gradle:${buildVersion}"
    }
}

rootProject.allprojects {
    repositories {
        maven { url "file://${rootProject.ext.checkoutDir}/out/repo/" }
        maven { url "file://${rootProject.ext.checkoutDir}/prebuilts/tools/common/m2/repository/" }
    }

    if (!project.hasProperty('maven_repo')) {
        project.ext["maven_repo"] = new File(project.rootProject.getProjectDir(), "../test-local-repo").getCanonicalPath()
    }
}