Force OSGi licenses to Apache-2.0
authorMathieu Baudier <mbaudier@argeo.org>
Mon, 20 Mar 2023 08:23:09 +0000 (09:23 +0100)
committerMathieu Baudier <mbaudier@argeo.org>
Mon, 20 Mar 2023 08:23:09 +0000 (09:23 +0100)
src/org/argeo/build/Repackage.java

index 77d708f69619c62e47fa070461955abd4550376b..c10f961002f58778af6c44b5ff741f16fa13a772 100644 (file)
@@ -1177,6 +1177,8 @@ public class Repackage {
                                spdxLicenceId = "GPL-2.0-only WITH Classpath-exception-2.0";
                        if (bundleDirName.startsWith("javax.inject."))
                                spdxLicenceId = "Apache-2.0";
+                       if (bundleDirName.startsWith("org.osgi."))
+                               spdxLicenceId = "Apache-2.0";
 
                        manifest.getMainAttributes().putValue(SPDX_LICENSE_IDENTIFIER.toString(), spdxLicenceId);
                        if (!licensesUsed.containsKey(spdxLicenceId))