melix / jmh-gradle-plugin

Integrates the JMH benchmarking framework with Gradle
Apache License 2.0
669 stars 88 forks source link

Support kotlin multiplatform builds / custom main sourceset #140

Closed altavir closed 2 years ago

altavir commented 6 years ago

I've hit the wall with new kotlin multiplatform gradle model.

The problem arises because jmh by default depends on main sourceset, which is not present in multiplatform model and usually replaced by something like jvmMain. I think it could be solved simply by allowing to declare custom name for main and main test sourcesets.

bnvinay92 commented 2 years ago

@melix is this something you would be open to?

altavir commented 2 years ago

I think this issue could be closed because benchmarking in Kotlin is now covered in https://github.com/Kotlin/kotlinx-benchmark. And it includes multiplatform support.