Skip to content

fails with gradle 8.13 with non public 'execute' method #93

@bertvanbrakel

Description

@bertvanbrakel

When using this with gradle 8.13, I get:

`Exception is:

org.gradle.internal.execution.WorkValidationException: A problem was found with the configuration of task ':my-app:mockmpExtractExpectKt' (type 'MocKMPExtractExpectKt').

  - Method 'execute' is private and annotated with @TaskAction.
    Reason: Annotations on private methods are ignored.

    Possible solutions:
      1. Make the method public.
      2. Annotate the public version of the method.`

fix is to make the 'execute' method public in https://github.com/kosi-libs/MocKMP/blob/main/mockmp/mockmp-gradle-plugin/src/main/kotlin/org/kodein/mock/gradle/MocKMPExtractExpectKt.kt

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions