Commit Graph

637 Commits

Author SHA1 Message Date
Marcin Grzejszczak
63180de4fe Bumping versions before release 2017-03-10 14:46:47 +01:00
Marcin Grzejszczak
a3c1167df4 Polish 2017-03-10 14:25:18 +01:00
Marcin Grzejszczak
2520a681c1 Polish 2017-03-10 14:22:38 +01:00
Marcin Grzejszczak
87b374c1ad Merge branch '1.0.x' 2017-03-10 14:22:00 +01:00
Marcin Grzejszczak
1502c4c7ad Updated gradle plugin build 2017-03-10 14:17:47 +01:00
Marcin Grzejszczak
220ddd85bf Bumped libs: 2017-03-07 23:11:51 +01:00
Marcin Grzejszczak
ffcca47722 Merge branch '1.0.x' 2017-03-07 22:59:29 +01:00
Marcin Grzejszczak
5d0c63f5c3 Bumped libs 2017-03-07 16:36:34 +01:00
Marcin Grzejszczak
7340f2893d Merge branch '1.0.x' 2017-02-28 14:27:30 +01:00
Marcin Grzejszczak
a4007cc3cb Updated Gradle and removed gradle deamon 2017-02-28 14:26:48 +01:00
Marcin Grzejszczak
6d1c9cb89a Merge branch '1.0.x' 2017-02-14 14:28:39 +01:00
Marcin Grzejszczak
266bc8e25e Fixing tests 2017-02-14 14:28:32 +01:00
Marcin Grzejszczak
6b561eb3b0 Merge branch '1.0.x' 2017-02-13 17:33:57 +01:00
Marcin Grzejszczak
902934f9e3 Fixed the order of tasks
without this change generate contract tests task wasn't forced to be before any test compilation tasks
with this change that's fixed

fixes #223
2017-02-13 17:32:47 +01:00
Marcin Grzejszczak
bb1cf960c8 Merge branch '1.0.x' 2017-02-10 15:54:17 +01:00
Marcin Grzejszczak
047addfe84 Fixed the missing setup of path inclusion in generateContractTests task
without this change the Gradle plugin works only by chance since the stub creation task is setting the proper paths. If you execute the task manually it will fail

fixes #222
2017-02-10 15:51:04 +01:00
Marcin Grzejszczak
f586cf298d Changing the default layout of stubs
without this change the stubs are just placed under the contracts|mappings folders. If you have many of these JARs on the classpath then you might have a problem to say which stubs belong to which server.
    with this change we're changing the default location to META-INF/groupid/artifactid/version/contract|mappings . That way you can easily discern stubs

    fixes #54
