Commit Graph

58 Commits

Author SHA1 Message Date
buildmaster
be3dd56cd8 Update SNAPSHOT to 2.1.1.RELEASE 2019-03-05 20:21:45 +00:00
Marcin Grzejszczak
8ce80e6e7f Applied checkstyle rules 2019-02-08 18:20:59 +01:00
buildmaster
6597c6eec2 Bumping versions to 2.1.1.BUILD-SNAPSHOT after release 2019-01-22 20:46:19 +00:00
buildmaster
1314163825 Going back to snapshots 2019-01-22 20:46:18 +00:00
buildmaster
cd239d8c39 Update SNAPSHOT to 2.1.0.RELEASE 2019-01-22 20:39:11 +00:00
buildmaster
e6640350bc Going back to snapshots 2018-12-20 21:43:00 +00:00
buildmaster
f47d0d3406 Update SNAPSHOT to 2.1.0.RC3 2018-12-20 21:37:41 +00:00
buildmaster
ba02983ff6 Going back to snapshots 2018-12-11 22:34:06 +00:00
buildmaster
eae5866fba Update SNAPSHOT to 2.1.0.RC2 2018-12-11 22:28:39 +00:00
buildmaster
cb401b9cc2 Going back to snapshots 2018-12-11 19:03:21 +00:00
buildmaster
ca9bd89614 Update SNAPSHOT to 2.1.0.RC1 2018-12-11 18:57:39 +00:00
Marcin Grzejszczak
e0e72c9c7f Fixed missing deprecation refactoring 2018-11-13 12:13:46 +01:00
Marcin Grzejszczak
193c27447b Merge branch '2.0.x' 2018-10-19 16:16:56 +02:00
Marcin Grzejszczak
78048826a3 Merge branch '1.2.x' into 2.0.x 2018-10-19 16:14:40 +02:00
Marcin Grzejszczak
34c2ed0330 Migrated to Ubuntu:18.10 and Java installation via SDKMan. Fixes gh-754 2018-10-19 16:14:12 +02:00
buildmaster
c20ecc91ed Bumping versions to 1.2.7.BUILD-SNAPSHOT after release 2018-10-16 00:27:32 +00:00
buildmaster
697b5ac37f Going back to snapshots 2018-10-16 00:27:30 +00:00
buildmaster
621c99fba8 Update SNAPSHOT to Edgware.SR5 2018-10-16 00:08:01 +00:00
buildmaster
1d275c346a Going back to snapshots 2018-09-21 23:48:07 +00:00
buildmaster
19fca03627 Update SNAPSHOT to Greenwich.M1 2018-09-21 23:41:27 +00:00
Marcin Grzejszczak
096790e04d Upgraded to Greenwhich 2018-08-29 14:04:28 +02:00
Marcin Grzejszczak
a0bc2eb1c4 Deprecating skipSnapshotCheck and providing fake m2 for Aether
without this change Aether, when having both local and remote JARs, always picks the local one, even though we don't want it to. There seems to be no way to change it via an API. We had a check in Spring Cloud Contract to throw an exception when we wanted a remote JAR but the local one was fetched. You could have changed it by providing a system property or a plugin property called `skipSnapshotCheck` or `contractsSkipSnapshotCheck`

with this change we're deprecating that flag since we're moving this logic to the internals of how we integrate with Aether. If the problem was that there was both the local and the remote JAR, what we could do is get rid of the local JAR. Obviously we don't want to remove it so what we're doing is when someone provides the REMOTE stub mode, we're creating a temporary directory and we're temporarily pointing Aether to that directory as our local m2. Since it's empty, Aether will not assume that we have any stubs stored locally. Thus, we will never have conflicts of remote vs local jars.

fixes gh-643

