Commit Graph

523 Commits

Author SHA1 Message Date
Marcin Grzejszczak
0e359f9799 Merge branch '2.1.x' 2019-08-30 15:37:43 +02:00
Marcin Grzejszczak
b7b6a22c5f Fixed formatting 2019-08-30 15:37:31 +02:00
Alican Akkus
bbb8877d40 fixes: #1160 2019-08-30 15:12:35 +02:00
Marcin Grzejszczak
6d23f75fd0 Merge branch 'AlicanAkkus-master' 2019-08-30 15:12:06 +02:00
Alican Akkus
06315cf9af fixes: #1160 2019-08-30 12:53:37 +03:00
Marcin Grzejszczak
551ede93fd Merge branch '2.1.x' 2019-08-30 10:08:28 +02:00
Marcin Grzejszczak
111847d91a Migrated old jersey lib 2019-08-30 10:07:50 +02:00
Marcin Grzejszczak
c2f9e3fe85 Added the explicit version for jersey 2019-08-30 09:53:00 +02:00
buildmaster
6b5d4860b9 Going back to snapshots 2019-08-14 16:21:05 +00:00
buildmaster
16902f4338 Update SNAPSHOT to 2.2.0.M2 2019-08-14 16:07:47 +00:00
anatoliy-balakirev
ad9eefd0f5 Add incremental build support to gradle plugin (#1165)
In order to make it working - I had to define clear input and output
params for each gradle task.
As part of this task I've also cleaned up some services to define clear
inputs instead of generic `ContractVerifierConfigProperties`.

Fixes gh-1133
2019-08-14 10:48:15 +02:00
Marcin Grzejszczak
706044bfe5 Added support for writing contracts in Java
fixes gh-1161
2019-08-12 13:40:58 +02:00
Marcin Grzejszczak
48cdd556f7 Updated the docs for the stubs protocol 2019-08-07 21:38:14 +02:00
Marcin Grzejszczak
24f8930237 Merge branch 'Buzzardo-new_docs'
fixes gh-1140
fixes gh-1157
2019-08-07 10:59:06 +02:00
Marcin Grzejszczak
2be3d0ab86 Added the option "inProgress" to the contract
without this change we can't have a contract that will generate a stub but not a test. Of course that's for a reason since it's overriding the very essence of contract test.
with this change we assume that the users know what they're doing and that they will use this flag rarerly. Cause it means that you can have a false positive.

related to gh-881
2019-08-06 15:39:32 +02:00
Marcin Grzejszczak
4ae133a0f8 Add a switch to fail on no stubs (#1153)
* Add a switch to fail on no stubs

without this change we throw an exception if no stubs / contracts were found
with this change we catch exceptions from aether stub downloader and if there are no stubs found whatsover, and a switch is set to fail in that case, then we do throw an exception that no stubs / contracts were found

fixes gh-895
2019-08-06 11:54:52 +02:00
Marcin Grzejszczak
dbb1af8d98 Generate stubs at runtime (#1152)
* Generate stubs at runtime

without this change the producer side must publish the stubs for the consumer side to use them
with this change the consumer can toggle a switch so that the stubs get generated at runtime. This might of course lead to false positivies but we assume that the users know what they're doing

fixes gh-881
2019-08-05 10:44:35 +02:00
Marcin Grzejszczak
34af2fcc58 Added support for the stubs:// protocol
Currently Stub Runner can fetch a JAR, unpack it and only then pick the contract and stubs. Sometimes, what you want to achieve, is to point to a given folder where the stubs are already unpacked. Another option is a multimodule project, where the stubs are generated and then the user would like to just reference those instead of installing a JAR in a local m2.

With this change we suggest adding a protocol called stubs that would allow to define a path where the unpacked contracts and stub lay.

fixes gh-1150
2019-08-02 17:24:44 +02:00
Marcin Grzejszczak
3d89adcf88 Working docs 2019-07-25 14:40:21 +02:00
Marcin Grzejszczak
93c520ba0f Merge branch '2.1.x' 2019-07-08 15:48:30 +02:00
Marcin Grzejszczak
ba95b57f94 Added a guard for versions without a dot; fixes gh-1115 2019-07-08 15:48:21 +02:00
Marcin Grzejszczak
6b9e377487 Rewriting to java (#1131)
* Rewritting to java

- rewritten a lot of Spring Cloud Contract Spec module to Java
- extracted all Groovy stuff to a separate package
- will now continue writing extension modules
- spring-cloud-contract-spec will be written purely in java
- spring-cloud-contract-spec-groovy will have Groovy extensions

fixes gh-1130
2019-07-08 14:15:21 +02:00
buildmaster
1d56bdd1d7 Going back to snapshots 2019-07-03 20:38:29 +00:00
buildmaster
880c7bdb54 Update SNAPSHOT to 2.2.0.M1 2019-07-03 20:31:51 +00:00
Marcin Grzejszczak
78e3c08c32 Bumps Groovy to 2.5.7 and Gradle to 5.5; fixes gh-1046 2019-07-03 10:42:28 +02:00
Olga Maciaszek-Sharma
954ddfb3d5 Merge branch '2.1.x'
# Conflicts:
#	docker/pom.xml
#	docker/spring-cloud-contract-docker/pom.xml
#	docker/spring-cloud-contract-docker/project/gradle.properties
#	docker/spring-cloud-contract-stub-runner-docker/pom.xml
#	docs/pom.xml
#	pom.xml
#	samples/pom.xml
#	samples/standalone/contracts/com/example/server/pom.xml
#	samples/standalone/dsl/http-client/pom.xml
#	samples/standalone/dsl/http-server/gradle.properties
#	samples/standalone/dsl/http-server/pom.xml
#	samples/standalone/dsl/pom.xml
#	samples/standalone/messaging/pom.xml
#	samples/standalone/messaging/stream-sink/gradle.properties
#	samples/standalone/messaging/stream-sink/pom.xml
#	samples/standalone/messaging/stream-source/gradle.properties
#	samples/standalone/messaging/stream-source/pom.xml
#	samples/standalone/pact/pact-http-client/pom.xml
#	samples/standalone/pact/pact-http-server/gradle.properties
#	samples/standalone/pact/pact-http-server/pom.xml
#	samples/standalone/pact/pom.xml
#	samples/standalone/pom.xml
#	samples/standalone/restdocs/http-client/gradle.properties
#	samples/standalone/restdocs/http-client/pom.xml
#	samples/standalone/restdocs/http-server/gradle.properties
#	samples/standalone/restdocs/http-server/pom.xml
#	samples/standalone/restdocs/pom.xml
#	samples/standalone/webclient/http-client/gradle.properties
#	samples/standalone/webclient/http-client/pom.xml
#	samples/standalone/webclient/http-server/gradle.properties
#	samples/standalone/webclient/http-server/pom.xml
#	samples/standalone/webclient/pom.xml
#	samples/standalone/yml/http-client/pom.xml
#	samples/standalone/yml/http-server/gradle.properties
#	samples/standalone/yml/http-server/pom.xml
#	samples/standalone/yml/pom.xml
#	samples/wiremock-jetty/pom.xml
#	samples/wiremock-native/pom.xml
#	samples/wiremock-tomcat/pom.xml
#	samples/wiremock-undertow-ssl/pom.xml
#	samples/wiremock-undertow/pom.xml
#	samples/wiremock/pom.xml
#	spring-cloud-contract-dependencies/pom.xml
#	spring-cloud-contract-shade/pom.xml
#	spring-cloud-contract-spec/pom.xml
#	spring-cloud-contract-starters/pom.xml
#	spring-cloud-contract-starters/spring-cloud-starter-contract-stub-runner-jetty/pom.xml
#	spring-cloud-contract-starters/spring-cloud-starter-contract-stub-runner/pom.xml
#	spring-cloud-contract-starters/spring-cloud-starter-contract-verifier/pom.xml
#	spring-cloud-contract-stub-runner-boot/pom.xml
#	spring-cloud-contract-stub-runner/pom.xml
#	spring-cloud-contract-tools/pom.xml
#	spring-cloud-contract-tools/spring-cloud-contract-converters/pom.xml
#	spring-cloud-contract-tools/spring-cloud-contract-gradle-plugin/gradle.properties
#	spring-cloud-contract-tools/spring-cloud-contract-gradle-plugin/pom.xml
#	spring-cloud-contract-tools/spring-cloud-contract-gradle-plugin/src/test/resources/functionalTest/bootSimple/gradle.properties
#	spring-cloud-contract-tools/spring-cloud-contract-gradle-plugin/src/test/resources/functionalTest/sampleJerseyProject/gradle.properties
#	spring-cloud-contract-tools/spring-cloud-contract-gradle-plugin/src/test/resources/functionalTest/sampleProject/gradle.properties
#	spring-cloud-contract-tools/spring-cloud-contract-gradle-plugin/src/test/resources/functionalTest/scenarioProject/gradle.properties
#	spring-cloud-contract-tools/spring-cloud-contract-maven-plugin/pom.xml
#	spring-cloud-contract-tools/spring-cloud-contract-maven-plugin/src/test/projects/complex-configuration/pom.xml
#	spring-cloud-contract-tools/spring-cloud-contract-maven-plugin/src/test/projects/different-module-configuration/module/pom.xml
#	spring-cloud-contract-tools/spring-cloud-contract-maven-plugin/src/test/projects/plugin-extension/pom.xml
#	spring-cloud-contract-tools/spring-cloud-contract-maven-plugin/src/test/projects/spring-boot-groovy/pom.xml
#	spring-cloud-contract-tools/spring-cloud-contract-maven-plugin/src/test/projects/spring-boot-java/pom.xml
#	spring-cloud-contract-tools/spring-cloud-contract-pact/pom.xml
#	spring-cloud-contract-verifier/pom.xml
#	spring-cloud-contract-wiremock/pom.xml
#	tests/pom.xml
#	tests/samples-messaging-amqp/pom.xml
#	tests/samples-messaging-camel/pom.xml
#	tests/samples-messaging-integration/pom.xml
#	tests/samples-messaging-stream/pom.xml
#	tests/spring-cloud-contract-stub-runner-amqp/pom.xml
#	tests/spring-cloud-contract-stub-runner-boot-eureka/pom.xml
#	tests/spring-cloud-contract-stub-runner-boot-zookeeper/pom.xml
#	tests/spring-cloud-contract-stub-runner-camel/pom.xml
#	tests/spring-cloud-contract-stub-runner-context-path/pom.xml
#	tests/spring-cloud-contract-stub-runner-integration/pom.xml
#	tests/spring-cloud-contract-stub-runner-moco-contract-jar/pom.xml
#	tests/spring-cloud-contract-stub-runner-moco/pom.xml
#	tests/spring-cloud-contract-stub-runner-stream/pom.xml
2019-06-27 15:26:56 +02:00
buildmaster
c9af98eccd Bumping versions to 2.1.3.BUILD-SNAPSHOT after release 2019-06-21 11:25:33 +00:00
buildmaster
d13773adc8 Going back to snapshots 2019-06-21 11:25:32 +00:00
buildmaster
d12c700d34 Update SNAPSHOT to 2.1.2.RELEASE 2019-06-21 11:10:55 +00:00
Marcin Grzejszczak
f849cb23d9 Merge branch '2.1.x' 2019-06-21 12:56:49 +02:00
Marcin Grzejszczak
0f2c01148c Fixing stream and itegration issus 2019-06-21 12:52:35 +02:00
Olga Maciaszek-Sharma
c139851901 Fix gh branch in docs. 2019-06-03 19:43:36 +02:00
Marcin Grzejszczak
2ddf8dace2 Fixed checkstyle 2019-04-25 15:06:18 +04:00
Marcin Grzejszczak
ee8ff18f6d Merge branch '2.1.x' 2019-04-25 11:20:07 +04:00
Olga Maciaszek-Sharma
1ad2704000 Remove unnecessary output channel creation. Fixes gh-1044 (#1051) 2019-04-25 09:19:18 +02:00
Marcin Grzejszczak
450b41c35f Merge branch '2.1.x' 2019-04-23 17:26:13 +04:00
Marcin Grzejszczak
fabb3d6269 Added junit5 tests 2019-04-23 17:26:05 +04:00
Marcin Grzejszczak
5fc6ec17ff Merge branch '2.1.x' 2019-04-23 12:37:01 +04:00
Marcin Grzejszczak
019f846b64 Fixed shade plugin and broken tests (still need to run junit5 tests) 2019-04-23 12:36:35 +04:00
Marcin Grzejszczak
809c925266 Merge branch '2.1.x' 2019-04-19 19:19:53 +04:00
Marcin Grzejszczak
88b7871e98 Standardized plugins and setup the JUnit5 to run JUnit4 tests too
fixes gh-1047
2019-04-19 19:19:15 +04:00
Marcin Grzejszczak
1e71a32d21 Checking the path for classpath resource; related to gh-1045 2019-04-17 08:21:08 +04:00
Marcin Grzejszczak
c15f841555 Checking the path for classpath resource; related to gh-1045 2019-04-17 08:19:58 +04:00
Marcin Grzejszczak
517bac19f4 Merge branch '2.1.x' 2019-04-16 20:24:33 +04:00
Marcin Grzejszczak
46f3dabf3b Fixed NPE 2019-04-16 20:24:21 +04:00
Marcin Grzejszczak
e53bf79780 Merge branch '2.1.x' 2019-04-16 11:09:03 +04:00
Marcin Grzejszczak
069059d412 Check the string version of the stub runner url
fixes gh-1045
2019-04-16 11:08:50 +04:00
Marcin Grzejszczak
42a2d1dfb1 Bumped Boot in gradle samples 2019-04-16 08:41:10 +04:00
Olga Maciaszek-Sharma
844c076bb7 Merge remote-tracking branch 'spring-operator/polish-urls-remaining-master'
# Conflicts:
#	README.adoc
#	docs/src/main/asciidoc/verifier_introduction.adoc
#	spring-cloud-contract-spec/src/test/groovy/org/springframework/cloud/contract/spec/internal/RegexPatternsSpec.groovy
#	spring-cloud-contract-stub-runner/src/test/java/org/springframework/cloud/contract/stubrunner/GitStubDownloaderTests.java
2019-04-01 15:25:45 +02:00
Olga Maciaszek-Sharma
e74faf68d3 Merge remote-tracking branch 'spring-operator/polish-urls-remaining-master'
# Conflicts:
#	README.adoc
#	docs/src/main/asciidoc/verifier_introduction.adoc
#	spring-cloud-contract-spec/src/test/groovy/org/springframework/cloud/contract/spec/internal/RegexPatternsSpec.groovy
#	spring-cloud-contract-stub-runner/src/test/java/org/springframework/cloud/contract/stubrunner/GitStubDownloaderTests.java
2019-04-01 15:25:05 +02:00