Pil0tXia commented on code in PR #4719:
URL: https://github.com/apache/eventmesh/pull/4719#discussion_r1560529645


##########
eventmesh-connectors/eventmesh-connector-rocketmq/build.gradle:
##########
@@ -16,25 +16,33 @@
  */
 
 List rocketmq = [
+        "org.apache.rocketmq:rocketmq-acl:$rocketmq_version",
         "org.apache.rocketmq:rocketmq-client:$rocketmq_version",
-        "org.apache.rocketmq:rocketmq-broker:$rocketmq_version",
         "org.apache.rocketmq:rocketmq-common:$rocketmq_version",
-        "org.apache.rocketmq:rocketmq-store:$rocketmq_version",
-        "org.apache.rocketmq:rocketmq-namesrv:$rocketmq_version",
-        "org.apache.rocketmq:rocketmq-tools:$rocketmq_version",
-        "org.apache.rocketmq:rocketmq-remoting:$rocketmq_version",
-        "org.apache.rocketmq:rocketmq-logging:$rocketmq_version",
-        "org.apache.rocketmq:rocketmq-srvutil:$rocketmq_version",
         "org.apache.rocketmq:rocketmq-filter:$rocketmq_version",
-        "org.apache.rocketmq:rocketmq-acl:$rocketmq_version",
+        "org.apache.rocketmq:rocketmq-logging:$rocketmq_version",
+        "org.apache.rocketmq:rocketmq-remoting:$rocketmq_version",
         "org.apache.rocketmq:rocketmq-srvutil:$rocketmq_version",
-
+        "org.apache.rocketmq:rocketmq-store:$rocketmq_version",
+        "org.apache.rocketmq:rocketmq-srvutil:$rocketmq_version"
 ]
 
 dependencies {
     api project(":eventmesh-openconnect:eventmesh-openconnect-java")
     implementation project(":eventmesh-common")
     implementation rocketmq
+    implementation("org.apache.rocketmq:rocketmq-broker:$rocketmq_version") {
+        // Remove logging backend implementations
+        exclude group: 'ch.qos.logback', module: 'logback-classic'
+    }

Review Comment:
   >although nothing indicates it will ever be solved
   
   🤣
   
   >As you can see, `logback-classic` is excluded from **each** dependency.
   
   Gradle isn't Maven after all, and while the pom file generated by the 
`configurations` block isn't accurate from a Maven perspective, it does 
simplify configuration when using Dependency Lists in Gradle.
   
   So I think we'll just use the `configurations` block and keep the List 
intact in the build.gradle that uses the `List`. Other build.gradles that don't 
use the `List` keep the surgical strikes.
   
   >Do you really need `rocketmq-broker` and the other dependencies?
   
   There really is no reference to the `rocketmq-broker` package in the code. 
I'll create an issue for this, and there will be no need to make changes to 
this issue in this PR for now.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to