Skip to content

Commit f045ef6

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

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
@@ -67,6 +67,11 @@ tasks.withType<Jar>().named {
6767
# Instruct the APIGuardianAnnotations how to operate.
6868
# See https://bnd.bndtools.org/instructions/export-apiguardian.html
6969
-export-apiguardian: *;version=${'$'}{versionmask;===;${'$'}{version_cleanup;${'$'}{task.archiveVersion}}}
70+
71+
# Avoid including java packages in Import-Package header to maximize compatibility with older OSGi runtimes.
72+
# See https://bnd.bndtools.org/instructions/noimportjava.html
73+
# Issue: https://github.com/junit-team/junit-framework/issues/4733
74+
-noimportjava: true
7075
"""
7176
)
7277

0 commit comments

Comments
 (0)