question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
JavierSegoviaCordobacommented, Feb 2, 2021

My problem is with a KMP library that has jvm + Android as targets. 0.2.4 hasn’t this problem so it was introduced in 0.3.0

1reaction
JavierSegoviaCordobacommented, Feb 1, 2021

@qwwdfsad I generated the tasks with the approach mentioned in the OP, but there should be a general apiBuild, apiCheck and apiDump which depends on all respective targetApiBuild (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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found