spring-cloud / spring-cloud-contract

Support for Consumer Driven Contracts in Spring
https://cloud.spring.io/spring-cloud-contract
Apache License 2.0
719 stars 439 forks source link

Should print resolved timestamp when downloading stubs via Aether and version is SNAPSHOT #2127

Open jakub-bochenski opened 4 months ago

jakub-bochenski commented 4 months ago

Is your feature request related to a problem? Please describe. This would be nice to make sure you are executing the expected version of contracts.

Describe the solution you'd like Now I see something like:

[INFO] Download dependency is provided - will retrieve contracts from a remote location
[INFO] Will download stubs and contracts via Aether
[INFO] Resolved version is [1.0.0-SNAPSHOT]
[INFO] Resolved artifact [com.example.contracts:service:jar:stubs:1.0.0-SNAPSHOT] to /tmp/aether-local16163885555740357167/com/example/contracts/service/1.0.0-SNAPSHOT/service-1.0.0-SNAPSHOT-stubs.jar

I'd like it to say that 1.0.0-SNAPSHOT resolved to 1.0.0-20240710.133909-10 etc.

Describe alternatives you've considered Could try inspecting the files under /tmp not sure if maven metadata is even there. You have to have access to the files though, while you might only see the build log.