From 7ed40f509506e505f1946e48038caad4975ca3fc Mon Sep 17 00:00:00 2001 From: Tang Cheng Date: Tue, 9 Jul 2019 19:25:48 +0800 Subject: [PATCH] =?utf8?q?=E4=BF=AE=E6=94=B9=20payapi-sdk=20=E6=89=93?= =?utf8?q?=E5=8C=85=EF=BC=8C=E5=B0=86=20common=20=E6=89=93=E5=8C=85?= =?utf8?q?=E5=88=B0=E4=B8=80=E8=B5=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- payapi-sdk/build.gradle | 27 ++++++++++++++++++--------- 1 file changed, 18 insertions(+), 9 deletions(-) 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 -- 2.17.1