From 5f700d220c86687c2243494c803b8996f9dc125e Mon Sep 17 00:00:00 2001 From: Thomas Watson Date: Tue, 26 Sep 2023 14:24:31 -0500 Subject: [PATCH] Handle the internal refactoring packages moving bundles The org.eclipse.jdt.internal.corext.refactoring packages have been moved to org.eclipse.jdt.core.manipulation. This change modifies the bndtools.bnd to import sub packages of org.eclipse.jdt.internal.corext.refactoring with no attributes to avoid resolution errors on the version of Eclipse that moves these packages. Signed-off-by: Thomas Watson --- Signed-off-by: Peter Kriens --- cnf/includes/bndtools.bnd | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/cnf/includes/bndtools.bnd b/cnf/includes/bndtools.bnd index b69e7b363d..86391aeb4e 100644 --- a/cnf/includes/bndtools.bnd +++ b/cnf/includes/bndtools.bnd @@ -3,10 +3,22 @@ Bundle-Copyright: Copyright (c) Neil Bartlett (2009, ${tstamp;yyyy}) and others. Bundle-DocURL: https://bndtools.org/ # Import-Package clauses for Eclipse packages +# # We use bundle-symbolic-name and bundle-version because Eclipse is # terrible at managing packages and Require-Bundle is too promiscuous. +# +# For org.eclipse.jdt.internal.corext.refactoring we do not use +# bundle-symbolic-name or bundle-version. This package is not +# considered API by the Eclipse project and therefore is free +# to move to another bundle. eclipse.importpackage: \ + org.eclipse.jdt.internal.corext.refactoring.*;version=!;ui.workbench=!;common=!;registry=!;texteditor=!;text=!,\ org.eclipse.*;bundle-symbolic-name="${@bundlesymbolicname}";bundle-version="${range;[==,+);${@bundleversion}}";version=!;ui.workbench=!;common=!;registry=!;texteditor=!;text=! # Decorate Equinox OSGi framework dependency -buildpath+.equinox: "org.eclipse.osgi";maven-scope=provided + +# Add a fixup for the Unsued import on the refactoring package from above. +# This package is only used by a small number of bundles (only bndtools.core) +-fixupmessages.eclipserefactor: "Unused Import-Package instructions: \\[org.eclipse.jdt.internal.corext.refactoring.*\\] +