dejan2609 commented on PR #19200:
URL: https://github.com/apache/kafka/pull/19200#issuecomment-2745141233

   ### Testing scenario: 
   
   1. create two `kafka-clients` versions via `./gradlew 
:clients:publishToMavenLocal -PskipSigning=true`
   - use kafka trunk and create `kafka-clients` version `4.1.0-SNAPSHOT`
   - use this PR (and change version in `gradle.properties`) in order to create 
`4.2.0-SNAPSHOT` version
   
   2. compare these two versions:
   
   ```
   dejan@dejan-HP-ProBook-450-G7:~/kafka$ diff 
~/.m2/repository/org/apache/kafka/kafka-clients/4.1.0-SNAPSHOT/kafka-clients-4.1.0-SNAPSHOT.pom
 
~/.m2/repository/org/apache/kafka/kafka-clients/4.2.0-SNAPSHOT/kafka-clients-4.2.0-SNAPSHOT.pom
 
   6c6
   <   <version>4.1.0-SNAPSHOT</version>
   ---
   >   <version>4.2.0-SNAPSHOT</version>
   ```
   
   
![image](https://github.com/user-attachments/assets/c35fc84b-07a0-4c9c-b610-5e41c6f87778)
   
   3. test these two versions created above using this helper project: 
https://github.com/dejan2609/poc-kafka-18142
   - change `kafka-clients` version in build.gradle to 4.1.0-SNAPSHOT and 
create dependency tree:
   ```
   dejan@dejan-HP-ProBook-450-G7:~/IdeaProjects/terraform/poc-kafka-18142$ 
./gradlew dependencies > 4.1.0.txt 
   change `kafka-clients` version to 4.2.0-SNAPSHOT
   ```
   - change `kafka-clients` version in build.gradle to 4.2.0-SNAPSHOT and 
create another dependency tree:
   ```
   dejan@dejan-HP-ProBook-450-G7:~/IdeaProjects/terraform/poc-kafka-18142$ 
./gradlew dependencies > 4.2.0.txt 
   ```
   - compare two dependency trees:
   ```
   dejan@dejan-HP-ProBook-450-G7:~/IdeaProjects/poc-kafka-18142$ diff 4.1.0.txt 
4.2.0.txt 
   12c12
   < \--- org.apache.kafka:kafka-clients:4.1.0-SNAPSHOT
   ---
   > \--- org.apache.kafka:kafka-clients:4.2.0-SNAPSHOT
   21c21
   < \--- org.apache.kafka:kafka-clients:4.1.0-SNAPSHOT (n)
   ---
   > \--- org.apache.kafka:kafka-clients:4.2.0-SNAPSHOT (n)
   27c27
   < \--- org.apache.kafka:kafka-clients:4.1.0-SNAPSHOT
   ---
   > \--- org.apache.kafka:kafka-clients:4.2.0-SNAPSHOT
   43c43
   < +--- org.apache.kafka:kafka-clients:4.1.0-SNAPSHOT
   ---
   > +--- org.apache.kafka:kafka-clients:4.2.0-SNAPSHOT
   71c71
   < +--- org.apache.kafka:kafka-clients:4.1.0-SNAPSHOT
   ---
   > +--- org.apache.kafka:kafka-clients:4.2.0-SNAPSHOT
   dejan@dejan-HP-ProBook-450-G7:~/IdeaProjects/poc-kafka-18142$
   ```


-- 
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]

Reply via email to