From d181377d5a70dbdbeff6bec229043f2ed3fb0f8f Mon Sep 17 00:00:00 2001 From: Martin Simka Date: Mon, 16 Sep 2024 15:39:20 +0200 Subject: [PATCH] [#244] drop explicit dependency on jboss-logging fixes https://github.com/wildfly-extras/creaper/issues/244 It attempts to fix issue due to current dependecy situation: * creaper has explicit dependency on jboss-logging 3.3.0.Final * jboss-logging added new methods in 3.6.0 * wildfly-core uses new methods from jboss-logging 3.6.x since 26.0.0.Beta3 which means WildFly 34 * it results in #244 Let's bring in jboss-logging transitivitely from wildfly-core to keep version aligned. ---- Originally jboss-logging dependency was added with this commit message ``` OnlineManagementClient and OfflineManagementClient now log all commands and operations they are performing. Operations (online only) are logged on the DEBUG level, commands are logged on INFO. Also, commands are now advised to provide a toString() method that is used for logging. The logging framework that is used in Creaper is JBoss Logging, because: 1. It is not actually a logging framework, it's only a facade that delegates the logging work to some logging framework that appears to be used. 2. It can detect all commonly used logging frameworks (Logback, Log4j, JUL) and one uncommon too (JBoss LogManager). 3. Creaper already depended on it transitively. Avoiding new dependencies is good. 4. It has a really small and nice API. ``` --- CHANGELOG.md | 4 +++- README.md | 5 ++++- core/pom.xml | 4 ---- pom.xml | 6 ------ 4 files changed, 7 insertions(+), 12 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4e83a719..93eaf81e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,8 @@ # Changelog -## 2.0.4 (not yet released) +## 2.1.0 (not yet released) + +- dropped explicit dependency on `jboss-logging` ## 2.0.3 (2024-09-16) diff --git a/README.md b/README.md index 8d377757..e5914ab0 100644 --- a/README.md +++ b/README.md @@ -68,6 +68,10 @@ __You have to provide both `*-controller-client` and `*-cli` yourself.__ If you want to use commands for patching, you also have to provide `wildfly-patching`. +You might need to tweak other dependencies to transitively bring +compatible `jboss-logging` from `wildfly-core` or explicitly provide +compatible version. WildFly 34 and newer requires at least `3.6.0`. + Other dependencies might be required if you're using "local" CLI operations, such as `jms-queue add ...` on WildFly 10 (it was a built-in operation in previous WildFly versions, but was moved to a separate module due to @@ -641,7 +645,6 @@ on Creaper: - `creaper-core`: - `com.google.guava:guava` - - `org.jboss.logging:jboss-logging` - `creaper-commands`: - everything from `creaper-core` - `org.codehaus.groovy:groovy` diff --git a/core/pom.xml b/core/pom.xml index 65ae1556..752ab933 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -30,10 +30,6 @@ org.wildfly.core wildfly-cli - - org.jboss.logging - jboss-logging - junit junit diff --git a/pom.xml b/pom.xml index c44640d5..e9152fb1 100644 --- a/pom.xml +++ b/pom.xml @@ -97,7 +97,6 @@ 1.6.0.Final 2.2.0.Final - 3.3.0.Final 2.0.3.Final 1.2.6 4.6.1 @@ -152,11 +151,6 @@ ${version.org.wildfly.core.wildfly-everything} provided - - org.jboss.logging - jboss-logging - ${version.org.jboss.logging.jboss-logging} -