Skip to content

How to use minimize() in KotlinDSL? #469

@TobseF

Description

@TobseF

I'm build my project with the gradle kotlin-dsl.
With the hint of #317 I included it in this way:

tasks.withType<ShadowJar> {
    baseName = "app"
    classifier = ""
    version = ""
}

But how can I add the minimize() action to this config? (shadow-config-minimizing)

// Minimizing an shadow JAR
shadowJar {
  minimize()
}

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