From d0ff4f35b758e84d76a1c283cc157a02ad81f79e Mon Sep 17 00:00:00 2001 From: Eduardo Martins Date: Wed, 6 Mar 2024 15:14:09 +0000 Subject: [PATCH] [WINDUPRULE-1043][WINDUPRULE-1044] EAP XP5 rules wrt MP Metrics and OpenTracing support removal (#1063) (cherry picked from commit 284aa84fac605e45920343423d631508e3fd14a7) --- ...microprofile_metrics_not_supported.mta.xml | 42 +++++++++++++++++++ ...oprofile_opentracing_not_supported.mta.xml | 40 ++++++++++++++++++ .../MicroProfileApplication.java | 5 +++ .../pom.xml | 20 +++++++++ .../MicroProfileApplication.java | 6 +++ .../pom.xml | 20 +++++++++ ...profile_metrics_not_supported.mta.test.xml | 23 ++++++++++ ...ile_opentracing_not_supported.mta.test.xml | 23 ++++++++++ 8 files changed, 179 insertions(+) create mode 100644 rules/rules-reviewed/eapxp/eapxp5/eapxp_microprofile_metrics_not_supported.mta.xml create mode 100644 rules/rules-reviewed/eapxp/eapxp5/eapxp_microprofile_opentracing_not_supported.mta.xml create mode 100644 rules/rules-reviewed/eapxp/eapxp5/tests/data/data-eapxp_microprofile_metrics_not_supported/MicroProfileApplication.java create mode 100644 rules/rules-reviewed/eapxp/eapxp5/tests/data/data-eapxp_microprofile_metrics_not_supported/pom.xml create mode 100644 rules/rules-reviewed/eapxp/eapxp5/tests/data/data-eapxp_microprofile_opentracing_not_supported/MicroProfileApplication.java create mode 100644 rules/rules-reviewed/eapxp/eapxp5/tests/data/data-eapxp_microprofile_opentracing_not_supported/pom.xml create mode 100644 rules/rules-reviewed/eapxp/eapxp5/tests/eapxp_microprofile_metrics_not_supported.mta.test.xml create mode 100644 rules/rules-reviewed/eapxp/eapxp5/tests/eapxp_microprofile_opentracing_not_supported.mta.test.xml diff --git a/rules/rules-reviewed/eapxp/eapxp5/eapxp_microprofile_metrics_not_supported.mta.xml b/rules/rules-reviewed/eapxp/eapxp5/eapxp_microprofile_metrics_not_supported.mta.xml new file mode 100644 index 000000000..c98e114bb --- /dev/null +++ b/rules/rules-reviewed/eapxp/eapxp5/eapxp_microprofile_metrics_not_supported.mta.xml @@ -0,0 +1,42 @@ + + + + This ruleset identifies JBoss EAP XP 3.x/4.x applications that uses MicroProfile Metrics, which is not supported on JBoss EAP XP 5.x or later. + + + + + + + + JBossEAP + EAPXP + + + + + + + + + + + IMPORT + + + + + + If you migrate your application to JBoss EAP XP 5.0 (or later), please note that MicroProfile Metrics is not supported. + + EAPXP + + + + + \ No newline at end of file diff --git a/rules/rules-reviewed/eapxp/eapxp5/eapxp_microprofile_opentracing_not_supported.mta.xml b/rules/rules-reviewed/eapxp/eapxp5/eapxp_microprofile_opentracing_not_supported.mta.xml new file mode 100644 index 000000000..4d569233d --- /dev/null +++ b/rules/rules-reviewed/eapxp/eapxp5/eapxp_microprofile_opentracing_not_supported.mta.xml @@ -0,0 +1,40 @@ + + + + This ruleset identifies JBoss EAP XP 3.x/4.x applications that uses MicroProfile OpenTracing, which is not supported on JBoss EAP XP 5.x or later. + + + + + + + + JBossEAP + EAPXP + + + + + + + + + + + + + + + If you migrate your application to JBoss EAP XP 5.0 (or later), please note that MicroProfile OpenTracing is not supported. + + EAPXP + + + + + \ No newline at end of file diff --git a/rules/rules-reviewed/eapxp/eapxp5/tests/data/data-eapxp_microprofile_metrics_not_supported/MicroProfileApplication.java b/rules/rules-reviewed/eapxp/eapxp5/tests/data/data-eapxp_microprofile_metrics_not_supported/MicroProfileApplication.java new file mode 100644 index 000000000..e7fbb825b --- /dev/null +++ b/rules/rules-reviewed/eapxp/eapxp5/tests/data/data-eapxp_microprofile_metrics_not_supported/MicroProfileApplication.java @@ -0,0 +1,5 @@ +package org.jboss.eap.xp.test; + +import org.eclipse.microprofile.metric.*; +public class MicroProfileApplication { +} \ No newline at end of file diff --git a/rules/rules-reviewed/eapxp/eapxp5/tests/data/data-eapxp_microprofile_metrics_not_supported/pom.xml b/rules/rules-reviewed/eapxp/eapxp5/tests/data/data-eapxp_microprofile_metrics_not_supported/pom.xml new file mode 100644 index 000000000..20e8857dd --- /dev/null +++ b/rules/rules-reviewed/eapxp/eapxp5/tests/data/data-eapxp_microprofile_metrics_not_supported/pom.xml @@ -0,0 +1,20 @@ + + + 4.0.0 + + + org.jboss.windup.rules.test + windup-rulesets-test-pom + 1.0.0-SNAPSHOT + + + eapxp_application + + + + org.eclipse.microprofile.metrics + microprofile-metrics-api + + + + \ No newline at end of file diff --git a/rules/rules-reviewed/eapxp/eapxp5/tests/data/data-eapxp_microprofile_opentracing_not_supported/MicroProfileApplication.java b/rules/rules-reviewed/eapxp/eapxp5/tests/data/data-eapxp_microprofile_opentracing_not_supported/MicroProfileApplication.java new file mode 100644 index 000000000..a5d070113 --- /dev/null +++ b/rules/rules-reviewed/eapxp/eapxp5/tests/data/data-eapxp_microprofile_opentracing_not_supported/MicroProfileApplication.java @@ -0,0 +1,6 @@ +package org.jboss.eap.xp.test; + +import org.eclipse.microprofile.opentracing.*; + +public class MicroProfileApplication { +} \ No newline at end of file diff --git a/rules/rules-reviewed/eapxp/eapxp5/tests/data/data-eapxp_microprofile_opentracing_not_supported/pom.xml b/rules/rules-reviewed/eapxp/eapxp5/tests/data/data-eapxp_microprofile_opentracing_not_supported/pom.xml new file mode 100644 index 000000000..5694ba202 --- /dev/null +++ b/rules/rules-reviewed/eapxp/eapxp5/tests/data/data-eapxp_microprofile_opentracing_not_supported/pom.xml @@ -0,0 +1,20 @@ + + + 4.0.0 + + + org.jboss.windup.rules.test + windup-rulesets-test-pom + 1.0.0-SNAPSHOT + + + eapxp_application + + + + org.eclipse.microprofile.opentracing + microprofile-opentracing-api + + + + \ No newline at end of file diff --git a/rules/rules-reviewed/eapxp/eapxp5/tests/eapxp_microprofile_metrics_not_supported.mta.test.xml b/rules/rules-reviewed/eapxp/eapxp5/tests/eapxp_microprofile_metrics_not_supported.mta.test.xml new file mode 100644 index 000000000..2073f6b27 --- /dev/null +++ b/rules/rules-reviewed/eapxp/eapxp5/tests/eapxp_microprofile_metrics_not_supported.mta.test.xml @@ -0,0 +1,23 @@ + + + data/data-eapxp_microprofile_metrics_not_supported/ + ../eapxp_microprofile_metrics_not_supported.mta.xml + + + + + + + + + + + + + + + + + diff --git a/rules/rules-reviewed/eapxp/eapxp5/tests/eapxp_microprofile_opentracing_not_supported.mta.test.xml b/rules/rules-reviewed/eapxp/eapxp5/tests/eapxp_microprofile_opentracing_not_supported.mta.test.xml new file mode 100644 index 000000000..2094943b4 --- /dev/null +++ b/rules/rules-reviewed/eapxp/eapxp5/tests/eapxp_microprofile_opentracing_not_supported.mta.test.xml @@ -0,0 +1,23 @@ + + + data/data-eapxp_microprofile_opentracing_not_supported/ + ../eapxp_microprofile_opentracing_not_supported.mta.xml + + + + + + + + + + + + + + + + +