Commit Graph

637 Commits

Author SHA1 Message Date
buildmaster
0e3bbfee0a Bumping versions 2019-09-25 00:22:48 +00:00
Marcin Grzejszczak
af3f0a06c6 Refactored more to java 2019-09-24 12:32:36 +02:00
buildmaster
9b52f11023 Bumping versions 2019-09-24 00:21:35 +00:00
Marcin Grzejszczak
b59398878f Bumped Maven to 3.6.2
migrated aether to maven-provider

fixes gh-1218
2019-09-19 17:03:07 +02:00
Marcin Grzejszczak
9375d0e28b Merge branch '2.1.x' 2019-09-17 17:20:03 +02:00
buildmaster
de94a14a9a Bumping versions to 2.1.4.BUILD-SNAPSHOT after release 2019-09-10 18:47:36 +00:00
buildmaster
882cee887d Going back to snapshots 2019-09-10 18:47:35 +00:00
buildmaster
4750b4e60e Update SNAPSHOT to 2.1.3.RELEASE 2019-09-10 18:38:17 +00:00
Marcin Grzejszczak
d2ff700f18 Parametrizing gradle publishPlugins task in maven 2019-09-10 20:09:01 +02:00
Marcin Grzejszczak
764c13b6bf I love Gradle 2019-09-10 18:59:24 +02:00
Marcin Grzejszczak
0a1b9b9060 I love Gradle 2019-09-10 18:34:56 +02:00
Marcin Grzejszczak
b21e1e1028 Trying to fix Gradle stuff 2019-09-10 18:28:13 +02:00
Marcin Grzejszczak
efac97ab5a Adding env vars 2019-09-10 18:16:56 +02:00
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
Marcin Grzejszczak
796103cb48 Bumped libs
fixes gh-1193
fixes gh-1194
fixes gh-1195
fixes gh-1196
fixes gh-1197
fixes gh-1198
2019-09-04 17:24:47 +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
Rad
347f0a7a92 GH-1180 inject project file name (#1183) 2019-08-23 16:08:48 +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
Marcin Grzejszczak
ebc524c87d Merge branch 'master' into feature/kotlin-contract-support 2019-08-14 10:49:35 +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
Tim Ysewyn
5ae10f246c Merge branch 'master' into feature/kotlin-contract-support 2019-08-13 10:03:57 +02:00
Marcin Grzejszczak
706044bfe5 Added support for writing contracts in Java
fixes gh-1161
2019-08-12 13:40:58 +02:00
Tim Ysewyn
962e626de4 Merge branch 'master' into feature/kotlin-contract-support 2019-08-10 14:05:18 +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
Tim Ysewyn
05f9486852 Merge branch 'master' into feature/kotlin-contract-support 2019-08-07 23:29:55 +02:00
Marcin Grzejszczak
238aa9e3af Updated the fail on no contracts option 2019-08-07 23:08:38 +02:00
Marcin Grzejszczak
a7b62bb073 Boot version to 2.2.0.BUILD-SNAPSHOT 2019-08-06 17:25:56 +02:00