Skip to content

Commit fbe3e1a

Browse files
Enable java.* imports for OSGi Import-Package
Newer OSGi specs (R7 and R8) allow 'java.*'' imports while older ones (R6) does not. This change breaks compatibility with old tools that only support OSGi spec up to R6. Closes gh-6816
1 parent 5da5776 commit fbe3e1a

File tree

4 files changed

+0
-4
lines changed

4 files changed

+0
-4
lines changed

micrometer-commons/build.gradle

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ jar {
1616
bundle {
1717
bnd '''\
1818
Import-Package: \
19-
!java.*,\
2019
org.aspectj.*;resolution:=dynamic,\
2120
org.slf4j.*;resolution:=dynamic,\
2221
javax.annotation.*;resolution:=optional;version="${@}",\

micrometer-core/build.gradle

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ jar {
5050
bundle {
5151
bnd '''\
5252
Import-Package: \
53-
!java.*,\
5453
org.aspectj.*;resolution:=dynamic,\
5554
com.github.benmanes.caffeine.*;resolution:=dynamic;version="${@}",\
5655
net.sf.ehcache.*;resolution:=dynamic;version="${@}",\

micrometer-jakarta9/build.gradle

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ jar {
44
bundle {
55
bnd '''\
66
Import-Package: \
7-
!java.*,\
87
jakarta.jms.*;resolution:=dynamic;version="${@}",\
98
jakarta.mail.*;resolution:=dynamic;version="${@}",\
109
io.micrometer.observation.*;resolution:=dynamic;version="${@}",\

micrometer-observation/build.gradle

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ jar {
2828
bundle {
2929
bnd '''\
3030
Import-Package: \
31-
!java.*,\
3231
javax.servlet.*;resolution:=optional,\
3332
io.micrometer.context.*;resolution:=optional,\
3433
org.aspectj.*;resolution:=optional,\

0 commit comments

Comments
 (0)