Fixed missing deprecation refactoring
This commit is contained in:
@@ -65,8 +65,10 @@ contracts {
|
||||
// tests - contracts from an artifact
|
||||
contractsPath = getProp("EXTERNAL_CONTRACTS_PATH") ?: ""
|
||||
if (Boolean.parseBoolean(getProp("EXTERNAL_CONTRACTS_WORK_OFFLINE")) == false) {
|
||||
contractsRepositoryUrl = getProp('EXTERNAL_CONTRACTS_REPO_WITH_BINARIES_URL') ?:
|
||||
getProp('REPO_WITH_BINARIES_URL') ?: 'http://localhost:8081/artifactory/libs-release-local'
|
||||
contractRepository {
|
||||
repositoryUrl = getProp('EXTERNAL_CONTRACTS_REPO_WITH_BINARIES_URL') ?:
|
||||
getProp('REPO_WITH_BINARIES_URL') ?: 'http://localhost:8081/artifactory/libs-release-local'
|
||||
}
|
||||
}
|
||||
contractDependency {
|
||||
groupId = getProp("EXTERNAL_CONTRACTS_GROUP_ID") ?: "com.example"
|
||||
|
||||
@@ -125,7 +125,7 @@ class SpringCloudContractVerifierGradlePlugin implements Plugin<Project> {
|
||||
task.onlyIf {
|
||||
String contractRepoUrl = extension.contractRepository.repositoryUrl ?: ""
|
||||
if (!contractRepoUrl || !ScmStubDownloaderBuilder.isProtocolAccepted(contractRepoUrl)) {
|
||||
project.logger.info("Skipping pushing stubs to scm since your [contractsRepositoryUrl] property doesn't match any of the accepted protocols")
|
||||
project.logger.info("Skipping pushing stubs to scm since your contracts repository URL doesn't match any of the accepted protocols")
|
||||
return false
|
||||
}
|
||||
return true
|
||||
|
||||
@@ -127,10 +127,12 @@ configure(project(':fraudDetectionService')) {
|
||||
testFramework ='Spock'
|
||||
testMode = 'JaxRsClient'
|
||||
baseClassForTests = 'org.springframework.cloud.MvcSpec'
|
||||
contractsRepositoryUrl = "file://" + file("${project.rootDir.absolutePath}/m2repo/repository").absolutePath
|
||||
contractDependency {
|
||||
stringNotation("com.example:jersey-contracts:+:")
|
||||
}
|
||||
contractRepository {
|
||||
repositoryUrl = "file://" + file("${project.rootDir.absolutePath}/m2repo/repository").absolutePath
|
||||
}
|
||||
generatedTestSourcesDir = file("${project.buildDir}/generated-test-sources/")
|
||||
stubsOutputDir = stubsOutputDirRoot
|
||||
disableStubPublication(project.hasProperty("disablePublication"))
|
||||
|
||||
Reference in New Issue
Block a user