2017-02-08 14:58:04 +01:00
Marcin Grzejszczak
f34039bbfb Added SpringCloudContractAssertions
we're hiding the details related to assertions in our new abstraction over assertj assertions. That way we'll be able to add new methods in an easy way. There will be no need to create annonymous conditions etc.
2017-02-08 14:02:29 +01:00
Marcin Grzejszczak
824e00ef34 Removed adding the dependency by the Gradle plugin 2017-02-08 11:05:09 +01:00
Marcin Grzejszczak
f7582d2f14 Fixed the broken Gradle build 2017-02-07 19:03:40 +01:00
Marcin Grzejszczak
e135e618ec Polish 2017-02-02 17:16:36 +01:00
Marcin Grzejszczak
eaea0a6d21 Upgrading WireMock to 2.5.1
fixes #202
2017-02-02 17:15:04 +01:00
Marcin Grzejszczak
1e9e7a4792 Added foreward compatibility with WireMock stubs
fixes #213
2017-02-02 17:00:17 +01:00
Marcin Grzejszczak
caf0452c4b Clearing up the way dependencies are setup for Gradle plugin 2017-02-02 14:32:20 +01:00
Marcin Grzejszczak
79c6a2e72c Asserting empty array in the response (#211)
with this change we're using new JSONAssert that allows to check if an array is empty

fixes #203
2017-02-02 13:27:46 +01:00
Marcin Grzejszczak
e5b9eb9843 Asserting empty array in the response (#211)
with this change we're using new JSONAssert that allows to check if an array is empty

fixes #203
2017-02-02 13:24:10 +01:00
Marcin Grzejszczak
e36a6e2b56 Going back to snapshots 2017-01-30 11:47:27 +01:00
Marcin Grzejszczak
dfceed2ce1 Bumping versions before release 2017-01-30 11:41:56 +01:00
Marcin Grzejszczak
dc670f7f1f Merge branch '1.0.x' 2017-01-25 16:53:17 +01:00
Marcin Grzejszczak
d0149353c0 Fixed missing @Ignored import
fixes #200
2017-01-25 16:43:03 +01:00
Marcin Grzejszczak
bda72f136c Allows to use multiple stub converters
with this change all available stub converters on the classpath will be executed to convert the contract. That way you can make such a flow pass:

- from DSL input
- generate Java tests
- produce WireMock stubs
- produce Pact files

fixes #194
2017-01-16 16:23:27 +01:00
Marcin Grzejszczak
f59107fd62 Merge branch '1.0.x' 2017-01-16 13:45:59 +01:00
Marcin Grzejszczak
12aa340e46 Added an option to build the project in parallel
with this change we've added some scripts to run the build in parallel. It makes the build ~ 2 times faster

fixes #190
2017-01-16 13:05:15 +01:00
Marcin Grzejszczak
8d23d934c9 Bumped copyrights 2017-01-16 12:40:34 +01:00
Marcin Grzejszczak
22a5e44471 Pact Contract (#188)
with this change we're providing support for Pact based contracts. No longer do you have to set up your contracts using the Groovy DSL. In the same way as with the DSL you can use the Pact contracts to generate tests and the stubs on the producer side.

fixes #96
2017-01-13 18:06:32 +01:00
Marcin Grzejszczak
bacde76798 Going back to snapshots 2017-01-12 15:58:06 +01:00
Marcin Grzejszczak
bc37cc9a1a Bumping version before release 2017-01-12 15:28:20 +01:00
Marcin Grzejszczak
6ee7f0cf0d Merge branch '1.0.x' 2017-01-11 19:13:59 +01:00
Marcin Grzejszczak
2bd95b6edb Changed byValue to byEquality 2017-01-11 19:13:49 +01:00
Marcin Grzejszczak
f605237136 Merge branch '1.0.x' 2017-01-11 14:32:54 +01:00
Marcin Grzejszczak
76966a985c Added equality check to matchers 2017-01-11 14:16:53 +01:00
Marcin Grzejszczak
9543434ef7 Merge branch '1.0.x'
Stub / Test Matchers (#186)
Without this change we're forcing users to embed their dynamic properties inside the body. For some this is natural and acceptable, but especially for the users coming from the Pact world this sounds bizarre. Also some other people have a problem with remembering who the consumer / producer is etc.

With this change we're introducing the stubMatchers and testMatchers section. Thanks to this one can separate the body from defining the dynamic properties. Especially for Pact users this is more natural. Speaking of which this is a prerequisite for #96

fixes #185
2017-01-10 17:21:38 +01:00
Marcin Grzejszczak
27bf2af8fd Stub / Test Matchers (#186)
Without this change we're forcing users to embed their dynamic properties inside the body. For some this is natural and acceptable, but especially for the users coming from the Pact world this sounds bizarre. Also some other people have a problem with remembering who the consumer / producer is etc.

With this change we're introducing the stubMatchers and testMatchers section. Thanks to this one can separate the body from defining the dynamic properties. Especially for Pact users this is more natural. Speaking of which this is a prerequisite for #96

fixes #185
2017-01-10 16:47:10 +01:00
Marcin Grzejszczak
666f5a9d9d Added snapshot repos 2017-01-09 10:49:44 +01:00
Marcin Grzejszczak
2d0d06b6f6 Added snapshot repos 2017-01-09 10:48:59 +01:00
Marcin Grzejszczak
2ecb426814 Merge branch '1.0.x'
fixes #167
2016-12-28 12:52:15 +01:00
Marcin Grzejszczak
0fd91976f3 Added excludeBuildFolders property
without this change when we work with the repo with common contracts then in the logs we can see that a lot of unnecessary files are processed. Those files are related to the fact that `target` / `build` folders are created and reside in the path in which we're searching for contracts. Due to this we have duplicates in terms of converting files.
with this change we add the `excludeBuildFolders` property that is by default turned off. If you enable it in the `pom.xml` that is used by the consumers to install stubs locally then the target folder gets ignored.

fixes #167
2016-12-28 12:28:07 +01:00
Marcin Grzejszczak
4acc3ca1ee Creating missing folders if not present
without this fix sometimes when the folders are not created then exceptions occur while trying to process the project.

Related to #159
2016-12-21 14:37:38 +01:00
Marcin Grzejszczak
5a32b73f26 Creating missing folders if not present
without this fix sometimes when the folders are not created then exceptions occur while trying to process the project.

Related to #159
2016-12-21 14:36:58 +01:00
Marcin Grzejszczak
bde5270dcc Merge branch '1.0.x' 2016-12-20 19:12:29 +01:00