From 38c1672cb54995fd6d80468ed2eb19430c5e514a Mon Sep 17 00:00:00 2001 From: Valentin Delaye Date: Wed, 11 Dec 2024 17:26:03 +0100 Subject: [PATCH] Optimize far jar (#445) * First jar optimization to reduce it's size * Remove some test dependencies and only include rewrite-core from CLI --- plugin-modernizer-cli/pom.xml | 17 +++++++++++++++++ plugin-modernizer-core/pom.xml | 17 ++++++++++++----- pom.xml | 9 +++++---- 3 files changed, 34 insertions(+), 9 deletions(-) diff --git a/plugin-modernizer-cli/pom.xml b/plugin-modernizer-cli/pom.xml index b48b45d5..5ece97bb 100644 --- a/plugin-modernizer-cli/pom.xml +++ b/plugin-modernizer-cli/pom.xml @@ -27,6 +27,23 @@ io.jenkins.plugin-modernizer plugin-modernizer-core ${changelist} + + + + org.openrewrite + * + + + + + + + org.openrewrite + rewrite-core + + + org.openrewrite + rewrite-xml org.slf4j diff --git a/plugin-modernizer-core/pom.xml b/plugin-modernizer-core/pom.xml index a50e4c85..a32ac174 100644 --- a/plugin-modernizer-core/pom.xml +++ b/plugin-modernizer-core/pom.xml @@ -133,16 +133,17 @@ org.openrewrite.recipe rewrite-testing-frameworks + + + org.testcontainers + testcontainers + + org.slf4j slf4j-api - - uk.org.webcompere - system-stubs-jupiter - 2.1.7 - io.jsonwebtoken jjwt-impl @@ -159,6 +160,12 @@ rewrite-test test + + uk.org.webcompere + system-stubs-jupiter + 2.1.7 + test + diff --git a/pom.xml b/pom.xml index bd25d428..1f2a02a0 100644 --- a/pom.xml +++ b/pom.xml @@ -263,10 +263,6 @@ - - org.mockito - mockito-junit-jupiter - org.junit.jupiter junit-jupiter-api @@ -282,6 +278,11 @@ mockito-core test + + org.mockito + mockito-junit-jupiter + test + org.wiremock wiremock-standalone