优化
diff --git a/build.gradle b/build.gradle
index 96d5fb8..fcabe95 100644
--- a/build.gradle
+++ b/build.gradle
@@ -33,8 +33,10 @@
}
jar {
+ baseName = 'payapi'
+ version = '1'
manifest {
- attributes('Payapi-Version': payapiVersion)
+ attributes 'Payapi-Version': payapiVersion
}
}
docker {
@@ -43,12 +45,16 @@
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'