Skip to content

Commit d388bc1

Browse files
committed
Replaced build-contracts.sh with a Gradle task
1 parent 9fc014c commit d388bc1

File tree

5 files changed

+7
-23
lines changed

5 files changed

+7
-23
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
keys:
1010
- ftgo-application-{{ checksum "gradle.properties" }}
1111
- ftgo-application-
12-
- run: TERM=dumb ./build-contracts.sh
12+
- run: TERM=dumb ./gradlew buildContracts
1313
- run: TERM=dumb ./gradlew testClasses :ftgo-order-service:compileComponentTestJava
1414
- save_cache:
1515
paths:

README.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ All the services' business logic is implemented using Domain-Driven design aggre
119119
Temporary: Build the Spring Cloud Contracts using this command:
120120

121121
```
122-
./build-contracts.sh
122+
./gradlew buildContracts
123123
```
124124

125125
Build the services using this command:

build-and-test-all.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ echo KEEP_RUNNING=$KEEP_RUNNING
3030

3131
# TODO Temporarily
3232

33-
./build-contracts.sh
33+
./gradlew buildContracts
3434

3535
./gradlew testClasses
3636

build-contracts.sh

Lines changed: 0 additions & 20 deletions
This file was deleted.

build.gradle

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,7 @@ subprojects {
4343
}
4444

4545
}
46+
47+
task buildContracts(type: GradleBuild) {
48+
tasks = subprojects.collect { it.name }.findAll { it.endsWith("-contracts") }.collect { ":" + it + ":publish"}
49+
}

0 commit comments

Comments
 (0)