Kaynağa Gözat

更改打包文件名称

hym 4 yıl önce
ebeveyn
işleme
88bc16b43f
1 değiştirilmiş dosya ile 4 ekleme ve 3 silme
  1. 4 3
      build.gradle

+ 4 - 3
build.gradle

@@ -5,8 +5,7 @@ plugins {
 }
 
 group = 'com.zoniot'
-version = '0.0.1-SNAPSHOT'
-sourceCompatibility = '1.8'
+archivesBaseName = "ccrc-api-${releaseTime()}"
 
 configurations {
 	compileOnly {
@@ -90,7 +89,9 @@ dependencies {
 
     compile('org.springframework.boot:spring-boot-starter-amqp')
 }
-
+def releaseTime() {
+    return  new Date().format("yyyyMMdd", TimeZone.getTimeZone("GMT+08:00"))
+}
 test {
 	useJUnitPlatform()
 }