Adam S

05/21/2023, 5:02 PM
How does the Kotlin Android plugin get the transformed Android JARs for the KotlinCompile task? When I amend the compile task I can see the transformed JARs printed in the logs, not the AARs.
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile

plugins {
  id("") version "4.2.2"
  kotlin("android") version "1.8.10"

tasks.withType<KotlinCompile>().configureEach {
  doLast {
    println("libraries.asPath: ${libraries.asPath.split(":").joinToString("\n")}")
this prints a lot of files, but notably the transformed JARs, not the AARs
When I try and fetch the transformed JARs via a Configuration, I can’t seem to get them - only the AARs. What am I missing?
I thought I found where the Kotlin Android plugin is fetching the JARs but when I tried to do the same thing, I still only get the AARs, or nothing at all