Skip to content

Commit 0537383

Browse files
Rebased main
1 parent 0b81c43 commit 0537383

File tree

44 files changed

+77
-208
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+77
-208
lines changed

gradle/libs.versions.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ hystrix = "1.5.12"
3939
jackson-databind = "2.16.0"
4040
javax-cache = "1.1.1"
4141
javax-inject = "1"
42+
javax-rsapi = "2.1.1"
4243
jaxb = "2.3.1"
4344
jetty9 = "9.4.53.v20231009"
4445
jetty11 = "11.0.16"
@@ -65,6 +66,7 @@ okhttp = "5.0.0-alpha.11" # TODO is compiling against an alpha version intention
6566
postgre = "42.7.1"
6667
prometheus = "0.16.0"
6768
reactor = "2022.0.13"
69+
resteasy-netty4 = "6.2.6.Final"
6870
rest-assured = "5.4.0"
6971
signalfx = "1.0.37"
7072
slf4j = "1.7.36"
@@ -133,6 +135,7 @@ javalin = { module = "io.javalin:javalin", version = "5.6.3" }
133135
javax-cacheApi = { module = "javax.cache:cache-api", version.ref = "javax-cache" }
134136
javax-inject = { module = "javax.inject:javax.inject", version.ref = "javax-inject" }
135137
javax-servletApi = { module = "javax.servlet:javax.servlet-api", version = "4.0.1" }
138+
javax-rsapi = { module = "javax.ws.rs:javax.ws.rs-api", version.ref = "javax-rsapi" }
136139
jaxbApi = { module = "javax.xml.bind:jaxb-api", version.ref = "jaxb" }
137140
jetty9Client = { module = "org.eclipse.jetty:jetty-client", version.ref = "jetty9" }
138141
jetty9Server = { module = "org.eclipse.jetty:jetty-server", version.ref = "jetty9" }
@@ -181,6 +184,7 @@ prometheusClient = { module = "io.prometheus:simpleclient_common", version.ref =
181184
prometheusPushgateway = { module = "io.prometheus:simpleclient_pushgateway", version.ref = "prometheus" }
182185
reactorBom = { module = "io.projectreactor:reactor-bom", version.ref = "reactor" }
183186
restAssured = { module = "io.rest-assured:rest-assured", version.ref = "rest-assured" }
187+
resteasy-netty4 = { module = "org.jboss.resteasy:resteasy-netty4", version.ref = "resteasy-netty4" }
184188
retrofit2 = { module = "com.squareup.retrofit2:retrofit", version = "2.9.0" }
185189
signalfx = { module = "com.signalfx.public:signalfx-java", version.ref = "signalfx" }
186190
slf4jApi = { module = "org.slf4j:slf4j-api", version.ref = "slf4j" }

micrometer-core/build.gradle

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@ jar {
6666
dependencies {
6767
api project(":micrometer-commons")
6868
api project(":micrometer-observation")
69-
optionalApi 'javax.ws.rs:javax.ws.rs-api' // javax jax-rs
7069

7170
java11Api project(":micrometer-commons")
7271
java11Api project(":micrometer-observation")

micrometer-jakarta/build.gradle

Lines changed: 0 additions & 42 deletions
This file was deleted.

micrometer-jakarta/src/test/java/io/micrometer/jakarta/instrument/binder/NoJavaxArchitectureTests.java

Lines changed: 0 additions & 34 deletions
This file was deleted.

micrometer-jakarta9/build.gradle

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,20 @@ dependencies {
1818
api project(":micrometer-observation")
1919

2020
optionalApi 'jakarta.jms:jakarta.jms-api'
21+
optionalApi libs.javax.rsapi // jax-rs
22+
23+
// jakarta servlet
24+
optionalApi 'jakarta.servlet:jakarta.servlet-api'
25+
optionalApi 'org.apache.tomcat.embed:tomcat-embed-core:10.1.+' // can't move to dependencies.gradle, we have 2 versions of this lib (check micrometer-core)
26+
optionalApi 'org.glassfish.jersey.core:jersey-server:3.1.+' // can't move to dependencies.gradle, we have 2 versions of this lib (check micrometer-core)
2127

2228
testImplementation 'org.junit.jupiter:junit-jupiter'
2329
testImplementation 'com.tngtech.archunit:archunit-junit5'
2430
testImplementation 'org.mockito:mockito-core'
2531
testImplementation 'org.assertj:assertj-core'
32+
testImplementation 'ru.lanwen.wiremock:wiremock-junit5'
33+
testImplementation 'com.github.tomakehurst:wiremock-jre8-standalone'
34+
testImplementation libs.resteasy.netty4
35+
36+
testImplementation project(":micrometer-observation-test")
2637
}
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
package io.micrometer.jakarta.instrument.binder.http;
16+
package io.micrometer.jakarta9.instrument.binder.http;
1717

1818
import io.micrometer.common.docs.KeyName;
1919
import io.micrometer.core.instrument.binder.http.HttpObservationDocumentation.*;
20-
import io.micrometer.jakarta.instrument.binder.http.jaxrs.container.DefaultJaxRsContainerObservationConvention;
21-
import io.micrometer.jakarta.instrument.binder.http.jaxrs.client.DefaultJaxRsHttpClientObservationConvention;
22-
import io.micrometer.jakarta.instrument.binder.http.servlet.DefaultHttpServletObservationConvention;
20+
import io.micrometer.jakarta9.instrument.binder.http.jaxrs.container.DefaultJaxRsContainerObservationConvention;
21+
import io.micrometer.jakarta9.instrument.binder.http.jaxrs.client.DefaultJaxRsHttpClientObservationConvention;
22+
import io.micrometer.jakarta9.instrument.binder.http.servlet.DefaultHttpServletObservationConvention;
2323
import io.micrometer.observation.Observation.Context;
2424
import io.micrometer.observation.ObservationConvention;
2525
import io.micrometer.observation.docs.ObservationDocumentation;
@@ -29,7 +29,7 @@
2929
*
3030
* @author Brian Clozel
3131
* @author Marcin Grzejszczak
32-
* @since 1.12.0
32+
* @since 1.13.0
3333
*/
3434
public enum JakartaHttpObservationDocumentation implements ObservationDocumentation {
3535

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
package io.micrometer.jakarta.instrument.binder.http.jaxrs;
16+
package io.micrometer.jakarta9.instrument.binder.http.jaxrs;
1717

18-
import io.micrometer.jakarta.instrument.binder.http.jaxrs.client.ObservationJaxRsHttpClientFilter;
19-
import io.micrometer.jakarta.instrument.binder.http.jaxrs.client.ObservationJerseyClientInterceptor;
18+
import io.micrometer.jakarta9.instrument.binder.http.jaxrs.client.ObservationJaxRsHttpClientFilter;
19+
import io.micrometer.jakarta9.instrument.binder.http.jaxrs.client.ObservationJerseyClientInterceptor;
2020
import jakarta.ws.rs.ConstrainedTo;
2121
import jakarta.ws.rs.RuntimeType;
2222
import jakarta.ws.rs.core.FeatureContext;
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
package io.micrometer.jakarta.instrument.binder.http.jaxrs.client;
16+
package io.micrometer.jakarta9.instrument.binder.http.jaxrs.client;
1717

1818
import io.micrometer.common.KeyValues;
1919
import io.micrometer.core.instrument.binder.http.AbstractDefaultHttpClientRequestObservationConvention;
20-
import io.micrometer.jakarta.instrument.binder.http.jaxrs.container.JaxRsContainerObservationConvention;
20+
import io.micrometer.jakarta9.instrument.binder.http.jaxrs.container.JaxRsContainerObservationConvention;
2121

2222
import java.net.URI;
2323

@@ -26,7 +26,7 @@
2626
*
2727
* @author Brian Clozel
2828
* @author Marcin Grzejszczak
29-
* @since 1.12.0
29+
* @since 1.13.0
3030
*/
3131
public class DefaultJaxRsHttpClientObservationConvention extends AbstractDefaultHttpClientRequestObservationConvention
3232
implements JaxRsHttpClientObservationConvention {
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
package io.micrometer.jakarta.instrument.binder.http.jaxrs.client;
16+
package io.micrometer.jakarta9.instrument.binder.http.jaxrs.client;
1717

1818
import io.micrometer.common.lang.Nullable;
1919
import io.micrometer.observation.transport.RequestReplySenderContext;
@@ -29,7 +29,7 @@
2929
*
3030
* @author Brian Clozel
3131
* @author Marcin Grzejszczak
32-
* @since 1.12.0
32+
* @since 1.13.0
3333
*/
3434
public class JaxRsHttpClientObservationContext
3535
extends RequestReplySenderContext<ClientRequestContext, ClientResponseContext> {
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
package io.micrometer.jakarta.instrument.binder.http.jaxrs.client;
16+
package io.micrometer.jakarta9.instrument.binder.http.jaxrs.client;
1717

1818
import io.micrometer.observation.Observation;
1919
import io.micrometer.observation.ObservationConvention;
@@ -23,7 +23,7 @@
2323
*
2424
* @author Brian Clozel
2525
* @author Marcin Grzejszczak
26-
* @since 1.12.0
26+
* @since 1.13.0
2727
*/
2828
public interface JaxRsHttpClientObservationConvention extends ObservationConvention<JaxRsHttpClientObservationContext> {
2929

0 commit comments

Comments
 (0)