Skip to content

:buildSrc:generatePrecompiledScriptPluginAccessors failing due to marathon plugin #602

@ZakTaccardi

Description

@ZakTaccardi

Seeing a series of these errors:

:buildSrc:generatePrecompiledScriptPluginAccessors
org.gradle.api.plugins.InvalidPluginException: An exception occurred applying plugin request [id: 'com.malinskiy.marathon']
org.gradle.api.internal.plugins.PluginApplicationException: Failed to apply plugin 'com.malinskiy.marathon'.
org.gradle.api.UnknownTaskException: Task with name 'marathonWrapper' not found in project ':buildSrc:generatePrecompiledScriptPluginAccessors:accessors13741167371926945111'.
org.gradle.api.plugins.InvalidPluginException: An exception occurred applying plugin request [id: 'com.malinskiy.marathon']
org.gradle.api.internal.plugins.PluginApplicationException: Failed to apply plugin 'com.malinskiy.marathon'.
org.gradle.api.UnknownTaskException: Task with name 'marathonWrapper' not found in project ':buildSrc:generatePrecompiledScriptPluginAccessors:accessors1512429817489567500'.
org.gradle.api.plugins.InvalidPluginException: An exception occurred applying plugin request [id: 'com.malinskiy.marathon']
org.gradle.api.internal.plugins.PluginApplicationException: Failed to apply plugin 'com.malinskiy.marathon'.
org.gradle.api.UnknownTaskException: Task with name 'marathonWrapper' not found in project ':buildSrc:generatePrecompiledScriptPluginAccessors:accessors8459745059630063086'.

My guess is that there's some weirdness with how marathon generates plugin script accessors for precompiled kotlin gradle script plugins.

I'm guessing line in question is here:

val unpackMarathonTask = rootProject.tasks.getByName(MarathonUnpackTask.NAME, MarathonUnpackTask::class)

Note: subprojects should not be accessing the root project as this will break configuration cache support and project isolation

Gradle slack convo on this

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions