Skip to content

Commit 6378c88

Browse files
committed
Remove java.* packages from Import-Package headers in all jars (#4738)
... to maximize compatibility with older OSGi runtimes. Resolves #4733. (cherry picked from commit f045ef6)
1 parent 1a360f3 commit 6378c88

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

documentation/src/docs/asciidoc/release-notes/release-notes-5.13.4.adoc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,16 @@ link:{junit-framework-repo}+/milestone/101?closed=1+[5.13.4] milestone page in t
1010
repository on GitHub.
1111

1212

13+
[[release-notes-5.13.4-overall-improvements]]
14+
=== Overall Changes
15+
16+
[[release-notes-5.13.4-overall-new-features-and-improvements]]
17+
==== New Features and Improvements
18+
19+
* Remove `java.*` packages from `Import-Package` headers in all jar manifests to maximize
20+
compatibility with older OSGi runtimes.
21+
22+
1323
[[release-notes-5.13.4-junit-platform]]
1424
=== JUnit Platform
1525

gradle/plugins/common/src/main/kotlin/junitbuild.osgi-conventions.gradle.kts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,11 @@ tasks.withType<Jar>().named {
6565
# Instruct the APIGuardianAnnotations how to operate.
6666
# See https://bnd.bndtools.org/instructions/export-apiguardian.html
6767
-export-apiguardian: *;version=${'$'}{versionmask;===;${'$'}{version_cleanup;${'$'}{task.archiveVersion}}}
68+
69+
# Avoid including java packages in Import-Package header to maximize compatibility with older OSGi runtimes.
70+
# See https://bnd.bndtools.org/instructions/noimportjava.html
71+
# Issue: https://github.com/junit-team/junit-framework/issues/4733
72+
-noimportjava: true
6873
"""
6974
)
7075

0 commit comments

Comments
 (0)