Martin
06/29/2026, 12:06 PM9.6.1 but got hit with
cannot serialize object of type 'org.gradle.api.publish.maven.internal.publication.DefaultMavenPublication', a subtype of 'org.gradle.api.publish.Publication', as these are not supported with the configuration cache.
Am I holding it wrong?Martin
06/29/2026, 12:07 PMMartin
06/29/2026, 12:11 PMMartin
06/29/2026, 12:11 PMgeneratePomFileForKotlinMultiplatformPublicationVampire
06/29/2026, 12:22 PMMartin
06/29/2026, 12:27 PMMartin
06/29/2026, 12:28 PMmadisp
06/29/2026, 12:33 PMsomethingLambda {
doStuffWith(myPublication.name)
}
do this:
val publicationName = myPublication.name
somethingLambda {
doStuffWith(publicationName)
}madisp
06/29/2026, 12:34 PMProject , AGP variant or some other heavy object :/Martin
06/29/2026, 12:37 PMMartin
06/29/2026, 12:38 PMMartin
06/29/2026, 1:07 PMVampire
06/29/2026, 1:22 PMVampire
06/29/2026, 1:22 PMdoLast and doFirst to not have it and that would be bad for usability if you cannot do ad-hoc task actionsMartin
06/29/2026, 1:24 PMMartin
06/29/2026, 1:24 PMMartin
06/29/2026, 1:25 PMMartin
06/29/2026, 1:25 PMVampire
06/29/2026, 1:25 PMVampire
06/29/2026, 1:25 PMdoFirst or doLastMartin
06/29/2026, 1:26 PMdoFirst and doLast anymore. This is just "convenient" right now because users need to monkey patch existing tasks, etc...Vampire
06/29/2026, 1:27 PMMartin
06/29/2026, 1:27 PMVampire
06/29/2026, 1:27 PMMartin
06/29/2026, 1:27 PMMartin
06/29/2026, 1:27 PMmadisp
06/29/2026, 1:27 PMMartin
06/29/2026, 1:27 PMVampire
06/29/2026, 1:27 PMMartin
06/29/2026, 1:28 PMVampire
06/29/2026, 1:28 PMNo need to instrument all the build to catch the CC inputs, etc...Sure you would have still that
Martin
06/29/2026, 1:28 PMMartin
06/29/2026, 1:29 PMVampire
06/29/2026, 1:50 PMMartin
06/29/2026, 1:52 PMPhilip W
06/29/2026, 1:53 PMMartin
06/29/2026, 1:53 PMVampire
06/29/2026, 1:54 PMPhilip W
06/29/2026, 2:00 PMMartin
06/29/2026, 2:02 PM"-Xsam-conversions=class" right? I'm not sure that's still needed these daysVampire
06/29/2026, 2:19 PM-Xsam-conversions=class is only for Kotlin, that would be that Kotlin SAM Lambdas are not compiled like Java Lambdas, but like classes.
But since Gradle 8.1 normal Java lambdas and also Kotlin Lambdas without that option should work just fine.Vampire
06/29/2026, 2:19 PMSupport of Java lambdas
Gradle can now restore user-provided lambdas from the configuration cache. Using anonymous classes to implement Single Abstract Method (SAM) interfaces is no longer necessary. This also applies to Kotlin code: there is no more need to configure the Kotlin compiler to generate classes instead of lambdas during SAM conversion.
This release also improves error reporting for lambdas that capture unsupported types, like.Configuration
Martin
06/29/2026, 2:32 PMgradle.kts filesVampire
06/29/2026, 2:35 PMVampire
06/29/2026, 2:35 PMMartin
06/29/2026, 2:36 PM