Skip to content
This repository was archived by the owner on Jan 18, 2021. It is now read-only.
This repository was 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

Description

@vlsi

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedPlease contribute! We need help building this project.suggestion

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions