publishStubsToScm {
+ // We want to modify the default set up of the plugin when publish stubs to scm is called
+ // We want to pick contracts from a Git repository
+ contractDependency {
+ stringNotation = "${project.group}:${project.name}:${project.version}"
+ }
+ /*
+ We reuse the contract dependency section to set up the path
+ to the folder that contains the contract definitions. In our case the
+ path will be /groupId/artifactId/version/contracts
+ */
+ contractRepository {
+ repositoryUrl = "git://file://${new File(project.rootDir, "../target")}/contract_empty_git/"
+ }
+ // We set the contracts mode to `LOCAL`
+ contractsMode = "LOCAL"
+ }
+