Skip to content

Commit

Permalink
Update gradle setup for 6.4.
Browse files Browse the repository at this point in the history
  • Loading branch information
OlgaMaciaszek committed May 15, 2020
1 parent 41de139 commit 92dc755
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 7 deletions.
2 changes: 1 addition & 1 deletion consumer_with_restdocs/build.gradle
Expand Up @@ -42,7 +42,7 @@ dependencies {
testImplementation("org.springframework.cloud:spring-cloud-stream-test-support")
//remove::start[]
testImplementation("org.springframework.cloud:spring-cloud-starter-contract-stub-runner")
testCompile("com.example:beer-api-producer-restdocs:0.0.1.BUILD-SNAPSHOT:stubs") {
testImplementation("com.example:beer-api-producer-restdocs:0.0.1.BUILD-SNAPSHOT:stubs") {
transitive = false
}
// remove::end[]
Expand Down
10 changes: 7 additions & 3 deletions producer_with_restdocs/build.gradle
Expand Up @@ -78,7 +78,7 @@ test {
// tag::stubsjar[]
// we want to override the default Spring Cloud Contract behaviour and generate JAR in a custom way
task stubsJar(type: Jar) {
classifier = "stubs"
archiveClassifier = "stubs"
into('/') {
include('**/com/example/model/*.*')
from("${project.rootDir}/src/main/java/")
Expand All @@ -101,8 +101,12 @@ stubsJar.dependsOn(test)
// we want to disable the default Spring Cloud Contract stub jar generation
verifierStubsJar.enabled = false

artifacts {
archives stubsJar
publishing {
publications {
myPublicationName(MavenPublication) {
artifact stubsJar
}
}
}
// end::stubsjar[]
// remove::end[]
Expand Down
10 changes: 7 additions & 3 deletions producer_with_webtestclient_restdocs/build.gradle
Expand Up @@ -78,7 +78,7 @@ test {
// tag::stubsjar[]
// we want to override the default Spring Cloud Contract behaviour and generate JAR in a custom way
task stubsJar(type: Jar) {
classifier = "stubs"
archiveClassifier = "stubs"
into('/') {
include('**/com/example/model/*.*')
from("${project.rootDir}/src/main/java/")
Expand All @@ -101,8 +101,12 @@ stubsJar.dependsOn(test)
// we want to disable the default Spring Cloud Contract stub jar generation
verifierStubsJar.enabled = false

artifacts {
archives stubsJar
publishing {
publications {
myPublicationName(MavenPublication) {
artifact stubsJar
}
}
}
// end::stubsjar[]
// remove::end[]
Expand Down

0 comments on commit 92dc755

Please sign in to comment.