Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Aethon opened this issue Nov 20, 2018 · 1 comment

Comments

@Aethon
Copy link

Aethon commented Nov 20, 2018

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
@lwpk110
Copy link

lwpk110 commented Jan 4, 2019

i had a same error, if project has multi-build module, it return errs;
i think the mainifest jars name need add a module name.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants