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

Failure with Kotlin Multiplatform Projects with Java support #62

Closed ccjernigan closed 2 years ago

ccjernigan commented 2 years ago

Steps to Reproduce

  1. Create a Kotlin Multiplatform application module
plugins {
    kotlin("multiplatform")
    id("application")
    id("app.cash.licensee")
}

kotlin {
    jvm {
        withJava()
    }
}
  1. Run the license task

Results

Actual

* What went wrong:
A problem occurred configuring project ':app'.
> Cannot add task 'licensee' as a task with that name already exists.

Expected

Task runs as expected

Notes

This is specifically what's triggering the failure:

    jvm {
        withJava()
    }

If I remove the withJava(), then it will succeed.