Skip to content
This repository has been archived by the owner on Jan 18, 2021. It is now read-only.

Include LICENSE to META-INF rather that to the root of the archives #878

Open
vlsi opened this issue Jul 24, 2020 · 2 comments
Open

Include LICENSE to META-INF rather that to the root of the archives #878

vlsi opened this issue Jul 24, 2020 · 2 comments
Labels
help wanted Please contribute! We need help building this project. suggestion

Comments

@vlsi
Copy link

vlsi commented Jul 24, 2020

final CopySpec license = project.copySpec(copy -> copy.from(project.getRootDir()).include("LICENSE"));

LICENSE file at the root of the jar results in collisions when fat jar is generated (e.g. in case multiple dependencies have LICENSE at the top level).

META-INF/LICENSE is more-or-less standard location for the license.

An alternative option is to make license inclusion optional.

Note: different JAR files might need different licenses (e.g. regular and fat jar), so it is not right to put the same license file everywhere.

@koral-- koral-- added help wanted Please contribute! We need help building this project. suggestion labels Jul 24, 2020
@koral--
Copy link
Member

koral-- commented Jul 24, 2020

Sounds good to me. Could you create a PR for that?

@vlsi
Copy link
Author

vlsi commented Jul 24, 2020

Ah, I'm afraid I'm migrating off Shipkit as it does not support Gradle 6, and there are weird issues with licensing :-/

I have never used Shipkit (I've just forked a project that used Shipkit for release), and it takes me too much time to figure out the way to make it working :-(

Wish you all the best 🌞 , and I would tentatively refrain filing PRs to Shipkit so far.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
help wanted Please contribute! We need help building this project. suggestion
Projects
None yet
Development

No branches or pull requests

2 participants