Support MPP with multiple JVM targets
See original GitHub issue jvm("androidJvm")
jvm("desktopJvm")
Cannot add task 'apiBuild' as a task with that name already exists.
Using 0.3.0. Maybe we can create tasks based on the target names, e.g. androidJvmApiBuild, desktopJvmApiBuild
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:9 (4 by maintainers)
Top Results From Across the Web
Multiplatform and mulitple jvm targets - Kotlin Discussions
What solution wish you take in a Java project? Targeting two JVM versions from the same source with Kotlin MPP.
Read more >In new MPP, support Java compilation in JVM targets : KT-26256
In new MPP, support Java compilation in JVM targets ; Type, Feature F ; Target versions, 1.3.40 ; State, Fixed F ; Assignee,...
Read more >Introduction to Multiplatform Programming in Kotlin - Baeldung
We'll develop a simple application that will target multiple platforms like JVM, JS, and Native. This will also help us understand the ...
Read more >How to configure Kotlin jvmTarget in a Multiplatform Android ...
Please specify proper '-jvm-target' option Adding support for Java 8 language features could solve this issue. Trying to compile this build ...
Read more >Adding an Android Target to a Kotlin Multiplatform Project
When using the Mobile Shared Library (or similar) template in IntelliJ IDEA to create a new Multiplatform project (MPP), it will create a...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

My problem is with a KMP library that has jvm + Android as targets.
0.2.4hasn’t this problem so it was introduced in0.3.0@qwwdfsad I generated the tasks with the approach mentioned in the OP, but there should be a general
apiBuild,apiCheckandapiDumpwhich depends on all respectivetargetApiBuild(etc).Maybe I can try to finish this fix tomorrow. Do you think this approach should be used? I could create a PR with it.