spring-cloud-contract icon indicating copy to clipboard operation
spring-cloud-contract copied to clipboard

Introduce explicit mode of stub downloading

Open marcingrzejszczak opened this issue 9 years ago • 2 comments

Currently we have a combination of workOffline, repositoryRoot

  • workOffline:true, repositoryRoot:null - pick from local maven repo
  • workOffline:false, repositoryRoot:sth - download from maven repo
  • workOffline:false, repositoryRoot:null - pick from classpath

for version 1.2.0 we could consider a Spring Boot Test style of explicitly providing an option. Local, Classpath, Maven or sth like that.

marcingrzejszczak avatar Apr 27 '17 16:04 marcingrzejszczak

Currently we are using gradle and the dependencies are downloaded to another folder that is not in the .m2/repository. Is there a way it could work offline from a local gradle repository?

hsdmiranda avatar May 24 '17 08:05 hsdmiranda

I think that you can change the repositoryRoot to point to the directory. I wonder if Aether can even work with the Gradle cache. I doubt that it would work. You can however add the dependency as a test dependency and pick it up from classpath.

marcingrzejszczak avatar May 24 '17 11:05 marcingrzejszczak