Commit Graph

3568 Commits

Author SHA1 Message Date
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
dependabot-preview[bot]
b12fc7ae32 Bump asm from 7.1 to 9.0 (#1526)
Bumps asm from 7.1 to 9.0.

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: Marcin Grzejszczak <marcin@grzejszczak.pl>
2020-10-01 13:56:27 +02:00
dependabot-preview[bot]
e51095d4e4 Bump checker from 3.1.1 to 3.6.1 (#1524)
Bumps [checker](https://github.com/typetools/checker-framework) from 3.1.1 to 3.6.1.
- [Release notes](https://github.com/typetools/checker-framework/releases)
- [Changelog](https://github.com/typetools/checker-framework/blob/master/changelog.txt)
- [Commits](https://github.com/typetools/checker-framework/compare/checker-framework-3.1.1...checker-framework-3.6.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-10-01 11:51:44 +02:00
dependabot-preview[bot]
8e6d0f9573 Bump camel.version from 3.4.3 to 3.5.0 (#1522)
Bumps `camel.version` from 3.4.3 to 3.5.0.

Updates `camel-spring-boot-starter` from 3.4.3 to 3.5.0

Updates `camel-spring` from 3.4.3 to 3.5.0

Updates `camel-spring-boot` from 3.4.3 to 3.5.0

Updates `camel-core` from 3.4.3 to 3.5.0

Updates `camel-kafka` from 3.4.3 to 3.5.0

Updates `camel-jackson` from 3.4.3 to 3.5.0

Updates `camel-jms` from 3.4.3 to 3.5.0

Updates `camel-activemq` from 3.4.3 to 3.5.0

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-10-01 11:51:27 +02:00
buildmaster
77fc817643 Bumping versions 2020-09-30 00:22:43 +00:00
Stessy Delcroix
a9c862f9f8 Rewrite spring-cloud-contract-pact module (#1520)
part of gh-1470
2020-09-29 18:41:30 +02:00
buildmaster
ea4bb31077 Bumping versions 2020-09-24 00:22:32 +00:00
Marcin Grzejszczak
85b3a0c966 Added missing new line 2020-09-23 11:59:15 +02:00
Marcin Grzejszczak
87cd26b562 Rerun test/stub generation when 'clean' was called; fixes gh-1514 2020-09-22 13:57:58 +02:00
Marcin Grzejszczak
21d57a42bd Fixed invalid type on message verifier 2020-09-21 17:45:24 +02:00
Marcin Grzejszczak
b738eca9f4 Fixed wrong conditional on missing beans for messaging; fixes gh-1513 2020-09-21 11:21:48 +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
Marcin Grzejszczak
8892c03ae8 Added response builder 2020-09-17 17:29:48 +02:00
Marcin Grzejszczak
d2d38cf51a Added a builder from a request 2020-09-17 17:29:48 +02:00
Marcin Grzejszczak
bd4c01a5d8 Added queryparams support for custom mode 2020-09-17 17:29:48 +02:00
Marcin Grzejszczak
5e5782f736 Scheme & Protocol 2020-09-17 17:29:48 +02:00
Marcin Grzejszczak
2121b0b1b4 Added a CUSTOM test mode for test generation 2020-09-17 17:29:48 +02:00
Marcin Grzejszczak
a629f6ba10 Merge branch '2.2.x' 2020-09-17 16:53:28 +02:00
buildmaster
ffd6574532 Bumping versions 2020-09-17 00:23:53 +00:00
buildmaster
3a1e3c9640 Bumping versions 2020-09-13 00:19:25 +00:00
Marcin Grzejszczak
adbbae446a libs-x-local to just 'x' migration. Fixes gh-1507 2020-09-11 09:59:37 +02:00
Marcin Grzejszczak
a2fac97148 Added GraphQL support (#1506)
fixes #670
2020-09-11 09:32:11 +02:00
Snyk bot
2c5b71222a fix: pom.xml to reduce vulnerabilities (#1504)
The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-JAVA-ORGAPACHEANT-569130
2020-09-10 14:18:25 +02:00
Henning Garus
e4ed93acbf Autoconfigure a basic ConnectionFactory as RabbitMockConnectionFactory (#1499)
* Autoconfigure a basic ConnectionFactory as RabbitMockConnectionFactory

Autoconfigure a barebones ConnectionFactory implementation instead of CachingConnectionFactory. CachingConnectionFactory would require additional mocking to support its transaction tracking and caching the mocked connection isn't necessary.

Fixes gh-1259

* Add Test

Co-authored-by: Henning Garus <henning.garus@exxeta.com>
2020-09-09 10:33:09 +02:00
Henning Garus
5577f722bf Autoconfigure a basic ConnectionFactory as RabbitMockConnectionFactory (#1499)
* Autoconfigure a basic ConnectionFactory as RabbitMockConnectionFactory

Autoconfigure a barebones ConnectionFactory implementation instead of CachingConnectionFactory. CachingConnectionFactory would require additional mocking to support its transaction tracking and caching the mocked connection isn't necessary.

Fixes gh-1259

* Add Test

Co-authored-by: Henning Garus <henning.garus@exxeta.com>
2020-09-09 10:32:21 +02:00
Snyk bot
a04b745344 fix: pom.xml to reduce vulnerabilities (#1503)
The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-JAVA-ORGAPACHEANT-569130
2020-09-09 09:10:15 +02:00
Lari Hotari
c27e675ba8 Support multiple WireMockConfigurationCustomizers (#1501)
- fixes #1500
2020-09-08 13:24:30 +02:00
Javier Alejandro Miño
0f338ca5a0 bug: fix validations for xml #1494 (#1495) 2020-09-07 09:07:20 +02:00
dependabot-preview[bot]
4a7a90e3f8 Bump contract.kotlin.version from 1.3.72 to 1.4.0 (#1491)
Bumps `contract.kotlin.version` from 1.3.72 to 1.4.0.

Updates `kotlin-bom` from 1.3.72 to 1.4.0
- [Release notes](https://github.com/JetBrains/kotlin/releases)
- [Changelog](https://github.com/JetBrains/kotlin/blob/v1.4.0/ChangeLog.md)
- [Commits](https://github.com/JetBrains/kotlin/compare/v1.3.72...v1.4.0)

Updates `kotlin-scripting-compiler-embeddable` from 1.3.72 to 1.4.0
- [Release notes](https://github.com/JetBrains/kotlin/releases)
- [Changelog](https://github.com/JetBrains/kotlin/blob/v1.4.0/ChangeLog.md)
- [Commits](https://github.com/JetBrains/kotlin/compare/v1.3.72...v1.4.0)

Updates `kotlin-daemon-embeddable` from 1.3.72 to 1.4.0
- [Release notes](https://github.com/JetBrains/kotlin/releases)
- [Changelog](https://github.com/JetBrains/kotlin/blob/v1.4.0/ChangeLog.md)
- [Commits](https://github.com/JetBrains/kotlin/compare/v1.3.72...v1.4.0)

Updates `kotlin-compiler-embeddable` from 1.3.72 to 1.4.0
- [Release notes](https://github.com/JetBrains/kotlin/releases)
- [Changelog](https://github.com/JetBrains/kotlin/blob/v1.4.0/ChangeLog.md)
- [Commits](https://github.com/JetBrains/kotlin/compare/v1.3.72...v1.4.0)

Updates `kotlin-maven-plugin` from 1.3.72 to 1.4.0

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-09-01 11:34:47 +02:00
dependabot-preview[bot]
58cb2256ce Bump maven-site-plugin from 3.8.2 to 3.9.1 (#1490)
Bumps [maven-site-plugin](https://github.com/apache/maven-site-plugin) from 3.8.2 to 3.9.1.
- [Release notes](https://github.com/apache/maven-site-plugin/releases)
- [Commits](https://github.com/apache/maven-site-plugin/compare/maven-site-plugin-3.8.2...maven-site-plugin-3.9.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-09-01 11:18:00 +02:00
dependabot-preview[bot]
fec70757c8 Bump wiremock-jre8-standalone from 2.27.0 to 2.27.1 (#1488)
Bumps [wiremock-jre8-standalone](https://github.com/tomakehurst/wiremock) from 2.27.0 to 2.27.1.
- [Release notes](https://github.com/tomakehurst/wiremock/releases)
- [Commits](https://github.com/tomakehurst/wiremock/compare/2.27.0...2.27.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-09-01 11:16:32 +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
Anatolii Zhmaiev
3f90880cbb Convert from groovy to java (#1482) 2020-08-26 13:43:53 +02:00
Marcin Grzejszczak
00d6154c60 Revert "Hardcoding reactor dependencies"
This reverts commit 50d69cb74c.
2020-08-25 10:38:57 +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
Anatolii Zhmaiev
130068ca41 Convert from groovy to java (#1481) 2020-08-25 08:26:14 +02:00
Marcin Grzejszczak
d8cdf442a0 Fixed broken docs 2020-08-24 15:11:59 +02:00
Marcin Grzejszczak
50d69cb74c Hardcoding reactor dependencies 2020-08-24 13:43:09 +02:00
Marcin Grzejszczak
8f12bc2ec0 Fixed reactor to 2020.0.0-SNAPSHOT 2020-08-24 10:53:29 +02:00
Anatolii Zhmaiev
883dc6a8ed Convert from groovy to java (#1478) 2020-08-23 20:51:08 +02:00
santfirax
de25234823 Convert from Groovy to Java DefaultResponseTransformer.groovy (#1477)
Co-authored-by: santiago <jomolanoper@gmail.com>
2020-08-23 20:47:05 +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
Anatolii Zhmaiev
c5d3456d3a Convert groovy to java (spring-cloud-contract-verifier module) (#1476)
* Convert groovy to java (gh-1470)

Co-authored-by: Anatolii Zhmaiev <Anatolii_Zhmaiev@epam.com>
2020-08-20 18:13:24 +02:00
Snyk bot
8f201d0c6c fix: pom.xml to reduce vulnerabilities (#1473)
The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-JAVA-COMGOOGLEGUAVA-32236
2020-08-18 12:51:03 +02:00
Stessy Delcroix
fca9b69766 Rewrite WireMockToDslConverter to Java (#1471)
* Rewrite WireMockToDslConverter to Java

* Fixes imports and code formatting

part of gh-1470
2020-08-18 11:57:22 +02:00
Marcin Grzejszczak
7e08c42e8f Fixing the build - wrong mockito version loaded 2020-08-12 15:08:39 +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