File tree Expand file tree Collapse file tree 3 files changed +40
-50
lines changed Expand file tree Collapse file tree 3 files changed +40
-50
lines changed Original file line number Diff line number Diff line change @@ -85,6 +85,21 @@ commands:
85
85
key : maven-{{ .Environment.CIRCLE_JOB }}-{{ checksum "/tmp/maven_cache_seed" }}
86
86
paths :
87
87
- ~/.m2/repository
88
+ config_gpg :
89
+ steps :
90
+ - run :
91
+ name : Configure GPG
92
+ command : echo $GPG_PRIVATE_KEY | base64 --decode | gpg --batch --no-tty --import --yes
93
+ deploy :
94
+ steps :
95
+ - run :
96
+ name : Deploy to Apache Maven Central
97
+ command : mvn -s .circleci/maven-release-settings.xml -DskipTests deploy
98
+ release :
99
+ steps :
100
+ - run :
101
+ name : Release to Apache Maven Central
102
+ command : mvn -Dmaven.test.skip=true nexus-staging:release
88
103
89
104
executors :
90
105
j17 :
@@ -155,13 +170,21 @@ jobs:
155
170
- checkout
156
171
- load_cache
157
172
- mvn-info
158
- - run :
159
- name : Add GPG key
160
- command : echo $GPG_PRIVATE_KEY | base64 --decode | gpg --batch --no-tty --import --yes
161
- - run :
162
- name : Deploy to Apache Maven Central
163
- command : mvn -s .circleci/maven-release-settings.xml -DskipTests deploy
173
+ - config_gpg
174
+ - deploy
164
175
- store_cache
176
+ release :
177
+ executor : ' j17'
178
+ steps :
179
+ - timeout
180
+ - checkout
181
+ - load_cache
182
+ - mvn-info
183
+ - config_gpg
184
+ - deploy
185
+ - release
186
+ - store_cache
187
+
165
188
workflows :
166
189
test-adb-version :
167
190
when :
@@ -218,4 +241,13 @@ workflows:
218
241
tags :
219
242
only : /^deploy.*/
220
243
branches :
221
- ignore : /.*/
244
+ ignore : /.*/
245
+ release :
246
+ jobs :
247
+ - deploy :
248
+ context : java-release
249
+ filters :
250
+ tags :
251
+ only : /^release.*/
252
+ branches :
253
+ ignore : /.*/
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 92
92
<plugin >
93
93
<groupId >org.sonatype.plugins</groupId >
94
94
<artifactId >nexus-staging-maven-plugin</artifactId >
95
- <version >1.6.13 </version >
95
+ <version >1.7.0 </version >
96
96
<extensions >true</extensions >
97
97
<configuration >
98
98
<serverId >ossrh</serverId >
You can’t perform that action at this time.
0 commit comments