Skip to content

Commit b98a39f

Browse files
publish する際のファイル名を変更
1 parent 27578f4 commit b98a39f

File tree

4 files changed

+7
-12
lines changed

4 files changed

+7
-12
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ jobs:
181181
path: spar-wings-thymeleaf-s3/build/test-results/
182182

183183
- deploy:
184-
name: Deploy bintray
184+
name: Deploy artifacts
185185
command: ./gradlew assemble publish showVersion
186186
- save_cache:
187187
key: barista-{{ .Branch }}-{{ checksum ".circleci/config.yml" }}-{{ checksum "build.gradle" }}-{{ checksum "gradle.properties" }}-{{ checksum "gradle/wrapper/gradle-wrapper.properties" }}

build.gradle

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -150,13 +150,6 @@ subprojects {
150150
distribution "repo"
151151
}
152152
}
153-
developers {
154-
developer {
155-
id "dai0304"
156-
name "MIYAMOTO Daisuke"
157-
email "dai.0304@gmail.com"
158-
}
159-
}
160153
}
161154
}
162155
}

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ springSecurityOauth2Version = 2.2.1.RELEASE
44
awsJavaSdkVersion = 1.11.233
55

66
lombokVersion = 1.18.2
7-
baseunitsVersion = 20200313-13b46a0-SNAPSHOT
7+
baseunitsVersion = 20200313-9a35d4d-SNAPSHOT
88

99
junitVersion = 4.12
1010
hamcrestVersion = 1.3

gradle/version.gradle

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,13 @@ buildscript {
1212

1313
ext {
1414
git = org.ajoberstar.grgit.Grgit.open(file('.'))
15-
describedCommit = git.describe().toString().trim()
15+
revision = git.head().abbreviatedId
1616
}
1717

18-
version = describedCommit +
19-
(describedCommit.matches(".*-[0-9]+-g[0-9a-f]{7}") ? "-SNAPSHOT" : "") +
18+
import java.text.SimpleDateFormat
19+
// LocalDateTime.now().format("yyyyMMdd") は参照できないと言われる...
20+
version = new SimpleDateFormat('yyyyMMdd').format(new Date()) + "-" + revision +
21+
(git.branch.current.name != "master" ? "-SNAPSHOT" : "") +
2022
(git.status().isClean() ? "" : "+dirty")
2123

2224
task showVersion {

0 commit comments

Comments
 (0)