Skip to content

If plugin is applied to more than one project in a multi-build project, the resulting manifest jars are incorrect #8

@Aethon

Description

@Aethon

The listener is applied at a global scope => it receives notifications from all tasks in the multi-build. If two separate build.gradle files apply the plugin, two listeners are created and they both transform each JavaExec task => the second and later end up writing a manifest jar the points to itself:

Manifest-Version: 1.0
Class-Path: file:/C:/repos/.../build/mfjars/taskName_ManifestJar.jar

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