Commit Graph

558 Commits

Author SHA1 Message Date
anatoliy-balakirev
d4740706f0 Replace custom caching with Gradle's incremental build (#1187)
Replaced custom caching of the downloaded contracts with Gradle's
incremental build. After that `InitContractsTask` is not needed any
more, as its main purpose was to be a bridge between custom caching
and Gradle's one. Simplified code to download contracts is now part of
the `ContractsCopyTask`.
Also fixed `PublishStubsToScmTask` and removed incremental stuff from
there for now.

Fixes gh-1133
2019-08-28 13:13:56 +02:00
Marcin Grzejszczak
bc28ec453e Added the missing methods (for backward compatibility) 2019-08-28 10:33:11 +02:00
anatoliy-balakirev
e54fe375b0 Disable broken incremental build for InitContractsTask (#1186)
With current implementation of the `GradleContractsDownloader`, where
we have custom caching, `InitContractsTask` doesn't really need to be
incremental. Moreover, there is an issue in current implementation of
the `InitContractsTask`: it doesn't mark itself as out of date when
dynamic dependency is used (`+` or `SNAPSHOT` version). So for now just
disabling incremental build for that task.

Also restored old behaviour, where we used to always use `".*"` pattern
to define included contracts for `GenerateServerTests` task.

Also fixed minor logging issue.

Fixes gh-1133
2019-08-27 13:33:15 +02:00
Marcin Grzejszczak
ea2d6b6580 Merge branch '2.1.x' 2019-08-23 16:41:33 +02:00
Rad
347f0a7a92 GH-1180 inject project file name (#1183) 2019-08-23 16:08:48 +02:00
Marcin Grzejszczak
0ec0234470 Throwing an exception only when contract folder is empty AND there is no contract repository URL set 2019-08-23 14:02:13 +02:00
Marcin Grzejszczak
dd57966746 Added missing methods; bring back backward compatibility; fixes gh-1175 2019-08-19 09:45:51 +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
Marcin Grzejszczak
3c4772bb6f Fixed the Jotlin sample with the Gradle API 2019-08-14 12:19:53 +02:00
Marcin Grzejszczak
ebc524c87d Merge branch 'master' into feature/kotlin-contract-support 2019-08-14 10:49:35 +02: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
Tim Ysewyn
5ae10f246c Merge branch 'master' into feature/kotlin-contract-support 2019-08-13 10:03:57 +02:00
Marcin Grzejszczak
706044bfe5 Added support for writing contracts in Java
fixes gh-1161
2019-08-12 13:40:58 +02:00
Tim Ysewyn
962e626de4 Merge branch 'master' into feature/kotlin-contract-support 2019-08-10 14:05:18 +02:00
Marcin Grzejszczak
909930a6f4 Added failOnInProgress
with this change your plugin can fail the build if you have any in progress contracts

fixes gh-1156
2019-08-08 14:15:24 +02:00
Marcin Grzejszczak
875ac13427 Bumped WireMock to 2.24.1; fixes gh-1159 2019-08-08 13:00:27 +02:00
Marcin Grzejszczak
48b2b43210 Should not fail for openjdk13 2019-08-08 12:57:22 +02:00
Tim Ysewyn
05f9486852 Merge branch 'master' into feature/kotlin-contract-support 2019-08-07 23:29:55 +02:00
Marcin Grzejszczak
238aa9e3af Updated the fail on no contracts option 2019-08-07 23:08:38 +02:00
Marcin Grzejszczak
a7b62bb073 Boot version to 2.2.0.BUILD-SNAPSHOT 2019-08-06 17:25:56 +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
Tim Ysewyn
551d4dde59 Made helper functions static 2019-08-05 20:48:37 +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
d97db26001 Makes jdk13 build pass with Gradle 2019-08-04 08:14:44 +02:00
Tim Ysewyn
3e49e7f4ae Formatting 2019-08-02 12:11:13 +02:00
Tim Ysewyn
b07e50bd8d Removed unwanted changed 2019-08-02 12:09:00 +02:00
Tim Ysewyn
9935b24a25 First implementation based on existing tests 2019-08-02 11:13:45 +02:00
Marcin Grzejszczak
5e84a38377 Revert " Added support for incremental Gradle builds"
This reverts commit 31972419
2019-08-01 14:01:40 +02:00
Marcin Grzejszczak
1b94f2cedd Updated maven-archiver to 3.4.0
fixes gh-1137
2019-08-01 09:27:31 +02:00
Marcin Grzejszczak
a77a07cac7 Bumped build-helper-maven-plugin to 3.0.0
fixes gh-1149
2019-08-01 09:06:50 +02:00
Marcin Grzejszczak
31972419e9 Added support for incremental Gradle builds
fixes gh-1133
2019-07-31 23:26:28 +02:00
Marcin Grzejszczak
71f7426d48 Bumped WireMock to 2.24.0
fixes gh-1138
2019-07-26 14:52:10 +02:00
buildmaster
e181cb4a5b Bumping versions 2019-07-23 10:59:09 +00:00
Marcin Grzejszczak
ce4140a9ff Bumped boot to 2.2.0.M4 2019-07-09 10:10:37 +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
59d3f0d075 Fixed the broken build 2019-07-01 18:31:33 +02:00
Marcin Grzejszczak
8f0db8ffe2 Merge branch 'custom_stubs_classifier' of https://github.com/Dominick1993/spring-cloud-contract into Dominick1993-custom_stubs_classifier 2019-07-01 13:58:22 +02:00
Marcin Grzejszczak
d739efc50b Bumped pact to 3.6.7; fixes gh-1099 2019-06-28 17:17:32 +02:00
Marcin Grzejszczak
ad0cba8bec Merge branch '2.1.x' 2019-06-28 13:24:59 +02:00
Marcin Grzejszczak
92076e9cce Publishing to gradle plugins portal for central profile; fixes gh-1114 2019-06-28 13:24:44 +02:00
Marcin Grzejszczak
972a50265f Refactored class and method generation (#1116)
following two event storming sessions with @pilloPl and @OlgaMaciaszek and the Spring Cloud Contract community we've decided to refactor the core modules of Spring Cloud Contract Verifier.

The main idea is that the current `JavaTestGenerator`'s implementation no longer uses complex logic to generate classes and methods.

We've introduced abstractions such as:

-    class body builder (to build classes)
-    groovy and java class metadata
-    imports (for various frameworks)
-    default setup for json, xml, restassured, jaxrs
-    class annotations for spock, junit and junit5
-    field insertion e.g. for messaging
2019-06-27 23:01:37 +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
Olga Maciaszek-Sharma
282dacd5f5 Revert "Ignore flaky test."
This reverts commit 04c1115765.
2019-06-20 14:38:26 +02:00
Olga Maciaszek-Sharma
03c556df04 Ignore flaky test. 2019-06-20 14:37:59 +02:00