Commit Graph

111 Commits

Author SHA1 Message Date
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
Marcin Grzejszczak
8951ea554f Fixed checking projects from root
without this change contracts are taken from a wrong directory and they tend to be always up to date in a multi module project
with this change we check the contract sources from the current project. also we've removed the up to date check

fixes #159
2016-12-20 19:12:06 +01:00
Dave Syer
fde66321b7 Merge branch '1.0.x' 2016-12-15 10:48:57 +00:00
Dave Syer
29a726e773 Add lifecycle mapping for m2e 2016-12-15 10:45:53 +00:00
Marcin Grzejszczak
faa18a69b1 Made stub downloading pluggable (#165)
* Added implementation for pluggable stub downloading
* Added docs and test for pluggable sub dowloader

fixes #165
2016-12-13 09:32:32 +01:00
Marcin Grzejszczak
980a0c9758 Depend on Dalston 2016-12-07 22:24:34 +01:00
Marcin Grzejszczak
02bd7af2cd Polish 2016-12-07 22:24:34 +01:00
Marcin Grzejszczak
57bf619471 Polish 2016-12-07 22:24:34 +01:00
Marcin Grzejszczak
3e90c1ab9d Polish 2016-12-07 22:24:34 +01:00
Marcin Grzejszczak
d69670db68 Bumped up version and polished 2016-12-07 22:24:34 +01:00
Marcin Grzejszczak
96525b2ad5 Fixed Maven tests 2016-12-07 22:24:34 +01:00
Marcin Grzejszczak
39bef2ce08 Fixed equals and hashcode 2016-12-07 22:24:34 +01:00
Marcin Grzejszczak
a328130418 WireMock done 2016-12-07 22:24:34 +01:00
Marcin Grzejszczak
01460f6d9f Fixed Groovy 2016-12-07 22:24:34 +01:00
Marcin Grzejszczak
e7619a1117 Polish 2016-12-07 22:24:34 +01:00
Marcin Grzejszczak
6602f98be6 Added option to provide pluggable implementations for stubs 2016-12-07 22:24:34 +01:00
Marcin Grzejszczak
f148c5b8bf Using factories 2016-12-07 22:24:34 +01:00
Marcin Grzejszczak
d63a557a29 Added Contract converter + Yaml example 2016-12-07 22:24:34 +01:00
Marcin Grzejszczak
d8ff715527 Bumped up version to 1.1.0 2016-12-07 14:34:56 +01:00
Marcin Grzejszczak
7a347da55a Going back to snapshots 2016-11-24 18:58:50 +01:00
Marcin Grzejszczak
c7883a0d97 Bumping version before release 2016-11-24 18:37:39 +01:00
Marcin Grzejszczak
a5642265cd Fixed the way contracts are packaged and tests are generated for plugins
the biggest problem was related with the scenario in which a jar with shared contracts is downloaded
with this change the output JAR structure is proper

fixes #156
2016-11-24 16:56:58 +01:00
Marcin Grzejszczak
c2a1efa9dc Plugins are generating tests for all contracts when using external contracts
When using contract plugins together with a shared repo with contracts we end up with creating contract tests for all the contracts. Stubs are created properly but tests generation ignores the path pattern.
With this change we fix the way tests are generated

fixes #155
2016-11-23 17:43:25 +01:00
Marcin Grzejszczak
74574b3dc6 Added exclusion on demand of files from jar
without this change you can't control what should be excluded from your folder in the output stubs jar. That way when having a common repo with contracts you had the whole target put into stubs jar
    with this change you can set e.g. `**/target/**/*.*` to exclude anything from the target folder

    fixes #145
2016-11-14 15:54:57 +01:00
Marcin Grzejszczak
42d82dca23 Prepared code for parallel run 2016-11-14 10:30:04 +01:00
Marcin Grzejszczak
235af1df1e Added the work offline switch for Gradle plugin
without this change you have to pass `contractRepositoryUrl` for the contract jar to be downloaded
with this change you can pass the `contractsWorkOffline` flag and the local maven repo will be analyzed

fixes #140
2016-11-08 17:27:43 +01:00
Marcin Grzejszczak
f4a6b4f4b1 Going back to snapshots 2016-10-17 12:22:17 +02:00