xref: /aosp_15_r20/external/ksp/integration-tests/build.gradle.kts (revision af87fb4bb8e3042070d2a054e912924f599b22b7)
1 val junitVersion: String by project
2 val kotlinBaseVersion: String by project
3 val agpBaseVersion: String by project
4 
<lambda>null5 plugins {
6     kotlin("jvm")
7 }
8 
<lambda>null9 dependencies {
10     testImplementation("junit:junit:$junitVersion")
11     testImplementation(gradleTestKit())
12     testImplementation("org.jetbrains.kotlin:kotlin-compiler:$kotlinBaseVersion")
13 }
14 
<lambda>null15 tasks.named<Test>("test") {
16     systemProperty("kotlinVersion", kotlinBaseVersion)
17     systemProperty("kspVersion", version)
18     systemProperty("agpVersion", agpBaseVersion)
19     systemProperty("testRepo", File(rootProject.buildDir, "repos/test").absolutePath)
20     dependsOn(":api:publishAllPublicationsToTestRepository")
21     dependsOn(":gradle-plugin:publishAllPublicationsToTestRepository")
22     dependsOn(":symbol-processing:publishAllPublicationsToTestRepository")
23     dependsOn(":symbol-processing-cmdline:publishAllPublicationsToTestRepository")
24 }
25