Skip to content

Publish SI test binder jar as a maven artifact#1241

Closed
sobychacko wants to merge 1 commit intospring-cloud:masterfrom
sobychacko:si-binder-test-jar
Closed

Publish SI test binder jar as a maven artifact#1241
sobychacko wants to merge 1 commit intospring-cloud:masterfrom
sobychacko:si-binder-test-jar

Conversation

@sobychacko
Copy link
Copy Markdown
Contributor

@sobychacko sobychacko commented Feb 22, 2018

  • spring-cloud-stream module will build a new test-jar called spring-cloud-stream--test-binder.jar
  • This artifact contains all the classes from the package org/springframework/cloud/stream/binder/integration/
    in test source for spring-cloud-stream

The new test artifact can be used any module in core spring-cloud-stream as below:

<dependency>
       <groupId>org.springframework.cloud</groupId>
       <artifactId>spring-cloud-stream</artifactId>
       <type>test-jar</type>
       <classifier>test-binder</classifier>
</dependency>

Anywhere else outside of core spring-cloud-stream, this has to be configured as below:

<dependency>
     <groupId>org.springframework.cloud</groupId>
     <artifactId>spring-cloud-stream</artifactId>
     <version>SPRING_CLOUD_STREAM_VERSION</version>
     <type>test-jar</type>
     <scope>test</scope>
     <classifier>test-binder</classifier>
 </dependency>

Here are the contents of the artifact:

META-INF/MANIFEST.MF
META-INF/
org/
org/springframework/
org/springframework/cloud/
org/springframework/cloud/stream/
org/springframework/cloud/stream/binder/
org/springframework/cloud/stream/binder/integration/
Publish SI test binder jar as a maven artifact
META-INF/maven/
META-INF/maven/org.springframework.cloud/
META-INF/maven/org.springframework.cloud/spring-cloud-stream/
org/springframework/cloud/stream/binder/integration/SpringIntegrationProvisioner$SpringIntegrationConsumerDestination.class
org/springframework/cloud/stream/binder/integration/SpringIntegrationChannelBinder$IntegrationMessageListeningContainer.class
META-INF/maven/org.springframework.cloud/spring-cloud-stream/pom.properties
org/springframework/cloud/stream/binder/integration/SpringIntegrationChannelBinder$IntegrationBinderInboundChannelAdapter.class
org/springframework/cloud/stream/binder/integration/TargetDestination.class
org/springframework/cloud/stream/binder/integration/SampleStreamApp.class
org/springframework/cloud/stream/binder/integration/SpringIntegrationChannelBinder$IntegrationBinderInboundChannelAdapter$Listener.class
org/springframework/cloud/stream/binder/integration/SampleStreamApp$PolledConsumer.class
org/springframework/cloud/stream/binder/integration/SpringIntegrationProvisioner$SpringIntegrationProducerDestination.class
org/springframework/cloud/stream/binder/integration/SpringIntegrationProvisioner.class
org/springframework/cloud/stream/binder/integration/SpringIntegrationBinderConfiguration.class
org/springframework/cloud/stream/binder/integration/SpringIntegrationChannelBinder$1.class
org/springframework/cloud/stream/binder/integration/SourceDestination.class
org/springframework/cloud/stream/binder/integration/AbstractDestination.class
META-INF/maven/org.springframework.cloud/spring-cloud-stream/pom.xml
org/springframework/cloud/stream/binder/integration/SpringIntegrationChannelBinder.class

It is worth to point out that any transitive dependencies from this artifact need to be explicitly specified by the users.

 - spring-cloud-stream module will build a new test-jar called spring-cloud-stream-<version>-test-binder.jar
 - This artifact contains all the classes from the package org/springframework/cloud/stream/binder/integration/
   in test source for spring-cloud-stream
@codecov-io
Copy link
Copy Markdown

Codecov Report

Merging #1241 into master will increase coverage by 0.08%.
The diff coverage is n/a.

Impacted file tree graph

@@             Coverage Diff              @@
##             master    #1241      +/-   ##
============================================
+ Coverage     64.96%   65.05%   +0.08%     
- Complexity      814      817       +3     
============================================
  Files           129      129              
  Lines          3691     3691              
  Branches        531      531              
============================================
+ Hits           2398     2401       +3     
+ Misses         1020     1018       -2     
+ Partials        273      272       -1
Impacted Files Coverage Δ Complexity Δ
...gframework/cloud/stream/binder/DefaultBinding.java 55.55% <0%> (+11.11%) 7% <0%> (+3%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 28c2278...edd4fef. Read the comment docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants