blob: 196c7604a80184cff36e0cfc4e18b2a12486c2dd (
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
|
// kotlin-proxy demo — STANDARD plugins{} syntax.
//
// The narrowed compiler-stub jar is placed FIRST on the buildscript
// classpath so the Kotlin COMPILER path is shadowed, while the real KGP
// plugin (org.jetbrains.kotlin.gradle.*) is left intact so it can apply
// and the project can configure. plugins{} resolves AGP/KGP from the
// buildscript classpath above (stubs first), so the ordering is preserved.
buildscript {
repositories {
google()
mavenCentral()
}
dependencies {
// 1) kotlin-proxy compiler stubs — must come before AGP/KGP
classpath(files("../dist/kotlin-proxy-compiler-stubs.jar"))
// 2) KGP — AGP 9.x's built-in Kotlin pins its own KGP version; an
// explicit buildscript classpath dep upgrades it (AGP 9.0 release
// notes: "Runtime dependency on Kotlin Gradle plugin")
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:${libs.versions.kotlin.get()}")
// 3) AGP
classpath("com.android.tools.build:gradle:${libs.versions.agp.get()}")
}
}
plugins {
alias(libs.plugins.android.application) apply false
}
|