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

License lambda requires gradle 4.10 #68

Open
passsy opened this issue Oct 23, 2018 · 0 comments
Open

License lambda requires gradle 4.10 #68

passsy opened this issue Oct 23, 2018 · 0 comments

Comments

@passsy
Copy link
Contributor

passsy commented Oct 23, 2018

The license lambda requires a min version of gradle 4.10 when using kotlin to work as documented. See SAM conversion for Kotlin functions

Action<LicenseSpec> can't be converted automatically and results in this error:

license {
        ^ Type mismatch: inferred type is () -> Unit but Action<LicenseSpec> was expected

Workaround:

    license(Action{
        name = "Apache License, Version 2.0"
		// ...
    })

The workaround is less appealing but it works. Maybe this helps someone else running into this problem.

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

No branches or pull requests

1 participant