From: Tang Cheng Date: Tue, 9 Jul 2019 11:25:48 +0000 (+0800) Subject: 修改 payapi-sdk 打包,将 common 打包到一起 X-Git-Url: https://source.supwisdom.com/gerrit/gitweb?a=commitdiff_plain;h=655db92012d71c43f107bf3276bc20b03b3140b4;p=epayment%2Ffood_payapi.git 修改 payapi-sdk 打包,将 common 打包到一起 --- diff --git a/payapi-sdk/build.gradle b/payapi-sdk/build.gradle index e0f0d0d8..2c27e284 100644 --- a/payapi-sdk/build.gradle +++ b/payapi-sdk/build.gradle @@ -39,14 +39,6 @@ bootJar { enabled = false } -jar { - enabled = true - baseName = "payapi-sdk" - manifest { - attributes('Payapi-SDK-Version': sdkVersion) - } -} - dependencies { implementation 'org.springframework.boot:spring-boot-starter-data-jpa' implementation 'org.springframework.boot:spring-boot-starter-data-redis' @@ -69,4 +61,21 @@ dependencies { testImplementation 'org.hamcrest:hamcrest:2.1' testImplementation project(':common') -} \ No newline at end of file +} + + +jar { + enabled = true + baseName = "payapi-sdk" + manifest { + attributes('Payapi-SDK-Version': sdkVersion) + } + from project(':common').configurations.archives.allArtifacts.files.collect { zipTree(it) } +} + + +task fullJar(type: Jar, dependsOn: ':common:jar') { +} + +jar.dependsOn(fullJar) +publish.dependsOn(fullJar) \ No newline at end of file