Skip to content

License lambda requires gradle 4.10 #68

@passsy

Description

@passsy

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions