修改 payapi-sdk 打包,将 common 打包到一起
diff --git a/payapi-sdk/build.gradle b/payapi-sdk/build.gradle
index e0f0d0d..2c27e28 100644
--- a/payapi-sdk/build.gradle
+++ b/payapi-sdk/build.gradle
@@ -39,14 +39,6 @@
     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 @@
     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