additional links:
- http://maven.40175.n5.nabble.com/Resolving-an-Artifact-from-Remote-Repository-instead-of-Local-td5875134.html
- https://stackoverflow.com/questions/9123004/maven-is-it-possible-to-override-location-of-local-repository-via-the-use-of-co
2018-08-23 13:30:56 +02:00
Marcin Grzejszczak
3d42ab9d35 Bumped dependency management plugin 2018-08-21 11:58:18 +02:00
Marcin Grzejszczak
f9ff03f24d Updated Gradle to 4.9 2018-08-21 11:56:59 +02:00
buildmaster
5375cf51ff Bumping versions to 2.0.2.BUILD-SNAPSHOT after release 2018-07-31 20:10:10 +00:00
buildmaster
2e92b65169 Going back to snapshots 2018-07-31 20:10:09 +00:00
buildmaster
c9758f5d4c Update SNAPSHOT to 2.0.1.RELEASE 2018-07-31 19:50:29 +00:00
Marcin Grzejszczak
fbee744992 Bump to Greenwich, 2.1.0 2018-07-19 15:00:13 +02:00
buildmaster
63418e0400 Bumping versions to 1.2.6.BUILD-SNAPSHOT after release 2018-06-29 20:38:49 +00:00
buildmaster
983b363512 Going back to snapshots 2018-06-29 20:38:47 +00:00
buildmaster
7d9dd84431 Update SNAPSHOT to 1.2.5.RELEASE 2018-06-29 20:22:31 +00:00
buildmaster
3be8122604 Bumping versions to 2.0.1.BUILD-SNAPSHOT after release 2018-06-19 01:35:06 +00:00
buildmaster
8540c6ffdd Going back to snapshots 2018-06-19 01:35:04 +00:00
buildmaster
ffeb8f74eb Update SNAPSHOT to 2.0.0.RELEASE 2018-06-19 01:22:57 +00:00
buildmaster
af93d926cb Going back to snapshots 2018-05-25 13:31:27 +00:00
buildmaster
1e14427889 Update SNAPSHOT to 2.0.0.RC2 2018-05-25 13:22:50 +00:00
buildmaster
7484fc339c Going back to snapshots 2018-04-23 15:16:20 +00:00
buildmaster
7a6037cafe Update SNAPSHOT to 2.0.0.RC1 2018-04-23 15:09:43 +00:00
Marcin Grzejszczak
0fe31ce3a5 Git Stub Downloader (#596)
when stubsMode is set to LOCAL or REMOTE, and repositoryRoot starts with git:// we can clone the provided git repository, and search for the folder with stubs for the given artifact. So if the git repo has a folder structure of groupid/artifactid/version (where group id is either dot or slash separated), then we will provide a path to that repository for the stub runner to harvest the stubs

- externalized versions
- added more debugging messages
- added ContractProjectUpdater that updates the project containing contracts from SCM. ATM supports only git
- added ResourceResolver that retrieves the ProtocolResolvers. It does it via spring.factories entries containing StubDownloaderBuilder. SDP extends ProtocolResovler.
added StubRunner.properties map, that will contain any properties that will be later used by any StubDownloader implementations
- added PUBLISH_STUBS_TO_SCM env var for Docker, so that publishStubsToScm task gets called
- updated docs

Breaking:

- StubDownloaderBuilder extends ProtocolResovler. By default the ProtocolResolver methods return null.
- stubRunnerOptions.stubRepositoryRoot is a Resource not a String
- generateWireMockClientStubs Gradle task got removed
- if folder with contracts has a subfolder called contracts, we will pick contracts from the subfolder

fixes #580
2018-03-31 09:35:00 +02:00
buildmaster
766cd59f64 Bumping versions to 1.2.5.BUILD-SNAPSHOT after release 2018-03-27 00:44:45 +00:00
buildmaster
ce62f7f77a Going back to snapshots 2018-03-27 00:44:43 +00:00
buildmaster
71061a7d7f Update SNAPSHOT to 1.2.4.RELEASE 2018-03-27 00:33:17 +00:00
buildmaster
b9740e900d Going back to snapshots 2018-03-22 23:54:47 +00:00
buildmaster
501fefd389 Update SNAPSHOT to 2.0.0.M8 2018-03-22 23:52:03 +00:00
Marcin Grzejszczak
b43204fb82 Merge branch '1.2.x' 2018-03-15 14:56:04 +01:00
Marcin Grzejszczak
c33ad02550 Added support for Docker and external contracts repo
These environment variables are used when contracts lay in an external repository. To enable
this feature you must set the `EXTERNAL_CONTRACTS_ARTIFACT_ID` environment variable.

- `EXTERNAL_CONTRACTS_GROUP_ID` - group id of the project with contracts. Defaults to `com.example`
- `EXTERNAL_CONTRACTS_ARTIFACT_ID`- artifact id of the project with contracts.
- `EXTERNAL_CONTRACTS_CLASSIFIER`- classifier of the project with contracts. Empty by default
- `EXTERNAL_CONTRACTS_VERSION` - version of the project with contracts. Defaults to `+`, equivalent to picking the latest
- `EXTERNAL_CONTRACTS_REPO_WITH_BINARIES_URL` - URL of your Artifact Manager. Defaults to value of `REPO_WITH_BINARIES_URL` env var.
If that's not set, defaults to `http://localhost:8081/artifactory/libs-release-local`
which is the default URL of https://jfrog.com/artifactory/[Artifactory] running locally
- `EXTERNAL_CONTRACTS_PATH` - path to contracts for the given project, inside the project with contracts.
Defaults to slash separated `EXTERNAL_CONTRACTS_GROUP_ID` concatenated with `/` and `EXTERNAL_CONTRACTS_ARTIFACT_ID`. E.g.
for group id `foo.bar` and artifact id `baz`, would result in `foo/bar/baz` contracts path.
- `EXTERNAL_CONTRACTS_WORK_OFFLINE` - if set to `true` then will retrieve artifact with contracts
from the container's `.m2`. Mount your local `.m2` as a volume available at the container's `/root/.m2` path.
You must not set both `EXTERNAL_CONTRACTS_WORK_OFFLINE` and `EXTERNAL_CONTRACTS_REPO_WITH_BINARIES_URL`.

fixes gh-576
2018-03-15 14:48:28 +01:00
Alexey Nesterov
e89062f58d Fix disabling of publish task when env property is set (#574)
Because of Gradle's project lifecycle, disabling tasks in the script doesn't
work as expected, ./gradlew publish will still try to execute
:publishMavenJavaPublicationToMavenRepository and fail even if PUBLISH_ARTIFACTS
is set to false. To avoid that and make sure all publish tasks are disabled
script need to listen for tasks graph event to be ready and then disable the tasks.
2018-03-13 10:34:48 +01:00
Alexey Nesterov
1e47d519af Fix disabling of publish task when env property is set (#574)
Because of Gradle's project lifecycle, disabling tasks in the script doesn't
work as expected, ./gradlew publish will still try to execute
:publishMavenJavaPublicationToMavenRepository and fail even if PUBLISH_ARTIFACTS
is set to false. To avoid that and make sure all publish tasks are disabled
script need to listen for tasks graph event to be ready and then disable the tasks.
2018-03-13 10:31:55 +01:00
Marcin Grzejszczak
1862f6674a Should fix the docker snapshot issue; fixes gh-562 2018-03-02 18:11:50 +01:00
Ryan Baxter
92a3c2b3d6 Reverting boot RC2 change 2018-02-26 20:38:06 -05:00