I'm trying to run benchmarks project mentioned in ...
# k2-adopters
j
I'm trying to run benchmarks project mentioned in https://blog.jetbrains.com/kotlin/2024/04/k2-compiler-performance-benchmarks-and-how-to-measure-them-on-your-projects/ with a couple of KMP samples I have but running in to errors e.g.
Copy code
* What went wrong:
An exception occurred applying plugin request [id: 'org.jetbrains.kotlin.android']
> Failed to apply plugin 'org.jetbrains.kotlin.android'.
   > Unknown output type: JSON
and likes of
Copy code
org.gradle.tooling.BuildException: Could not execute build using connection to Gradle installation '/Users/johnoreilly/dev/github/k2-performance-metrics/build/benchmarkRuns/gradle-user-home/wrapper/dists/gradle-8.4-bin/1w5dpkrfk8irigvoxmyhowfim/gradle-8.4'.
	at org.gradle.tooling.internal.consumer.ExceptionTransformer.transform(ExceptionTransformer.java:51)
	at org.gradle.tooling.internal.consumer.ExceptionTransformer.transform(ExceptionTransformer.java:29)
t
you need to apply "org.jetbrains.kotlin.jvm" as well in
buildSrc
- see last paragraph in the troubleshooting section
j
That needs to be applied in target project?
t
yep
and target project should allow to change kotlin version via
kotlin_version
Gradle property
j
hmm, still getting that error for some reason. I'll try and grab some time again and have another go in case I missed something