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
The listener is applied at a global scope => it receives notifications from all tasks in the multi-build. If two separate
build.gradlefiles apply the plugin, two listeners are created and they both transform eachJavaExectask => the second and later end up writing a manifest jar the points to itself: