Skip to content

Task installShadowDist does not work with Gradle Configuration Cache enabled #775

@jvmusin

Description

@jvmusin

Shadow Version

7.1.2

Gradle Version

7.4.2

Expected Behavior

runShadow task runs with the gradle configuration cache enabled

Actual Behavior

Gradle produces an error saying the configuration cache requirements are not met by the task installShadowDist

  • Task :installShadowDist of type org.gradle.api.tasks.Sync: cannot serialize object of type 'org.gradle.api.internal.project.DefaultProject', a subtype of 'org.gradle.api.Project', as these are not supported with the configuration cache.

Gradle Build Script(s)

import org.jetbrains.kotlin.gradle.tasks.KotlinCompile

plugins {
    application
    kotlin("jvm") version "1.7.0"
    id("com.github.johnrengelman.shadow") version "7.1.2"
}

application.mainClass.set("MainKt")
repositories.mavenCentral()

tasks.withType<KotlinCompile> {
    kotlinOptions.jvmTarget = "11"
}

Sample project is here:
untitled.zip

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