eclipse / microprofile-metrics

microprofile-metrics
Apache License 2.0
100 stars 66 forks source link

Explicitly set dependency for Jakarata EE technologies used by MP Metrics #762

Closed Channyboy closed 1 year ago

Channyboy commented 1 year ago

Related to : https://github.com/eclipse/microprofile-metrics/issues/752

This PR removes the Jakarta EE 10.0.0 core API dependency in exchange to use the explicit Jakarta EE dependencies needed for MicroProfile Metrics (TCK/API).

In general, MP Metrics relies on CDI and Restful WS.

Exclusions were used in the MP Metrics pom.xmls similar to that of the Jakarta EE 10.0.0 core API ( i.e. jakarta.jakartaee-core-api)at https://repo1.maven.org/maven2/jakarta/platform/jakarta.jakartaee-core-api/10.0.0/jakarta.jakartaee-core-api-10.0.0.pom where all dependencies are excluded and only the dependencies that are needed by MP Metrics is is defined in the pom.xml (i.e. jakarta.interceptor-api and jakarta.inject-api ). This creates the lightest foot print for MP Metrics.


A proposal was provided before to import the pom.xml of the jakarta.jakartaee-core-api pom.xml. This would not work as the dependencies defined in the jakarta.jakartaee-core-api pom.xml were not within a dependencyManagement element.

Channyboy commented 1 year ago

@JanWesterkamp-iJUG