Slackbot
04/14/2022, 12:50 PMPhil Glass
04/14/2022, 4:32 PMinvokedynamic
calls, which can cause issues with up-to-date checking and the configuration cache. -Xsam-conversions=class
works around it.Phil Glass
04/14/2022, 4:35 PMAction<T>
and Spec<T>
, but it can still be problematic for other things like Function<T, R>
.tony
04/14/2022, 4:43 PM-Xsam-conversions=class
for all our gradle pluginsSam Edwards
04/14/2022, 4:47 PMsam-conversions
? I can add a comment next to it regarding your comment.
afterEvaluate {
tasks.withType<KotlinCompile>().configureEach {
kotlinOptions {
apiVersion = "1.5"
languageVersion = "1.5"
}
}
}
Sam Edwards
04/14/2022, 4:50 PMkotlinOptions {
freeCompilerArgs += ['-Xsam-conversions=class']
}
tony
04/14/2022, 5:09 PMtasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).configureEach {
kotlinOptions {
// Resolves warning of this sort when using the configuration cache:
// Execution optimizations have been disabled for task ':module:testDebugUnitTest' to ensure
// correctness due to the following reasons:
// - Additional action of task ':module:testDebugUnitTest' was implemented by the Java lambda
// 'com.squareup.gradle.support.UnitTestAgentPlugin$apply$1$2$$Lambda$5945/0x0000001783f92440'.
// Reason: Using Java lambdas is not supported as task inputs.
freeCompilerArgs += '-Xsam-conversions=class'
}
}