Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: allow multipart parts with content types #1929

Draft
wants to merge 241 commits into
base: 4.0.x
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
241 commits
Select commit Hold shift + click to select a range
dffe488
Updates to version 4.0.0-SNAPSHOT (#1747)
spencergibb Jan 14, 2022
1bedfd1
Makes the code compile
marcingrzejszczak Jan 18, 2022
7d67617
Makes the code compile
marcingrzejszczak Jan 18, 2022
ccfa6ec
Update BodyConverter.java (#1748)
Reborn4Ever Jan 19, 2022
0b136e3
Changes class to use to check presence of Spring Cloud Stream
spencergibb Jan 20, 2022
173f4c4
formatting
spencergibb Jan 26, 2022
2c26674
skip tests in stub runner
spencergibb Jan 26, 2022
4130b33
skip tests in SI sample
spencergibb Jan 26, 2022
9f4abdc
skip tests in amqp sample
spencergibb Jan 26, 2022
6c00a64
skip tests in samples
spencergibb Jan 26, 2022
395c178
skip tests in samples integration
spencergibb Jan 27, 2022
6ec842b
skip tests in samples amqp
spencergibb Jan 27, 2022
a865057
Should work without tests
marcingrzejszczak Jan 27, 2022
4129dcb
Reusing restassured from Boot
marcingrzejszczak Jan 27, 2022
2bc589e
Trying to fix the build
marcingrzejszczak Jan 27, 2022
683368f
Trying to fix the build
marcingrzejszczak Jan 27, 2022
75096df
Trying to fix the build
marcingrzejszczak Jan 27, 2022
8676089
Trying to fix the build
marcingrzejszczak Jan 27, 2022
2825d5c
Trying to fix the build
marcingrzejszczak Jan 27, 2022
01f8a22
skip antrun in docs
spencergibb Jan 27, 2022
0b04b12
skip deploy docs zip
spencergibb Jan 27, 2022
857a289
Removed eureka
marcingrzejszczak Feb 1, 2022
907ae4a
Upgraded xerces
marcingrzejszczak Feb 1, 2022
c1c8f4f
Bump xercesImpl from 2.12.0 to 2.12.2 (#1749)
dependabot[bot] Feb 2, 2022
25b59ce
Ignores failing test.
spencergibb Feb 23, 2022
b0d77aa
docs: Explain how to have multiple contracts in Groovy (#1755)
jakub-bochenski Feb 25, 2022
0930e1d
Merge branch '3.1.x'
marcingrzejszczak Mar 4, 2022
21a60b8
Updates to use new TestSocketUtils from spring-cloud-test-support
spencergibb Mar 11, 2022
1fe09d5
Updates gradle to 7.4.1
spencergibb Mar 11, 2022
1145243
Updates gradle wrapper to 7.4.1
spencergibb Mar 12, 2022
145cf4d
Upgraded Groovy to 4 and Rest Assured to 5
marcingrzejszczak Mar 25, 2022
9e155c7
Do not skip code generation on skipTest (#1759)
chicobento Mar 25, 2022
20de845
Update maven.yml
marcingrzejszczak Mar 25, 2022
d5a47e2
Upgraded camel, pact and jgit
marcingrzejszczak Mar 25, 2022
46331b7
Upgraded pact code
marcingrzejszczak Jul 16, 2021
1d8f2a5
Merge branch '3.1.x'
marcingrzejszczak Mar 25, 2022
d77d302
pins springVersion to 6.0.0-M3
spencergibb Mar 31, 2022
fa4ec27
comment out many includes for release.
spencergibb Apr 1, 2022
8faa117
Update SNAPSHOT to 4.0.0-M2
spring-builds Apr 1, 2022
d8cb1f1
Going back to snapshots
spring-builds Apr 1, 2022
1e15125
Bumping versions
spring-builds Apr 1, 2022
dfbe2f4
Merge branch '3.1.x'
marcingrzejszczak Apr 11, 2022
b7a9e29
Gradle plugin warning from GenerateClientStubsFromDslTask (#1773) (#1…
rivancic Apr 27, 2022
adc513b
Bumped RestAssured to 6.0.0
marcingrzejszczak May 4, 2022
251d4fe
Fixed checkstyle
marcingrzejszczak May 4, 2022
372fe43
Fixed samples branch for docs
marcingrzejszczak Apr 25, 2022
8c78c7f
Adding spring-cloud-stream-dependencies
Apr 27, 2022
54ccc56
Removing java-version file
Apr 27, 2022
a71bad4
#1778 properly resole query parameters for url and urlPath property i…
mzielinski May 5, 2022
109ec51
Fixed broken tests
marcingrzejszczak May 5, 2022
44c37d5
Fixed samples
marcingrzejszczak May 5, 2022
0a2ff69
Bumped jacoco maven plugin to support jdk17
marcingrzejszczak May 5, 2022
84d1706
Fixed compilation issues
marcingrzejszczak May 9, 2022
a187d70
Bumping versions
spring-builds May 9, 2022
2a66444
Uses RA 5.0.2-SNAPSHOT
marcingrzejszczak May 23, 2022
2cba183
Merge branch '3.1.x'
marcingrzejszczak May 23, 2022
64d646c
Bump actions/setup-java from 1 to 3 (#1788)
dependabot[bot] May 23, 2022
2d8403d
Merge branch '3.1.x'
marcingrzejszczak May 23, 2022
08be34d
Merge branch '3.1.x'
marcingrzejszczak May 23, 2022
c12d0eb
Bump rest assusred to 5.1.0; fixes gh-1789
marcingrzejszczak May 25, 2022
2abc7e3
Setting up jdk for codeql flow
marcingrzejszczak May 25, 2022
488d9ad
Removed the spring cloud function java compiler usage; fixes gh-1782
marcingrzejszczak May 25, 2022
e79460e
Merge branch '3.1.x'
marcingrzejszczak May 30, 2022
401456d
Update codeql.yaml
marcingrzejszczak May 31, 2022
a8af424
Made JDK17 default for Verifier Docker image
marcingrzejszczak Jun 7, 2022
7c0c8eb
Changed the invalid folder for docs samples; fixes gh-1793
marcingrzejszczak Jun 8, 2022
a1947ba
Merge branch '3.1.x'
marcingrzejszczak Jun 13, 2022
fa698f8
Fixed broken merge
marcingrzejszczak Jun 14, 2022
1ed9002
Merge branch '3.1.x'
marcingrzejszczak Jun 14, 2022
f9ca2d9
Fix invalid samples branch
marcingrzejszczak Jun 15, 2022
d4ee69f
Update SNAPSHOT to 4.0.0-M3
spring-builds Jun 15, 2022
1a6ee1e
Going back to snapshots
spring-builds Jun 15, 2022
2a2dd92
Merge branch '3.1.x'
marcingrzejszczak Jun 20, 2022
c4596d7
Merge branch '3.1.x'
marcingrzejszczak Jun 27, 2022
c05ceba
Bumping versions
spring-builds Jun 30, 2022
3aaa2a4
Bump plexus-archiver in /docker/spring-cloud-contract-stub-runner-doc…
dependabot[bot] Jul 1, 2022
52d5de1
Merge branch '3.1.x'
marcingrzejszczak Jul 1, 2022
785964e
Merge branch '3.1.x'
marcingrzejszczak Jul 11, 2022
a49c3bf
Trying to fix the build
marcingrzejszczak Jul 21, 2022
27ec2f9
Trying to fix the buikd
marcingrzejszczak Jul 21, 2022
5a075d1
Trying to fix the build
marcingrzejszczak Jul 22, 2022
4d57c75
Bumping versions
spring-builds Jul 22, 2022
04ff74a
Update SNAPSHOT to 4.0.0-M4
spring-builds Jul 29, 2022
5873dc5
Going back to snapshots
spring-builds Jul 29, 2022
d067114
Bumping versions
spring-builds Aug 3, 2022
4e444c0
Merge branch '3.1.x'
marcingrzejszczak Aug 17, 2022
fd2ff4f
Added a note about trusted and untrusted locations
marcingrzejszczak Aug 17, 2022
87454a2
Merge branch '3.1.x'
marcingrzejszczak Aug 17, 2022
11c3577
Javadoc fixed (#1810)
leaqui Aug 17, 2022
4d7b4bf
Bumping versions
spring-builds Aug 17, 2022
08bbdf1
Removed rest-assured snapshots from restdocs sample
marcingrzejszczak Aug 18, 2022
c847d19
Fix improperly accessed optional values; ServerDslProperty incorrectl…
artemy Aug 19, 2022
7f1122c
Merge branch '3.1.x'
marcingrzejszczak Aug 19, 2022
c2fef26
Removed rest-assured snapshot reference
marcingrzejszczak Aug 24, 2022
2d1e2f9
Migrated to new autoconfiguration import boot approach (#1811)
marcingrzejszczak Aug 24, 2022
9bf05e4
Merge branch '3.1.x'
marcingrzejszczak Sep 1, 2022
e61ddb8
Bumping versions
spring-builds Sep 11, 2022
17bc150
Fixed missing imports
marcingrzejszczak Sep 23, 2022
914468e
Bumping versions
spring-builds Sep 30, 2022
92ee590
Comment out restdocs sample for milestone
spencergibb Oct 5, 2022
3ad77fa
Comment out restdocs sample for milestone
spencergibb Oct 5, 2022
a32b961
Update SNAPSHOT to 4.0.0-M5
spring-builds Oct 6, 2022
f9c3305
Going back to snapshots
spring-builds Oct 6, 2022
dc43d27
Upgraded WireMock to 2.34.0
marcingrzejszczak Oct 18, 2022
ab362a3
Fixed HttpClient dependencies
marcingrzejszczak Oct 18, 2022
96f8d2d
Fixed RestDocs setup
marcingrzejszczak Oct 18, 2022
7a66b5f
Updated versions
marcingrzejszczak Oct 18, 2022
bfd1a39
Bumping versions
spring-builds Oct 18, 2022
d5390ce
Bump actions/checkout from 2 to 3 (#1826)
dependabot[bot] Oct 24, 2022
2bf4565
Bumping versions
spring-builds Oct 26, 2022
760e6dd
Update SNAPSHOT to 4.0.0-RC1
spring-builds Oct 27, 2022
320e981
Going back to snapshots
spring-builds Oct 27, 2022
211c993
Bumping versions
spring-builds Nov 1, 2022
6de10e3
Fixed kafka API
marcingrzejszczak Nov 3, 2022
42b6acf
Upgraded WireMock to 2.35.0
marcingrzejszczak Nov 9, 2022
4c6d547
Upgrade dk.brics.automaton:automaton to dk.brics:automaton
marcingrzejszczak Nov 9, 2022
028527e
Turned on tests in modules
marcingrzejszczak Nov 10, 2022
98f51e8
Updated dependencies
marcingrzejszczak Nov 10, 2022
1083d70
Updated libs in shade; fixed disabled tests
marcingrzejszczak Nov 14, 2022
eeda962
Revert "Removed eureka"
marcingrzejszczak Nov 14, 2022
fa51d6a
Brings back Eureka support, updates samples, removes mocked kafka & r…
marcingrzejszczak Nov 15, 2022
1999066
Left 1 type of messaging contract - code triggers an output
marcingrzejszczak Nov 15, 2022
265a2d8
Upgraded the wrapper jar
marcingrzejszczak Nov 15, 2022
190859e
Merge pull request #1831 from spring-cloud/polishing
marcingrzejszczak Nov 15, 2022
48a40f2
Fixed messaging docs
marcingrzejszczak Nov 15, 2022
afba16a
Makes Maven 3.6 prerequisite for Maven plugin; fixes gh-1839
marcingrzejszczak Nov 16, 2022
68bdbed
Update to the latest Eureka changes
marcingrzejszczak Nov 16, 2022
ea5755b
Added Slf4j as a compile dependency for Stub Runner Boot; fixes gh-1840
marcingrzejszczak Nov 16, 2022
efa3a36
Updated Gradle to 7.5.1; fixes gh-1841
marcingrzejszczak Nov 16, 2022
1bc1f84
Bumped Kotlin to 1.6.21 - aligns with Gradle; fixes gh-1842
marcingrzejszczak Nov 16, 2022
96b3d27
Bumping versions
spring-builds Nov 16, 2022
84487c1
Bumped jgit; fixes gh-1843
marcingrzejszczak Nov 16, 2022
cff332f
Bumps restassured to 5.2.0; fixes gh-1843
marcingrzejszczak Nov 16, 2022
dc581e8
Removing the Pact integration; fixes gh-1845
marcingrzejszczak Nov 17, 2022
cda1ab3
Update SNAPSHOT to 4.0.0-RC2
spring-builds Nov 17, 2022
773f285
Going back to snapshots
spring-builds Nov 17, 2022
b2809f8
NoOpStub messages is typed
marcingrzejszczak Nov 18, 2022
edc4410
Merge branch '3.1.x'
marcingrzejszczak Nov 18, 2022
44977aa
Removes Gradle plugin's src/test/resources/contracts checking; fixes …
marcingrzejszczak Nov 18, 2022
65a6c5e
Trying to fix bean types for messaging
marcingrzejszczak Nov 18, 2022
a5b97e6
Fixes messaging
marcingrzejszczak Nov 18, 2022
ff7cb63
Fixed
marcingrzejszczak Nov 18, 2022
3f0fd7a
Fixes java contract runtime compilation; fixes gh-1849
marcingrzejszczak Nov 21, 2022
3f73d99
Merge branch '3.1.x'
marcingrzejszczak Nov 22, 2022
68372d5
Bumping versions
spring-builds Nov 23, 2022
063171b
Bumping versions
spring-builds Nov 29, 2022
7b876aa
Gradle plugin - improve compatibility with Configuration Cache (#1825)
aSemy Nov 29, 2022
97e43b0
Fixing stream binder
marcingrzejszczak Dec 1, 2022
c990575
Fix spring-cloud-stream-test-binder dependency in samples.
OlgaMaciaszek Dec 1, 2022
888e309
Update SNAPSHOT to 4.0.0-RC3
spring-builds Dec 1, 2022
aa9be37
Going back to snapshots
spring-builds Dec 1, 2022
92689a5
Updates springVersion to 6.0.0
spencergibb Dec 15, 2022
04e8bb6
Adding spring-cloud-build-dependencies to spring-cloud-contract-stub…
Dec 15, 2022
0d76154
Fixing spring cloud build version
Dec 15, 2022
cf2096b
Adding spring-cloud-build dependency
Dec 16, 2022
b9c1392
Adding addition spring-cloud-build dependencies
Dec 16, 2022
16c76e5
Adding more dependencies to try to make GA release work
marcingrzejszczak Dec 16, 2022
e3a0ba9
Adds thin repo property to stub runner docker
marcingrzejszczak Dec 16, 2022
aedf56c
Temporarilly removes gradle plugin publishing
marcingrzejszczak Dec 16, 2022
b9b9896
Trying to fix stub runner docker
marcingrzejszczak Dec 16, 2022
01b0a5d
Skipping docker for GA releases
marcingrzejszczak Dec 16, 2022
7d387e2
Update SNAPSHOT to 4.0.0
spring-builds Dec 16, 2022
6b8ab3a
Going back to snapshots
spring-builds Dec 16, 2022
ff8d6e1
Bumping versions to 4.0.1-SNAPSHOT after release
spring-builds Dec 16, 2022
f4d06e5
Revert "Skipping docker for GA releases"
marcingrzejszczak Dec 16, 2022
4e484cd
Revert "Temporarilly removes gradle plugin publishing"
marcingrzejszczak Dec 16, 2022
925c663
Updates spring-boot to 3.0.1-SNAPSHOT
spencergibb Dec 19, 2022
6ad6b63
Restore docker setup. Fix test. (#1857)
OlgaMaciaszek Dec 20, 2022
527255b
Bumping versions
spring-builds Dec 20, 2022
8b5b3ab
Updated versions
marcingrzejszczak Jan 19, 2023
251c1e9
Bumping versions
spring-builds Jan 20, 2023
44fc4eb
Revert "Revert "Skipping docker for GA releases""
ryanjbaxter Jan 25, 2023
37f5bf3
Update SNAPSHOT to 4.0.1
spring-builds Jan 25, 2023
7d10fee
Going back to snapshots
spring-builds Jan 25, 2023
2897b6a
Bumping versions to 4.0.2-SNAPSHOT after release
spring-builds Jan 25, 2023
e8952d4
Revert "Revert "Revert "Skipping docker for GA releases"""
ryanjbaxter Jan 26, 2023
3c9e17d
Bumping versions
spring-builds Feb 9, 2023
d7611ff
Fix docker image creation.
OlgaMaciaszek Feb 13, 2023
65b463e
Remove unnecessary build property.
OlgaMaciaszek Feb 13, 2023
d4967d8
Attach up-to-date stubs to maven (#1871)
NewAgeCZ Feb 20, 2023
33a301a
Merge branch '3.1.x'
marcingrzejszczak Feb 20, 2023
07bb994
Merge branch '3.1.x'
marcingrzejszczak Mar 2, 2023
5f14f23
Merge branch '3.1.x'
marcingrzejszczak Mar 9, 2023
05b3ee7
Merge branch '3.1.x'
marcingrzejszczak Mar 14, 2023
5343cb9
Relaxed SSL validation with RestTemplate interceptors (#1869)
nkolosnjaji Mar 21, 2023
90af76d
Disable Docker build
ryanjbaxter Mar 28, 2023
b000f6f
Disable deploy profile
ryanjbaxter Mar 28, 2023
0d7932b
Update SNAPSHOT to 4.0.2
spring-builds Mar 28, 2023
28533c4
Going back to snapshots
spring-builds Mar 28, 2023
15d412f
Bumping versions to 4.0.3-SNAPSHOT after release
spring-builds Mar 28, 2023
0fa9028
Revert "Disable deploy profile"
OlgaMaciaszek Mar 29, 2023
0d9669f
Bumping versions
spring-builds Mar 30, 2023
e4d19d8
Adds support to specify priority and allow for template override (#1882)
wwadge Apr 6, 2023
75b1fb6
Adds some supporting documentation regarding overriding the priority …
wwadge Apr 6, 2023
81e3d65
Use Gradle JVM Test Suite Plugin (#1887)
shanman190 Apr 18, 2023
ccabfb3
Improving observability when debugging broken wiremock configurations…
geirhede Apr 20, 2023
74f0841
Merge branch '3.1.x'
marcingrzejszczak Apr 20, 2023
5485554
Merge branch '3.1.x'
marcingrzejszczak Apr 26, 2023
317aa65
Merge branch '3.1.x'
marcingrzejszczak Apr 26, 2023
c04b110
Merge branch '3.1.x'
marcingrzejszczak Apr 26, 2023
c6f948c
Fixed issue with .. jsonpath operator; fixes gh-1754
marcingrzejszczak Apr 26, 2023
35ce270
Merge branch '3.1.x'
spencergibb Apr 26, 2023
9fa4fc9
Merge branch '3.1.x'
marcingrzejszczak Apr 27, 2023
9a9b6ac
Merge branch '3.1.x'
marcingrzejszczak Apr 27, 2023
37c53cb
Merge branch '3.1.x'
marcingrzejszczak Apr 27, 2023
d553abe
Merge branch '3.1.x'
marcingrzejszczak Apr 27, 2023
cc9dd43
Update getting-started.adoc
marcingrzejszczak May 4, 2023
aee038e
Update _project-features-contract.adoc
marcingrzejszczak May 4, 2023
f4ef394
Adds beans for test that has eureka client and server together
spencergibb May 24, 2023
bb76529
Disabling deploy profile for release
ryanjbaxter May 24, 2023
a248161
Update SNAPSHOT to 4.0.3
spring-builds May 24, 2023
615af9f
Going back to snapshots
spring-builds May 24, 2023
70c77dd
Bumping versions to 4.0.4-SNAPSHOT after release
spring-builds May 24, 2023
6c5a6e6
Bumping versions
spring-builds May 25, 2023
730c1f1
Bumping versions
spring-builds May 26, 2023
066740b
Update Contract.java
marcingrzejszczak Jun 14, 2023
fc8389d
Merge branch '3.1.x' into 4.0.x
marcingrzejszczak Jun 15, 2023
f89861b
Merge branch '3.1.x' into 4.0.x
marcingrzejszczak Jun 15, 2023
ae271b1
Bumping versions
spring-builds Jun 17, 2023
59944ec
Merge branch '3.1.x' into 4.0.x
marcingrzejszczak Jun 19, 2023
3963700
Merge branch '3.1.x' into 4.0.x
marcingrzejszczak Jun 26, 2023
82f40d0
Set slf4j version to 2.0.7
marcingrzejszczak Jun 26, 2023
42873a2
Merge branch '3.1.x' into 4.0.x
marcingrzejszczak Jun 26, 2023
38fb1bd
Working around Gradle bugs; fixes gh-1910
marcingrzejszczak Jun 26, 2023
2d11471
Merge branch '3.1.x' into 4.0.x
marcingrzejszczak Jun 29, 2023
80359e2
Remove `useJUnitPlatform()` as this is the default from the Gradle pl…
shanman190 Jul 3, 2023
a6f0e9a
Merge branch '3.1.x' into 4.0.x
marcingrzejszczak Jul 3, 2023
c130aec
Upgrades Kotlin to 1.8.22 and fixes Kotlin scripting
marcingrzejszczak Jul 5, 2023
091beb3
Bumping versions
spring-builds Jul 27, 2023
a63e4d8
Update SNAPSHOT to 4.0.4
spring-builds Jul 27, 2023
5ebba9b
Going back to snapshots
spring-builds Jul 27, 2023
030eeff
Bumping versions to 4.0.5-SNAPSHOT after release
spring-builds Jul 27, 2023
6450d7a
refactor: introduce part class to represent a multipart part
adrianhj Apr 22, 2023
d7a5f21
refactor: rework use of NamedProperty to use Part instead
adrianhj Apr 22, 2023
126b23c
refactor: modify ContentUtils to handle non-file parts
adrianhj Apr 22, 2023
696b1c9
refactor: use WireMock multipart capabilities to support new Part pro…
adrianhj Apr 22, 2023
0cf31e7
fix: apply build auto-formatting changes
adrianhj Apr 22, 2023
989d68e
fix: import order
adrianhj Apr 22, 2023
499898f
fix: wrong argument mapping in constructor
adrianhj Apr 22, 2023
30fa7c9
refactor: remove compatibility overrides in NamedProperty
adrianhj Apr 22, 2023
aa278f8
refactor: improve naming of fields
adrianhj Apr 22, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
8 changes: 7 additions & 1 deletion .github/workflows/codeql.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Set up JDK
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: 17

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
Expand All @@ -37,7 +43,7 @@ jobs:
# project uses a compiled language

- run: |
./mvnw clean install -B -U -Pspring
./mvnw clean install -B -U -Pspring -DskipTests

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
12 changes: 6 additions & 6 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,22 @@ name: Build

on:
push:
branches: [ 3.1.x, 3.0.x ]
branches: [ main, 3.1.x, 3.0.x ]
pull_request:
branches: [ 3.1.x, 3.0.x ]
branches: [ main, 3.1.x, 3.0.x ]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up JDK 1.8
- uses: actions/checkout@v3
- name: Set up JDK
uses: actions/setup-java@v3
with:
distribution: 'temurin' # See 'Supported distributions' for available options
java-version: 8
distribution: 'temurin'
java-version: 17
- name: Cache local Maven repository
uses: actions/cache@v3
with:
Expand Down
Binary file modified .mvn/wrapper/maven-wrapper.jar
Binary file not shown.
20 changes: 18 additions & 2 deletions .mvn/wrapper/maven-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,2 +1,18 @@
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.3/apache-maven-3.6.3-bin.zip
wrapperUrl=https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.8.3/apache-maven-3.8.3-bin.zip
wrapperUrl=https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.1.0/maven-wrapper-3.1.0.jar
2 changes: 1 addition & 1 deletion .sdkmanrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Enable auto-env through the sdkman_auto_env config
# Add key=value pairs of SDKs to use below
java=8.0.292.hs-adpt
java=17.0.1-tem
44 changes: 22 additions & 22 deletions docker/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
<parent>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-contract-parent</artifactId>
<version>3.1.9-SNAPSHOT</version>
<version>4.0.5-SNAPSHOT</version>
<relativePath>..</relativePath>
</parent>

<artifactId>spring-cloud-contract-docker-parent</artifactId>
<packaging>pom</packaging>
<version>3.1.9-SNAPSHOT</version>
<version>4.0.5-SNAPSHOT</version>
<name>Spring Cloud Contract Docker Parent</name>
<description>Spring Cloud Contract Docker Parent</description>

Expand All @@ -28,26 +28,26 @@
<activeByDefault>true</activeByDefault>
</activation>
</profile>
<!--<profile>
<id>integration</id>
<activation>
<activeByDefault>false</activeByDefault>
</activation>
<modules>
<module>spring-cloud-contract-docker</module>
<module>spring-cloud-contract-stub-runner-docker</module>
</modules>
</profile>
<profile>
<id>deploy</id>
<activation>
<activeByDefault>false</activeByDefault>
</activation>
<modules>
<module>spring-cloud-contract-docker</module>
<module>spring-cloud-contract-stub-runner-docker</module>
</modules>
</profile>-->
<!-- <profile>-->
<!-- <id>integration</id>-->
<!-- <activation>-->
<!-- <activeByDefault>false</activeByDefault>-->
<!-- </activation>-->
<!-- <modules>-->
<!-- <module>spring-cloud-contract-docker</module>-->
<!-- <module>spring-cloud-contract-stub-runner-docker</module>-->
<!-- </modules>-->
<!-- </profile>-->
<!-- <profile>-->
<!-- <id>deploy</id>-->
<!-- <activation>-->
<!-- <activeByDefault>false</activeByDefault>-->
<!-- </activation>-->
<!-- <modules>-->
<!-- <module>spring-cloud-contract-docker</module>-->
<!-- <module>spring-cloud-contract-stub-runner-docker</module>-->
<!-- </modules>-->
<!-- </profile>-->
</profiles>

<build>
Expand Down
2 changes: 1 addition & 1 deletion docker/spring-cloud-contract-docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM ubuntu:20.04

ARG SDKMAN_JAVA_INSTALLATION=8.0.292.hs-adpt
ARG SDKMAN_JAVA_INSTALLATION=17.0.1-tem

LABEL Author="Marcin Grzejszczak <[email protected]>"
LABEL Author="Bastian Doetsch <[email protected]>"
Expand Down
2 changes: 1 addition & 1 deletion docker/spring-cloud-contract-docker/get_dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

set -e

WRAPPER_VERSION="7.3"
WRAPPER_VERSION="7.5.1"
GRADLE_BIN_DIR="gradle-${WRAPPER_VERSION}-bin"
GRADLE_WRAPPER_DIR="${HOME}/.gradle/wrapper/dists/${GRADLE_BIN_DIR}"
CURRENT_DIR="$( pwd )"
Expand Down
93 changes: 86 additions & 7 deletions docker/spring-cloud-contract-docker/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,35 +6,43 @@
<properties>
<dependency-management-plugin.version>1.0.8.RELEASE</dependency-management-plugin.version>
<plexus-archiver.version>4.2.5</plexus-archiver.version>
<sdkman-java-installation.version>8.0.292.hs-adpt</sdkman-java-installation.version>
<sdkman-java-installation.version>17.0.1-tem</sdkman-java-installation.version>
</properties>

<parent>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-contract-docker-parent</artifactId>
<version>3.1.9-SNAPSHOT</version>
<version>4.0.5-SNAPSHOT</version>
<relativePath>..</relativePath>
</parent>

<artifactId>spring-cloud-contract-docker</artifactId>
<packaging>pom</packaging>
<version>3.1.9-SNAPSHOT</version>
<version>4.0.5-SNAPSHOT</version>
<name>Spring Cloud Contract Docker</name>
<description>Spring Cloud Contract Docker</description>

<dependencies>
<dependency>
<groupId>org.codehaus.groovy</groupId>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-contract-dependencies</artifactId>
<version>${project.version}</version>
<type>pom</type>
<scope>runtime</scope>
</dependency>

<dependency>
<groupId>org.apache.groovy</groupId>
<artifactId>groovy</artifactId>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.codehaus.groovy</groupId>
<groupId>org.apache.groovy</groupId>
<artifactId>groovy-ant</artifactId>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.codehaus.groovy</groupId>
<groupId>org.apache.groovy</groupId>
<artifactId>groovy-groovydoc</artifactId>
<scope>compile</scope>
</dependency>
Expand All @@ -48,6 +56,78 @@
<artifactId>spring-cloud-contract-gradle-plugin</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-contract-wiremock</artifactId>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-contract-spec</artifactId>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-contract-tools</artifactId>
<version>${project.version}</version>
<type>pom</type>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-contract-spec-java</artifactId>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-contract-spec-groovy</artifactId>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-contract-spec-kotlin</artifactId>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-contract-verifier</artifactId>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-contract-converters</artifactId>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-contract-stub-runner</artifactId>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-contract-stub-runner-boot</artifactId>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-contract-shade</artifactId>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-contract-stub-runner</artifactId>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-contract-stub-runner-jetty</artifactId>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-contract-maven-plugin</artifactId>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>io.spring.gradle</groupId>
<artifactId>dependency-management-plugin</artifactId>
Expand All @@ -74,7 +154,6 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>3.1.2</version>
<executions>
<execution>
<id>copy-dependencies</id>
Expand Down
6 changes: 3 additions & 3 deletions docker/spring-cloud-contract-docker/project/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
org.gradle.daemon=false
verifierVersion=3.1.9-SNAPSHOT
springBootVersion=2.6.15
camelVersion=3.14.5
verifierVersion=4.0.5-SNAPSHOT
springBootVersion=3.0.9
camelVersion=3.11.0
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
6 changes: 6 additions & 0 deletions docker/spring-cloud-contract-docker/project/gradlew
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,12 @@ set -- \
org.gradle.wrapper.GradleWrapperMain \
"$@"

# Stop when "xargs" is not available.
if ! command -v xargs >/dev/null 2>&1
then
die "xargs is not available"
fi

# Use "xargs" to parse quoted args.
#
# With -n1 it outputs one arg per line, with the quotes and backslashes removed.
Expand Down
14 changes: 8 additions & 6 deletions docker/spring-cloud-contract-docker/project/gradlew.bat
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
@rem limitations under the License.
@rem

@if "%DEBUG%" == "" @echo off
@if "%DEBUG%"=="" @echo off
@rem ##########################################################################
@rem
@rem Gradle startup script for Windows
Expand All @@ -25,7 +25,7 @@
if "%OS%"=="Windows_NT" setlocal

set DIRNAME=%~dp0
if "%DIRNAME%" == "" set DIRNAME=.
if "%DIRNAME%"=="" set DIRNAME=.
set APP_BASE_NAME=%~n0
set APP_HOME=%DIRNAME%

Expand All @@ -40,7 +40,7 @@ if defined JAVA_HOME goto findJavaFromJavaHome

set JAVA_EXE=java.exe
%JAVA_EXE% -version >NUL 2>&1
if "%ERRORLEVEL%" == "0" goto execute
if %ERRORLEVEL% equ 0 goto execute

echo.
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
Expand Down Expand Up @@ -75,13 +75,15 @@ set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar

:end
@rem End local scope for the variables with windows NT shell
if "%ERRORLEVEL%"=="0" goto mainEnd
if %ERRORLEVEL% equ 0 goto mainEnd

:fail
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
rem the _cmd.exe /c_ return code!
if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
exit /b 1
set EXIT_CODE=%ERRORLEVEL%
if %EXIT_CODE% equ 0 set EXIT_CODE=1
if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE%
exit /b %EXIT_CODE%

:mainEnd
if "%OS%"=="Windows_NT" endlocal
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.boot.web.client.RestTemplateBuilder;
import org.springframework.cloud.contract.verifier.converter.YamlContract;
import org.springframework.cloud.contract.verifier.messaging.MessageVerifier;
import org.springframework.cloud.contract.verifier.messaging.MessageVerifierReceiver;
import org.springframework.cloud.contract.verifier.messaging.amqp.AmqpMetadata;
import org.springframework.cloud.contract.verifier.messaging.boot.AutoConfigureMessageVerifier;
import org.springframework.cloud.contract.verifier.messaging.camel.StandaloneMetadata;
Expand Down Expand Up @@ -88,7 +88,7 @@ public abstract class ContractTestsBase {
String messagingType;

@Autowired
MessageVerifier messageVerifier;
MessageVerifierReceiver messageVerifier;

@BeforeEach
public void setup(TestInfo testInfo) {
Expand Down Expand Up @@ -120,9 +120,6 @@ private void setupAmqpIfPresent(YamlContract contract) {
AmqpMetadata amqpMetadata = AmqpMetadata.fromMetadata(contract.metadata);
if (isMessagingType("rabbit") && hasDeclaredOutputQueue(amqpMetadata) || isMessagingType("kafka")) {
log.info("First will try to receive a message to setup the connection with the broker");
if (contract.input != null && StringUtils.hasText(contract.input.messageFrom)) {
setupConnection(contract.input.messageFrom, contract);
}
if (contract.outputMessage != null && StringUtils.hasText(contract.outputMessage.sentTo)){
setupConnection(contract.outputMessage.sentTo, contract);
}
Expand Down
Loading