diff --git a/build.third_step0-jdk11.gradle b/build.third_step0-jdk11.gradle index 63391cb03..1db06deba 100644 --- a/build.third_step0-jdk11.gradle +++ b/build.third_step0-jdk11.gradle @@ -59,6 +59,7 @@ configurations { // 主体代码与essential的对应关系配置在TeamCity String essentialVersion = findProperty("essentialVersion") +String cbbVersion = findProperty("cbbVersion") //指定依赖 dependencies{ @@ -76,6 +77,13 @@ publishing { artifactId "fine-third" version maven_version from components.java + pom.withXml { + def dep = asNode().appendNode('dependencies'); + def node = dep.appendNode("dependency") + node.appendNode("groupId", "com.fr.cbb") + node.appendNode("artifactId", "fine-cbb") + node.appendNode("version", "${cbbVersion}") + } } } repositories { diff --git a/build.third_step0.gradle b/build.third_step0.gradle index 4cb7a7c2b..5057b34d5 100644 --- a/build.third_step0.gradle +++ b/build.third_step0.gradle @@ -92,6 +92,13 @@ publishing { version maven_version ext.repo = 'release' from components.java + pom.withXml { + def dep = asNode().appendNode('dependencies'); + def node = dep.appendNode("dependency") + node.appendNode("groupId", "com.fr.cbb") + node.appendNode("artifactId", "fine-cbb") + node.appendNode("version", "${cbbVersion}") + } } third_build(MavenPublication) { @@ -100,6 +107,13 @@ publishing { version maven_version_build ext.repo = 'snapshot' from components.java + pom.withXml { + def dep = asNode().appendNode('dependencies'); + def node = dep.appendNode("dependency") + node.appendNode("groupId", "com.fr.cbb") + node.appendNode("artifactId", "fine-cbb") + node.appendNode("version", "${cbbVersion}") + } } } repositories {