优化
authorTang Cheng <cheng.tang@supwisdom.com>
Wed, 3 Jul 2019 12:11:37 +0000 (20:11 +0800)
committerTang Cheng <cheng.tang@supwisdom.com>
Wed, 3 Jul 2019 12:11:37 +0000 (20:11 +0800)
build.gradle

index 96d5fb8..fcabe95 100644 (file)
@@ -33,8 +33,10 @@ bootJar {
 }
 
 jar {
+    baseName = 'payapi'
+    version = '1'
     manifest {
-        attributes('Payapi-Version': payapiVersion)
+        attributes 'Payapi-Version': payapiVersion
     }
 }
 docker {
@@ -43,12 +45,16 @@ docker {
     files jar.archivePath
 }
 
+docker.dependsOn(jar)
+
 dependencies {
     implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
     implementation 'org.springframework.boot:spring-boot-starter-data-redis'
     implementation 'org.springframework.boot:spring-boot-starter-web'
     implementation 'org.springframework.boot:spring-boot-starter-security'
     implementation 'org.springframework.boot:spring-boot-starter-cache'
+    implementation 'org.springframework.boot:spring-boot-autoconfigure'
+    implementation 'org.springframework.security:spring-security-oauth2-jose'
     implementation 'org.springframework.security:spring-security-oauth2-client'
     implementation 'org.springframework.security:spring-security-oauth2-jose'
     implementation 'org.springframework.security.oauth.boot:spring-security-oauth2-autoconfigure:2.1.5.RELEASE'