From 105dca5f9219992a02520bf3a72324825329d036 Mon Sep 17 00:00:00 2001 From: Joel Klinghed Date: Thu, 12 Nov 2026 23:11:49 +0100 Subject: test_project: Remove legacy classpath override --- test_project/app/build.gradle.kts | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) (limited to 'test_project') diff --git a/test_project/app/build.gradle.kts b/test_project/app/build.gradle.kts index 8938318..b106e73 100644 --- a/test_project/app/build.gradle.kts +++ b/test_project/app/build.gradle.kts @@ -51,22 +51,9 @@ dependencies { // KGP >= 2.3.20 runs JVM compilation through the Build Tools API by default: // the daemon classpath is the resolved `kotlinBuildToolsApiClasspath` // (defaults: kotlin-build-tools-compat + kotlin-build-tools-impl, whose -// closure IS the compiler). The older `kotlinCompilerClasspath` still -// feeds the legacy path (kotlin.compiler.runViaBuildToolsApi=false, -// deprecated, removed in KGP 2.5.0). We shadow both. +// closure IS the compiler). val proxyStub = file("/home/the_jk/source/kotlin_proxy/dist/kotlin-proxy-compiler-stubs.jar") val kotlinVersion = libs.versions.kotlin.get() -// legacy path: the kotlinCompilerClasspath default (kotlin-compiler-embeddable -// + its transitive deps). reflect stays at 1.6.10 - the POM pin. -val legacyCompilerJars = listOf( - "org.jetbrains.kotlin:kotlin-compiler-embeddable:$kotlinVersion", - "org.jetbrains.kotlin:kotlin-stdlib:$kotlinVersion", - "org.jetbrains.kotlin:kotlin-script-runtime:$kotlinVersion", - "org.jetbrains.kotlin:kotlin-reflect:1.6.10", - "org.jetbrains.kotlin:kotlin-daemon-embeddable:$kotlinVersion", - "org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.8.0", - "org.jetbrains:annotations:13.0", -) afterEvaluate { try { val bta = configurations.getByName("kotlinBuildToolsApiClasspath") @@ -75,9 +62,6 @@ afterEvaluate { "org.jetbrains.kotlin:kotlin-build-tools-compat:$kotlinVersion")) bta.dependencies.add(dependencies.create( "org.jetbrains.kotlin:kotlin-build-tools-impl:$kotlinVersion")) - val cfg = configurations.getByName("kotlinCompilerClasspath") - cfg.dependencies.add(dependencies.create(files(proxyStub))) - legacyCompilerJars.forEach { cfg.dependencies.add(dependencies.create(it)) } logger.lifecycle("kotlin-proxy: AGP stub present=" + proxyStub.exists() + " BTA ORDER=" + bta.files.joinToString(",") { it.name }) } catch (t: Throwable) { -- cgit v1.3.1