Commit Graph

519 Commits

Author SHA1 Message Date
Bastian Doetsch
2f37b46dde Fixes #1672: allow users to specify a custom build.gradle when using standalone docker image (#1695)
* pre-create directories for mounting and use /spring/cloud-contract and /contract and /spring-cloud-contract

* add documentation on how to run a customized gradle build to create tests
2021-08-10 15:59:32 +02:00
Marcin Grzejszczak
3494bc374c Fixed wrong include link; fixes gh-1658 2021-05-24 10:24:43 +02:00
Marcin Grzejszczak
75e90b02f9 Moved wiremock samples to spring cloud contract samples 2021-05-05 10:38:33 +02:00
Plamen Totev
8ab3e970b3 Fix Clone on Windows instructions (#1631)
The suggested command

git clone -c core.longPaths true https://github.com/spring-cloud/spring-cloud-contract.git

fails because Git recognizes `true` as the repo to be cloned.

Add equal sign (`=`) to fix this issue.
This way Git will properly recognize `true` as the value for `core.longPaths`
2021-03-29 08:13:47 +02:00
Ahmed Yarub Hani Al Nuaimi
6a01e29ce5 Spelling and grammar fixes (#1624)
* Spelling and grammar fixes

* Undo some changes
2021-03-29 08:12:24 +02:00
Ryan Baxter
b77e99b3d1 Aligning contract docs with the rest of spring cloud 2021-03-18 16:28:28 -04:00
Jordi Llach
44d98f9734 Fixing typo on contractsProperties (#1622)
Fixing typo on contractsProperties and adding a use case sample
2021-03-15 10:45:13 +01:00
Marcin Grzejszczak
99f3d26851 Merge branch '2.2.x' 2021-03-09 10:17:13 +01:00
Marcin Grzejszczak
0f9b1aec07 Fixed the schema link; fixes gh-1593 2021-03-09 10:13:49 +01:00
Shannon Pamperl
999bc2e4b0 Add kotlin-scripting-compiler-embeddable for Kotlin DSL and fix outdated documentation wih respect to Rest Assured. (#1617)
Fixes gh-1600
2021-03-01 09:01:09 +01:00
buildmaster
c251d06260 Going back to snapshots 2021-02-11 15:06:29 +00:00
buildmaster
16c738e94d Update SNAPSHOT to 2.2.6.RELEASE 2021-02-11 14:55:51 +00:00
Marcin Grzejszczak
fed305485c Merge branch '2.2.x' 2021-02-05 13:12:40 +01:00
bono007
9a5c5a03f1 Adds support for Kafka message keys in contracts (#1585)
* Adds support for Kafka message keys in contracts

* Updated doc to include note on Kafka key SerDes

* Removes unintentional changes from previous commit.

Fixes gh-1267
2021-02-04 13:44:10 +01:00
Olga Maciaszek-Sharma
28bd1f47d7 Merge remote-tracking branch 'origin/2.2.x'
# Conflicts:
#	samples/standalone/restdocs/http-server/build.gradle
#	tests/samples-messaging-amqp/src/main/java/com/example/RabbitManager.java
2021-01-22 10:25:46 +01:00
Utkarsh Singh
d878a91135 Update project-features.adoc (#1595)
Fixes #1594
2021-01-11 13:36:47 +01:00
bono007
4b7e85cec1 Adds support for unqualified namespaced XML content (#1590)
Adds support for unqualified namespaced XML content and fixes how qualified namespace URIs values are retrieved.

Fixes gh-1571
2021-01-08 15:06:41 +01:00
Marcin Grzejszczak
119d9bdc48 Updated project versions 2020-12-23 17:05:26 +01:00
Marcin Grzejszczak
ff1f18118e Changed the samples branch to master 2020-12-23 15:35:59 +01:00
Olga Maciaszek-Sharma
bc329767f6 Remove Ribbon references. 2020-12-18 18:23:02 +01:00
Ankur Shukla
82d0e6eb7a Added a section "Cloning the repository on Windows" for issue#1567 (#1575)
* Added a section "Cloning the repository on Windows"

* Changes to incorporate feedback from Buzzardo

* Formatting as per feedback from Buzzardo

* removing bullet points.

* Presenting user with unnumbered list for git config options

* fixing a small typo

* adding code-fences and

Co-authored-by: Ankur Shukla <ashukla@thinkanalytics.com>

fixes gh-1567
2020-12-14 22:11:13 +01:00
Marcin Grzejszczak
a5072c53e9 Merge branch '2.2.x' 2020-12-10 10:43:29 +01:00
bono007
2eff08d08e Adds info note in Wiremock docs around use of WireMock.resetToDefaultMappings (#1577)
* Adds info note in Wiremock docs around use of WireMock.resetToDefaultMappings when using '_stubs' property.

Fixes gh-1451

* Polished newly added docs w/ proper tense.
2020-12-10 10:37:44 +01:00
buildmaster
19dd0799c3 Bumping versions 2020-11-20 00:20:25 +00:00
buildmaster
eba5172f2d Bumping versions 2020-11-17 00:20:24 +00:00
Marcin Grzejszczak
e417596f78 Fixed the docs 2020-11-10 09:15:20 +01:00
Shannon Pamperl
eb66dca930 Fixes for remote contracts (#1554)
* Make contractsDslDir return null if neither directory exists at task configuration time

* Fixup docs type and make the wording a little more clear

* Allow username to be null for ls-remote command.

* Rework git commit id discovery to handle multiple uri schemes as well as fixing the bug with the MapProperty becoming finalized on first read and then not being able to further edit it (eg: in order to add git.commit)
2020-11-10 08:20:33 +01:00
Shannon Pamperl
e251dd13f3 Migrate DSL contracts to 'contractTest' source set (#1531)
* Begin migration of contract DSL
* Updates to docs relevant to moving default contracts for Gradle
* Switch to conventional lazy properties so that Gradle can automatically handle directory existence for us
2020-11-09 10:26:06 +01:00
Marcin Grzejszczak
cebcd37648 Merge branch '2.2.x' 2020-11-04 11:17:58 +01:00
Dominik Meister
692c5cf828 Option to disable '.git' suffix in git URLs (#1539)
Added stubrunner.properties.git.ensure-git-suffix to disable the automatic
addition of '.git' to git URLs.  This adds support for repositories which
don't support these kind of URLs (for example Azure DevOps).

Co-authored-by: Dominik Meister <dominik.meister@helsana.ch>
2020-10-27 17:43:12 +01:00
AshwiniKatur
81964c7a59 Provides Maven Plugin parameters documentation (#1527)
fixes #341
2020-10-17 09:04:27 +02:00
Shannon Pamperl
e91b91efba Convert Gradle plugin from Groovy to Java (#1480)
* Migrate ContractsCopyTask from Groovy to Java

* Convert code to Java

* Refactor ContractsCopyTask

* Migrate GenerateClientStubsFromDslTask from Groovy to Java.

* Refactor GenerateClientStubsFromDslTask

* Clean up configuration of stubsJar

* Migrate GenerateServerTestsTask from Groovy to Java

* Refactor GenerateServerTestsTask

* Migrate PublishStubsToScmTask from Groovy to Java

* Refactor PublishStubsToScmTask

* Remove dead code

* Add additional test to ensure merged contract repository settings works the same as it did before. Add .get() calls to trigger task configuration otherwise, we can miss errors with task configuration.

* Fixup all visibility modifiers and drop any deprecated functionality

* Migrate plugin from Groovy to Java

* Refactor plugin from Groovy to Java

* Fixup project.version where it might not be correctly available yet

* Fix tests that were broken

* Fix functional testing that was failing

* Update functional tests to ensure that up-to-date checks are running as expected

* Added comment around deleteStubsAfterTest in each of the tasks where it is used, to remind editors what the property is for.

* Enable support for build cache

* Reconcile documentation with code

* Remove TODO that has been answered

* Add documentation on how to customize the verifierStubsJar

* Fix failing test

* Allow contractsDirectory to be null

* Fix failing tests

* Move all main source code to java source set
2020-10-02 17:39:53 +02:00
Marcin Grzejszczak
6e951e60fd Editing and listing fix
Edited the new content that came in with the fix for issue 1511.
    Also fixed a code listing for JAX-RS. (The tags were misplaced,
    and the additional characters broke the listing. I also had to
    replace the tab characters with tabs.)
2020-09-18 12:29:48 +02:00
Marcin Grzejszczak
b839ebfa46 Updated metadata name 2020-09-17 18:04:27 +02:00
Marcin Grzejszczak
33c7219336 Custom mode & GRPC support 2020-09-17 17:29:48 +02:00
buildmaster
ffd6574532 Bumping versions 2020-09-17 00:23:53 +00:00
Marcin Grzejszczak
a2fac97148 Added GraphQL support (#1506)
fixes #670
2020-09-11 09:32:11 +02:00
Jay Bryant
27be9dc36e Change related to issue 1483 (#1484)
Fixes a couple of formatting issues that should be included when the
doc-generation code is moved out of a test.
2020-08-26 13:44:29 +02:00
Marcin Grzejszczak
a6b6671624 Moved metadata around 2020-08-25 10:38:32 +02:00
Marcin Grzejszczak
474ef9b1a6 Moved the metadata examples 2020-08-25 10:38:32 +02:00
Marcin Grzejszczak
d8cdf442a0 Fixed broken docs 2020-08-24 15:11:59 +02:00
Marcin Grzejszczak
a915cf102b Messaging polyglot support (#1472)
added support for AMQP, KAFKA and standalone options
2020-08-21 18:05:32 +02:00
Marcin Grzejszczak
84cfb7488a Messaging support for stub runner boot
With this change by adding --thin.profile=kafka or --thin.profile=rabbit we're able to turn on messaging support for stub runner boot.

Also for Docker, you will be able to pass MESSAGING_TYPE env var with either rabbit or kafka as a value and we'll run the messaging support for you.

fixes gh-1468
2020-08-07 17:49:10 +02:00
Shannon Pamperl
ba22c687c8 Disable stubsJar publication by default. (#1464)
Fixes gh-1168.
2020-08-07 16:01:53 +02:00
Marcin Grzejszczak
242c8208a9 Adds metadata to contracts (#1466)
fixes #1340
fixes #1078 
fixes #1406
2020-08-04 13:36:22 +02:00
buildmaster
6a68268a12 Bumping versions 2020-07-29 00:18:59 +00:00
Jay Bryant
28cce70a1f Editing pass (#1450)
Editing pass to catch up with the most recent changes.
2020-07-28 13:39:54 +02:00
Jay Bryant
678274c872 Wording changes (#1442)
Replacing some terms
2020-07-14 11:47:44 +02:00
Marcin Grzejszczak
35ecf47432 Added sybmolic links 2020-06-09 16:54:47 +02:00
Marcin Grzejszczak
0f0fc49441 Changed the symbolic link 2020-06-09 16:09:28 +02:00