Commit Graph

395 Commits

Author SHA1 Message Date
Marcin Grzejszczak
e36da23f7c Added password and username for sonatype 2019-09-10 17:55:17 +02:00
Marcin Grzejszczak
530fdee87f Reusing the original exec version 2019-09-09 11:32:46 +02:00
Marcin Grzejszczak
38cf761228 Not inheriting maven exec for gradle 2019-09-09 08:31:15 +02:00
Shannon Pamperl
534cbde50d Switch to plugins{} apply syntax
Now that Spring Cloud Contract is generating a plugin marker, it's much
easier to functionally test using Gradle TestKit by utilizing the
withPluginClasspath() and the 'java-gradle-plugin' Gradle plugin. Since
Gradle recommends new users, as well as new plugin authors, to use the
plugin markers and plugins{} syntax we should also follow that same
path. Especially given that there has been feature parity with the
buildscirpt{} block some releases ago.
2019-09-03 12:49:04 -05:00
Shannon Pamperl
04f7e8ca6e Removed unused functionalTest samples 2019-09-03 12:48:25 -05:00
Shannon Pamperl
4d590aa800 Disable debug-jvm mode as it's causing an additional compilation without the initscript classpath 2019-09-02 18:20:01 -05:00
Shannon Pamperl
9ad51a58d9 Remove eclipse plugin since it's not necessary to apply it
Both Eclipse, via Buildship, and Intellij automatically add in init
scripts that run with the Gradle execution. In these they add in the
eclipse or idea plugins, so that those ide's get associated
configurations and tasks necessary for them.
2019-09-02 15:23:33 -05:00
Shannon Pamperl
5acaff9338 Remove checkstyle setup as it's causing ClassNotFoundExceptions 2019-09-02 10:43:03 -05:00
Shannon Pamperl
ccdac2522c Remove ignored tests 2019-09-02 10:43:03 -05:00
Shannon Pamperl
afebba0e6e Take advantage of the gradlePluginPortal() repository method 2019-09-02 10:43:03 -05:00
Shannon Pamperl
c7035d45d4 Add standard scenario test in Kotlin DSL 2019-09-02 10:43:02 -05:00
Shannon Pamperl
d03a8eb960 Update integration test to take advantage of java-gradle-plugin
This plugin is required when using the withPluginClasspath(..) method,
but during Gradle execution it creates a listing of the classpath that
the plugin under test would have. We can then use that explicitly to
build up the necessary classpath in the init.gradle script for loading
the necessary classes to run integration tests against the plugin
without needing to copy all of the jar files into a folder via a Gradle
task.
2019-09-02 10:43:02 -05:00
Shannon Pamperl
6f534b2eee Added kotlin-dsl test 2019-09-02 10:43:02 -05:00
Shannon Pamperl
3b16eed5cb Revamp extension to explicitly declare input types correctly 2019-09-02 10:43:01 -05:00
Shannon Pamperl
1c26678b3a Convert extension class to Java 2019-09-02 10:43:01 -05:00
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
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
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
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
Marcin Grzejszczak
238aa9e3af Updated the fail on no contracts option 2019-08-07 23:08:38 +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
Marcin Grzejszczak
d97db26001 Makes jdk13 build pass with Gradle 2019-08-04 08:14:44 +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
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
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
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