From 7bd02b01343d41d95511e675b9eb320f773c3659 Mon Sep 17 00:00:00 2001 From: Jendrik Johannes Date: Thu, 9 Jan 2025 13:01:13 +0100 Subject: [PATCH] build: add patching rules for 'io.micrometer' and its dependencies (#68) Signed-off-by: Jendrik Johannes --- CHANGELOG.md | 16 ++++++++++++ ....hiero.gradle.base.jpms-modules.gradle.kts | 25 +++++++++++++++++++ 2 files changed, 41 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 89896db..1469693 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,22 @@ ## Version 0.2.1 +* JPMS - add patching rule: io.prometheus:prometheus-metrics-config +* JPMS - add patching rule: io.prometheus:prometheus-metrics-core +* JPMS - add patching rule: io.prometheus:prometheus-metrics-exposition-formats +* JPMS - add patching rule: io.prometheus:prometheus-metrics-exposition-textformat +* JPMS - add patching rule: io.prometheus:prometheus-metrics-model +* JPMS - add patching rule: io.prometheus:prometheus-metrics-tracer-common +* JPMS - add patching rule: io.prometheus:prometheus-metrics-tracer-initializer +* JPMS - add patching rule: io.prometheus:prometheus-metrics-tracer-otel +* JPMS - add patching rule: io.prometheus:prometheus-metrics-tracer-otel-agent +* JPMS - add patching rule: io.prometheus:simpleclient_tracer_common +* JPMS - add patching rule: io.micrometer:micrometer-commons +* JPMS - add patching rule: io.micrometer:micrometer-core +* JPMS - add patching rule: io.micrometer:micrometer-observation +* JPMS - add patching rule: io.micrometer:micrometer-registry-prometheus +* JPMS - add patching rule: org.hdrhistogram:HdrHistogram +* JPMS - add patching rule: org.latencyutils:LatencyUtils * JPMS - remove patching rule: org.json:json ## Version 0.2.0 diff --git a/src/main/kotlin/org.hiero.gradle.base.jpms-modules.gradle.kts b/src/main/kotlin/org.hiero.gradle.base.jpms-modules.gradle.kts index 8952a80..a82e03d 100644 --- a/src/main/kotlin/org.hiero.gradle.base.jpms-modules.gradle.kts +++ b/src/main/kotlin/org.hiero.gradle.base.jpms-modules.gradle.kts @@ -194,6 +194,24 @@ extraJavaModuleInfo { module("org.eclipse.collections:eclipse-collections-api", "org.eclipse.collections.api") module("org.eclipse.collections:eclipse-collections", "org.eclipse.collections.impl") module("org.xerial.snappy:snappy-java", "org.xerial.snappy.java") + module("io.prometheus:prometheus-metrics-config", "io.prometheus.metrics.config") + module("io.prometheus:prometheus-metrics-core", "io.prometheus.metrics.core") + module( + "io.prometheus:prometheus-metrics-exposition-formats", + "io.prometheus.metrics.expositionformats" + ) + module("io.prometheus:prometheus-metrics-exposition-textformats", "io.prometheus.writer.text") + module("io.prometheus:prometheus-metrics-model", "io.prometheus.metrics.model") + module("io.prometheus:prometheus-metrics-tracer-common", "io.prometheus.metrics.tracer.common") + module( + "io.prometheus:prometheus-metrics-tracer-initializer", + "io.prometheus.metrics.tracer.initializer" + ) + module("io.prometheus:prometheus-metrics-tracer-otel", "io.prometheus.metrics.tracer.otel") + module( + "io.prometheus:prometheus-metrics-tracer-otel-agent", + "io.prometheus.metrics.tracer.otel_agent" + ) module("io.prometheus:simpleclient", "io.prometheus.simpleclient") module("io.prometheus:simpleclient_common", "io.prometheus.simpleclient_common") module("io.prometheus:simpleclient_httpserver", "io.prometheus.simpleclient.httpserver") { @@ -201,6 +219,13 @@ extraJavaModuleInfo { requireAllDefinedDependencies() requires("jdk.httpserver") } + module("io.prometheus:simpleclient_tracer_common", "io.prometheus.simpleclient.tracer.common") + module("io.micrometer:micrometer-commons", "micrometer.commons") + module("io.micrometer:micrometer-core", "micrometer.core") + module("io.micrometer:micrometer-observation", "micrometer.observation") + module("io.micrometer:micrometer-registry-prometheus", "micrometer.registry.prometheus") + module("org.hdrhistogram:HdrHistogram", "org.hdrhistogram") + module("org.latencyutils:LatencyUtils", "org.latencyutils") module( "io.netty:netty-transport-native-epoll|linux-x86_64",