Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Kotlin Gradle projects #241

Closed
saschpe opened this issue Jan 25, 2023 · 0 comments · Fixed by #242
Closed

Support Kotlin Gradle projects #241

saschpe opened this issue Jan 25, 2023 · 0 comments · Fixed by #242

Comments

@saschpe
Copy link
Contributor

saschpe commented Jan 25, 2023

To generate a license report for a non-Android project, the java plugin has to be applied even for Kotlin projects. Thus, the following does not work:

plugins {
    id("com.jaredsburrows.license")
    kotlin("jvm")
}

However, non-Android projects that use Kotlin are 100% Java-compatible. The workaround is:

plugins {
    id("com.jaredsburrows.license")
    kotlin("jvm")
    java // For `license` plugin only
}
saschpe added a commit to saschpe/gradle-license-plugin that referenced this issue Jan 25, 2023
saschpe added a commit to saschpe/gradle-license-plugin that referenced this issue Jan 25, 2023
jaredsburrows pushed a commit that referenced this issue Mar 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant