Commit Graph

637 Commits

Author SHA1 Message Date
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
Olga Maciaszek-Sharma
04c1115765 Ignore flaky test. 2019-06-20 14:36:26 +02:00
Artem Ptushkin
60b9e9e1f0 Fixed MissingMethodExceptionNoStack at creating assertion for spock test (#1110)
* Created test for the issue #1089 - failed with MissingMethodExceptionNoStack
* Created groovy unit test for the issue #1089 - failed with MissingMethodExceptionNoStack
* Fixed MissingMethodExceptionNoStack (#1089)
* Changed SpringCloudContractAssertions to groovy with compileStatic

fixes gh-1089
2019-06-19 10:17:40 +02:00
Artem Ptushkin
3e96da889c Fixed MissingMethodExceptionNoStack at creating assertion for spock test (#1110)
* Created test for the issue #1089 - failed with MissingMethodExceptionNoStack
* Created groovy unit test for the issue #1089 - failed with MissingMethodExceptionNoStack
* Fixed MissingMethodExceptionNoStack (#1089)
* Changed SpringCloudContractAssertions to groovy with compileStatic

fixes gh-1089
2019-06-19 10:16:41 +02:00
Olga Maciaszek-Sharma
c139851901 Fix gh branch in docs. 2019-06-03 19:43:36 +02:00
Marcin Grzejszczak
10b035911f Bumped jacoco to 0.8.3; fixes gh-1069 2019-05-20 14:32:34 +02:00
Dave Syer
85d004a48d Remove unused dependency injection 2019-05-13 14:14:22 +01:00
Dave Syer
afdd834cd7 Tidy up some poms 2019-05-13 13:45:30 +01:00
Dominik Labuda
bd77386da9 WIP: Gradle plugin now applies properties set in build.gradle property 2019-05-06 00:02:10 +02:00
Marcin Grzejszczak
ccd90698ac Bump plexus-component-metadata from 1.7.1 to 2.0.0 ; fixes gh-1060 2019-04-26 17:10:38 +04:00
Marcin Grzejszczak
6930676b22 Merge branch '2.1.x' 2019-04-25 11:58:54 +04:00
Marcin Zajączkowski
f55e855769 Deploy also to Gradle plugin portal (#629) (#1050) 2019-04-25 09:58:44 +02:00
Marcin Grzejszczak
809c925266 Merge branch '2.1.x' 2019-04-19 19:19:53 +04:00
Marcin Grzejszczak
88b7871e98 Standardized plugins and setup the JUnit5 to run JUnit4 tests too
fixes gh-1047
2019-04-19 19:19:15 +04:00
Marcin Grzejszczak
d82afd5a24 Bumped WireMock to 2.23.2 jre8
fixes gh-943
2019-04-16 10:25:36 +04:00
Marcin Grzejszczak
42a2d1dfb1 Bumped Boot in gradle samples 2019-04-16 08:41:10 +04:00
Marcin Grzejszczak
333ca12d99 Should fix the build 2019-04-09 15:12:00 +02:00
Olga Maciaszek-Sharma
883bf6a6b1 Merge remote-tracking branch 'spring-operator/polish-urls-build-master' 2019-04-01 15:53:34 +02:00
Olga Maciaszek-Sharma
b800df8d43 Merge branch '2.1.x'
# Conflicts:
#	README.adoc
2019-03-28 12:13:18 +01:00
Olga Maciaszek-Sharma
ea986b8329 Fix more URLs.
# Conflicts:
#	docs/src/main/asciidoc/verifier_setup.adoc
2019-03-27 19:43:22 +01:00
Spring Operator
3eca2df6f9 URL Cleanup (#944)
This commit updates URLs to prefer the https protocol. Redirects are not followed to avoid accidentally expanding intentionally shortened URLs (i.e. if using a URL shortener).

# Fixed URLs

## Fixed But Review Recommended
These URLs were fixed, but the https status was not OK. However, the https status was the same as the http request or http redirected to an https URL, so they were migrated. Your review is recommended.

* http://foo.bar (UnknownHostException) with 1 occurrences migrated to:
  https://foo.bar ([https](https://foo.bar) result UnknownHostException).
* http://link/to/your/nexus/or/artifactory/or/sth (UnknownHostException) with 1 occurrences migrated to:
  https://link/to/your/nexus/or/artifactory/or/sth ([https](https://link/to/your/nexus/or/artifactory/or/sth) result UnknownHostException).
* http://www.puppycrawl.com/dtds/suppressions_1_1.dtd (404) with 1 occurrences migrated to:
  https://www.puppycrawl.com/dtds/suppressions_1_1.dtd ([https](https://www.puppycrawl.com/dtds/suppressions_1_1.dtd) result 404).

## Fixed Success
These URLs were switched to an https URL with a 2xx status. While the status was successful, your review is still recommended.

* http://maven.apache.org/xsd/assembly-1.1.3.xsd with 3 occurrences migrated to:
  https://maven.apache.org/xsd/assembly-1.1.3.xsd ([https](https://maven.apache.org/xsd/assembly-1.1.3.xsd) result 200).
* http://maven.apache.org/xsd/maven-4.0.0.xsd with 82 occurrences migrated to:
  https://maven.apache.org/xsd/maven-4.0.0.xsd ([https](https://maven.apache.org/xsd/maven-4.0.0.xsd) result 200).
* http://www.springframework.org/schema/beans/spring-beans.xsd with 2 occurrences migrated to:
  https://www.springframework.org/schema/beans/spring-beans.xsd ([https](https://www.springframework.org/schema/beans/spring-beans.xsd) result 200).
* http://www.springframework.org/schema/integration/spring-integration.xsd with 2 occurrences migrated to:
  https://www.springframework.org/schema/integration/spring-integration.xsd ([https](https://www.springframework.org/schema/integration/spring-integration.xsd) result 200).

# Ignored
These URLs were intentionally ignored.

* http://maven.apache.org/POM/4.0.0 with 164 occurrences
* http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.3 with 6 occurrences
* http://www.springframework.org/schema/beans with 4 occurrences
* http://www.springframework.org/schema/integration with 4 occurrences
* http://www.w3.org/2001/XMLSchema-instance with 87 occurrences
2019-03-27 19:31:29 +01:00
Spring Operator
070c3b0268 URL Cleanup (#944)
This commit updates URLs to prefer the https protocol. Redirects are not followed to avoid accidentally expanding intentionally shortened URLs (i.e. if using a URL shortener).

# Fixed URLs

## Fixed But Review Recommended
These URLs were fixed, but the https status was not OK. However, the https status was the same as the http request or http redirected to an https URL, so they were migrated. Your review is recommended.

* http://foo.bar (UnknownHostException) with 1 occurrences migrated to:
  https://foo.bar ([https](https://foo.bar) result UnknownHostException).
* http://link/to/your/nexus/or/artifactory/or/sth (UnknownHostException) with 1 occurrences migrated to:
  https://link/to/your/nexus/or/artifactory/or/sth ([https](https://link/to/your/nexus/or/artifactory/or/sth) result UnknownHostException).
* http://www.puppycrawl.com/dtds/suppressions_1_1.dtd (404) with 1 occurrences migrated to:
  https://www.puppycrawl.com/dtds/suppressions_1_1.dtd ([https](https://www.puppycrawl.com/dtds/suppressions_1_1.dtd) result 404).

## Fixed Success
These URLs were switched to an https URL with a 2xx status. While the status was successful, your review is still recommended.

* http://maven.apache.org/xsd/assembly-1.1.3.xsd with 3 occurrences migrated to:
  https://maven.apache.org/xsd/assembly-1.1.3.xsd ([https](https://maven.apache.org/xsd/assembly-1.1.3.xsd) result 200).
* http://maven.apache.org/xsd/maven-4.0.0.xsd with 82 occurrences migrated to:
  https://maven.apache.org/xsd/maven-4.0.0.xsd ([https](https://maven.apache.org/xsd/maven-4.0.0.xsd) result 200).
* http://www.springframework.org/schema/beans/spring-beans.xsd with 2 occurrences migrated to:
  https://www.springframework.org/schema/beans/spring-beans.xsd ([https](https://www.springframework.org/schema/beans/spring-beans.xsd) result 200).
* http://www.springframework.org/schema/integration/spring-integration.xsd with 2 occurrences migrated to:
  https://www.springframework.org/schema/integration/spring-integration.xsd ([https](https://www.springframework.org/schema/integration/spring-integration.xsd) result 200).

# Ignored
These URLs were intentionally ignored.

* http://maven.apache.org/POM/4.0.0 with 164 occurrences
* http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.3 with 6 occurrences
* http://www.springframework.org/schema/beans with 4 occurrences
* http://www.springframework.org/schema/integration with 4 occurrences
* http://www.w3.org/2001/XMLSchema-instance with 87 occurrences
2019-03-27 17:58:23 +01:00