diff --git a/micrometer-commons/build.gradle b/micrometer-commons/build.gradle index a23923399b..ecd68ba7a6 100644 --- a/micrometer-commons/build.gradle +++ b/micrometer-commons/build.gradle @@ -18,6 +18,7 @@ jar { bnd '''\ Import-Package: \ org.aspectj.*;resolution:=dynamic,\ + javax.annotation.*;resolution:=optional;version="${@}",\ * '''.stripIndent() } diff --git a/micrometer-core/build.gradle b/micrometer-core/build.gradle index 660e0097bc..b2aa7c85a1 100644 --- a/micrometer-core/build.gradle +++ b/micrometer-core/build.gradle @@ -58,6 +58,7 @@ jar { rx.*;resolution:=dynamic;version="${@}",\ javax.persistence.*;resolution:=dynamic;version="${@}",\ io.netty.*;resolution:=dynamic;version="${@}",\ + javax.annotation.*;resolution:=optional;version="${@}",\ * '''.stripIndent() }