cashapp / licensee

Gradle plugin which validates the licenses of your dependency graph match what you expect
https://cashapp.github.io/licensee/docs/1.x/
Apache License 2.0
626 stars 29 forks source link

No dependencies found with Kotlin Native #108

Closed hfhbd closed 2 years ago

hfhbd commented 2 years ago

With 1.5.0 variant support, kotlin native still does not work. Maybe they don't use variants, but something else?

plugins {
    kotlin("multiplatform") version "1.7.10"
    id("app.cash.licensee") version "1.5.0"
}

repositories {
    mavenCentral()
}

kotlin {
    linuxX64()
    macosArm64()

    sourceSets {
        commonMain {
            dependencies {
                implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4")
            }
        }
    }
}

licensee {
    allow("Apache-2.0")
}

The artifact.json file is empty, so the licensee task succeeds:

[
]

reproducer.zip

hfhbd commented 2 years ago

Nevermind, cleaning and full rebuilding the project works...