修改 payapi-sdk 打包,将 common 打包到一起
authorTang Cheng <cheng.tang@supwisdom.com>
Tue, 9 Jul 2019 11:25:48 +0000 (19:25 +0800)
committerTang Cheng <cheng.tang@supwisdom.com>
Wed, 10 Jul 2019 02:23:23 +0000 (10:23 +0800)
payapi-sdk/build.gradle

index e0f0d0d..2c27e28 100644 (file)
@@ -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