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.

Fails to find license with Kotlin Multiplatform Javascript Target

See original GitHub issue

STEPS TO REPRODUCE

  1. Create a gradle module with multiplatform libraries like com.benasher44:uuid:0.3.1, a javascript target, and applying version 1.3.0 of the licensee plugin. E.g.
plugins {
    kotlin("multiplatform")
    id("app.cash.licensee")
}
kotlin {
    jvm()
    js(IR)
    sourceSets {
        val commonMain by getting {
            dependencies {
                api("com.benasher44:uuid:0.3.1")
            }
        }
}

RESULTS Actual:

com.benasher44:uuid-js:0.3.1
 - ERROR: Artifact declares no licenses!

Expected: It finds the license for the JVM target, so it should also succeed with the Javascript target.

NOTES I don’t know if there’s a limitation in the Kotlin Multiplatform Gradle plugin where we need to file an issue with JetBrains, but I thought I’d start here.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
ccjernigancommented, Jul 12, 2022

I just tested this out and can confirm that it resolves the issues I saw with multiplatform/JS dependencies.

0reactions
JakeWhartoncommented, Jul 12, 2022

Going to close as a duplicate of #30 which is fixed in 1.5.0. Please try and let me know if it resolves this. Otherwise we’ll have to get a failing test case integrated.

Read more comments on GitHub >

github_iconTop Results From Across the Web

javascript as target in kotlin multiplatform library - Stack Overflow
I'm building a Kotlin multiplatform library. One of the targets in this project is javascript. In the source set I have added a...
Read more >
Set up a Kotlin/JS project
To create a Kotlin/JS project in IntelliJ IDEA, go to File | New | Project. Then select Kotlin Multiplatform and choose a Kotlin/JS...
Read more >
Continuous delivery for your Kotlin Multiplatform library | by Yury
META — all targets are set up, but only the module with meta information for Gradle Metadata is assembled. With these target groups,...
Read more >
GraphQL Code Libraries, Tools and Services
Stars18k. LicenseMIT License. A powerful JavaScript GraphQL client, designed to work well with React, React Native, Angular 2, or just plain JavaScript.
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 benefits ......
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