From 534382a86dfc10c53b655667bcb314c1c888beef Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Christoph=20L=C3=A4ubrich?=
Date: Sun, 10 Nov 2024 14:58:45 +0100
Subject: [PATCH] Embed the google cache dependency in the bundle
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Guava is known as a bit "problematic" dependency, as lemminx only uses
guava-cache, this can be embedded in the bundle and be made embedded
package.
This changes the used felix-bundle to bnd-maven-plugin with the
conditionalpackage to include the caching api in the generated bundle
Signed-off-by: Christoph Läubrich
---
org.eclipse.lemminx/pom.xml | 19 +++++++++++++++---
.../src/main/resources/about.html | 15 ++++++++++++++
pom.xml | 20 +++----------------
3 files changed, 34 insertions(+), 20 deletions(-)
diff --git a/org.eclipse.lemminx/pom.xml b/org.eclipse.lemminx/pom.xml
index cb2518148..3060131c8 100644
--- a/org.eclipse.lemminx/pom.xml
+++ b/org.eclipse.lemminx/pom.xml
@@ -72,13 +72,26 @@
- org.apache.felix
- maven-bundle-plugin
+ biz.aQute.bnd
+ bnd-maven-plugin
+
+
+ bnd-process
+
+ bnd-process
+
+
+
+
+
+
org.apache.maven.plugins
maven-jar-plugin
- 3.3.0
diff --git a/org.eclipse.lemminx/src/main/resources/about.html b/org.eclipse.lemminx/src/main/resources/about.html
index b31348652..b1fc5739e 100644
--- a/org.eclipse.lemminx/src/main/resources/about.html
+++ b/org.eclipse.lemminx/src/main/resources/about.html
@@ -32,6 +32,21 @@ License
code in the Content and such source code may be obtained at https://www.eclipse.org.
+
+
+ The content in the package com.google.common.cache
is
+ licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+