Files
spring-cloud-contract/docker/spring-cloud-contract-docker/project/build.sh
Dominik Labuda 454e5b45a8 Local stub publishing reimplemented (#1291)
While the previous approach did publish the contracts to local .m2 repository, it did not create the maven-metadata-local.xml file indicating a local release. It instead created maven-metadata.xml, which indicates a remote release. This wasn't issue when the stubs were retrieved by Gradle directly (in our flow we pre-check availability of these stubs by Gradle), it did however cause problems when they were being resolved by AetherStubDownloader used in SCC Stub Runner.

In addition, this newer implementation allows to enable any publish (remote or local) independently of each other, which wasn't the case previously.

Fixes #1283 - again
2019-12-19 01:56:52 +01:00

8 lines
258 B
Bash
Executable File

#!/bin/bash
export PROJECT_NAME="${PROJECT_NAME:-example}"
echo "Setting project name to [${PROJECT_NAME}]"
echo "rootProject.name='${PROJECT_NAME}'" >> settings.gradle
echo "Running the build"
./gradlew clean build publishToMavenLocal publish --stacktrace