microsoft / Data-Appliance-GX

Sovereign Data Sharing Appliance/Connector for enterprise scenarios
MIT License
8 stars 7 forks source link

[eclipse] include LICENSE and NOTICE file in every jar #95

Open MoritzKeppler opened 3 years ago

MoritzKeppler commented 3 years ago

Eclipse requires LICENSE and NOTICE file to be included in every software artifact that gets distributed. Suggest to include those file in every jar, even if we just distribute those as part of the fat jar inside the docker container. see https://www.eclipse.org/projects/handbook/#legaldoc-distribution

something like that inside build.gradle allprojects section should solve it:

tasks.jar {
            metaInf {
                from("${rootProject.projectDir.path}/LICENSE")
            }
        }