forked from jreleaser/jreleaser
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjreleaser.yml
409 lines (392 loc) · 13.1 KB
/
jreleaser.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
environment:
properties:
jdkPathPrefix: 'plugins/jreleaser/build/jdks'
jdkFilePrefix: 'zulu17.32.13-ca-jdk17.0.2'
graalFilePrefix: 'graalvm-ce-java17-22.3.0'
nativeImageDir: out/jreleaser/assemble/jreleaser-native/native-image
jpackageDir: out/jreleaser/assemble/jreleaser-installer/jpackage
skipJpackageResolver: true
skipNativeImageResolver: true
project:
name: jreleaser
description: Release projects quickly and easily with JReleaser
longDescription: |
JReleaser is a release automation tool. Its goal is to simplify creating releases and
publishing artifacts to multiple package managers while providing customizable options.
JReleaser takes inputs from popular builds tools (Ant, Maven, Gradle) such as JAR files,
binary distributions (.zip, .tar), JLink images, or any other file that you’d like to
publish as a Git release on popular Git services such as GitHub, GitLab, or Gitea.
Distribution files may additionally be published to be consumed by popular package managers
such as Homebrew, Chocolatey, Snapcraft, or get ready to be launched via JBang. Releases
may be announced in a variety of channels such as Twitter, Zulip, SDKMAN!, and more.
links:
homepage: https://jreleaser.org
faq: https://{{repoHost}}/{{repoOwner}}/{{repoName}}/discussions
donation: https://opencollective.com/jreleaser
documentation: https://jreleaser.org/guide/latest
authors:
- Andres Almiray
license: Apache-2.0
inceptionYear: 2020
stereotype: cli
screenshots:
- url: https://jreleaser.org/images/app-full-release-command.png
caption: JReleaser in action
icons:
- url: https://raw.githubusercontent.com/jreleaser/jreleaser/main/src/media/icon_256x256.png
width: 256
height: 256
java:
groupId: org.jreleaser
version: 8
multiProject: true
tags:
- 'jreleaser'
- 'release'
- 'tool'
- 'java'
- 'git'
platform:
replacements:
aarch_64: aarch64
release:
github:
overwrite: true
sign: true
discussionCategoryName: Announcements
issues:
enabled: true
changelog:
formatted: ALWAYS
preset: conventional-commits
format: '- {{commitShortHash}} {{commitTitle}}'
contributors:
format: '- {{contributorName}}{{#contributorUsernameAsLink}} ({{.}}){{/contributorUsernameAsLink}}'
contentTemplate: 'src/jreleaser/changelog.tpl'
labelers:
- label: 'i18n'
title: 'regex:^(?:i18n(?:\(.*\))?!?):\s.*'
order: 120
- label: 'dependencies'
title: 'regex:^(?:deps(?:\(.*\))?!?):\s.*'
order: 130
- label: 'allcontributors1'
title: 'regex:^docs: update .all-contributorsrc.*'
order: -1
- label: 'allcontributors2'
title: 'regex:^docs: update CONTRIBUTORS.md.*'
order: -2
categories:
- title: '🌐 Translation'
key: 'i18n'
order: 70
labels:
- 'i18n'
- title: '⚙️ Dependencies'
key: 'dependencies'
order: 80
labels:
- 'dependencies'
- title: 'allcontributors'
order: 59
labels:
- 'allcontributors1'
- 'allcontributors2'
hide:
categories:
- 'merge'
- 'allcontributors'
contributors:
- 'GitHub'
- 'allcontributors'
replacers:
- search: 'i18n: '
- search: 'deps: '
signing:
active: always
armored: true
files: false
checksum:
files: false
announce:
twitter:
active: release
statusTemplate: src/jreleaser/twitter.tpl
http:
noticeable:
active: release
url: https://api.noticeable.io/graphql
authorization: bearer
bearerKeyword: Apikey
method: POST
headers:
Accept: application/json
Content-Type: application/json
assemble:
jlink:
jreleaser-standalone:
active: always
java:
version: 11
mainClass: org.jreleaser.cli.Main
imageName: '{{distributionName}}-{{projectEffectiveVersion}}'
executable: jreleaser
jdeps:
multiRelease: base
ignoreMissingDeps: true
additionalModuleNames:
- 'java.security.sasl'
- 'java.security.jgss'
- 'jdk.crypto.cryptoki'
- 'jdk.crypto.ec'
- 'jdk.localedata'
- 'jdk.net'
- 'jdk.security.auth'
- 'jdk.security.jgss'
targetJdks:
- path: '{{jdkPathPrefix}}/zulu17Osx/{{jdkFilePrefix}}-macosx_x64/zulu-17.jdk/Contents/Home'
platform: 'osx-x86_64'
- path: '{{jdkPathPrefix}}/zulu17OsxArm/{{jdkFilePrefix}}-macosx_aarch64/zulu-17.jdk/Contents/Home'
platform: 'osx-aarch_64'
- path: '{{jdkPathPrefix}}/zulu17Linux/{{jdkFilePrefix}}-linux_x64'
platform: 'linux-x86_64'
- path: '{{jdkPathPrefix}}/zulu17LinuxArm/{{jdkFilePrefix}}-linux_aarch64'
platform: 'linux-aarch_64'
- path: '{{jdkPathPrefix}}/zulu17LinuxMusl/{{jdkFilePrefix}}-linux_musl_x64'
platform: 'linux_musl-x86_64'
- path: '{{jdkPathPrefix}}/zulu17LinuxMuslArm/{{jdkFilePrefix}}-linux_musl_aarch64'
platform: 'linux_musl-aarch_64'
- path: '{{jdkPathPrefix}}/zulu17Windows/{{jdkFilePrefix}}-win_x64'
platform: 'windows-x86_64'
- path: '{{jdkPathPrefix}}/zulu17WindowsArm/{{jdkFilePrefix}}-win_aarch64'
platform: 'windows-aarch_64'
mainJar:
path: 'plugins/jreleaser/build/libs/jreleaser-{{projectVersion}}.jar'
jars:
- pattern: 'plugins/jreleaser/build/dependencies/flat/*.jar'
jpackage:
jreleaser-installer:
active: always
jlink: jreleaser-standalone
attachPlatform: true
applicationPackage:
appName: jreleaser
appVersion: '{{projectVersionNumber}}'
vendor: JReleaser
osx:
types: [pkg]
appName: JReleaser
packageName: JReleaser
packageIdentifier: org.jreleaser.cli
icon: 'src/media/jreleaser.icns'
resourceDir: 'src/jpackage/osx'
linux:
types: [deb,rpm]
maintainer: [email protected]
icon: 'src/media/icon_256x256.png'
windows:
types: [msi]
console: true
dirChooser: true
icon: 'src/media/jreleaser.ico'
resourceDir: 'src/jpackage/windows'
nativeImage:
jreleaser-native:
active: always
java:
version: 17
mainClass: org.jreleaser.cli.Main
imageName: '{{distributionName}}-{{projectEffectiveVersion}}'
executable: jreleaser
mainJar:
path: 'plugins/jreleaser/build/libs/jreleaser-{{projectVersion}}.jar'
jars:
- pattern: 'plugins/jreleaser/build/dependencies/flat/*.jar'
graalJdks:
- path: '{{jdkPathPrefix}}/graal17Osx/{{graalFilePrefix}}/Contents/Home'
platform: 'osx-x86_64'
- path: '{{jdkPathPrefix}}/graal17Linux/{{graalFilePrefix}}'
platform: 'linux-x86_64'
#- path: '{{jdkPathPrefix}}/graal17LinuxArm/{{graalFilePrefix}}'
# platform: 'linux-aarch_64'
- path: '{{jdkPathPrefix}}/graal17Windows/{{graalFilePrefix}}'
platform: 'windows-x86_64'
upx:
active: always
version: '3.96'
args:
- '-Duser.language=en'
- '-H:IncludeLocales=en,ca,de,es,fr,hi,it,ja,nl,pt_BR,zh_TW,ru,ko'
- '-H:Optimize=2'
- '-H:+RemoveUnusedSymbols'
distributions:
jreleaser:
java:
mainClass: org.jreleaser.cli.Main
flatpak:
continueOnError: true
active: always
componentId: org.jreleaser.cli
developerName: JReleaser
runtime: freedesktop
runtimeVersion: 21.08
finishArgs:
- --share=network
- --filesystem=host
categories:
- Developer Tools
repository:
active: release
owner: flathub
name: org.jreleaser.cli
chocolatey:
active: always
remoteBuild: true
title: JReleaser
iconUrl: 'https://rawcdn.githack.com/jreleaser/jreleaser/0934fa1fa3f0bd09c0c8c39fbdeb5df2ce507457/src/media/icon_128x128.png'
bucket:
active: release
jbang:
active: always
macports:
active: always
categories:
- devel
- java
maintainers:
- '@aalmiray'
repository:
active: release
name: jreleaser-macports
scoop:
active: always
bucket:
active: release
sdkman:
active: release
snap:
active: always
remoteBuild: true
base: core18
architectures:
- buildOn: [ amd64, arm64 ]
plugs:
- name: dot-config-files
attributes:
interface: personal-files
writes:
- $HOME/.jreleaser
reads:
- $HOME/.gnupg
- $HOME/.gitconfig
- $HOME/.config/jgit
localPlugs:
- network
- home
- dot-config-files
spec:
active: always
repository:
active: release
name: jreleaser-copr
artifacts:
- path: plugins/{{distributionName}}/build/distributions/{{distributionName}}-{{projectVersion}}.zip
transform: '{{distributionName}}/{{distributionName}}-{{projectEffectiveVersion}}.zip'
extraProperties:
skipSpec: true
- path: plugins/{{distributionName}}/build/distributions/{{distributionName}}-{{projectVersion}}.tar
transform: '{{distributionName}}/{{distributionName}}-{{projectEffectiveVersion}}.tar'
extraProperties:
skipFlatpak: true
jreleaser-ant-tasks:
artifacts:
- path: plugins/{{distributionName}}/build/distributions/{{distributionName}}-{{projectVersion}}.zip
transform: '{{distributionName}}/{{distributionName}}-{{projectEffectiveVersion}}.zip'
jreleaser-tool-provider:
type: SINGLE_JAR
artifacts:
- path: plugins/{{distributionName}}/build/libs/{{distributionName}}-{{projectVersion}}.jar
transform: '{{distributionName}}/{{distributionName}}-{{projectEffectiveVersion}}.jar'
jreleaser-standalone:
appImage:
continueOnError: true
active: always
componentId: org.jreleaser.cli
developerName: JReleaser
categories:
- Development
repository:
active: release
name: jreleaser-appimage
commitMessage: 'jreleaser {{tagName}}'
brew:
active: always
formulaName: jreleaser
multiPlatform: true
tap:
active: release
commitMessage: 'jreleaser {{tagName}}'
docker:
active: always
repository:
active: always
commitMessage: 'jreleaser {{tagName}}'
registries:
- serverName: DEFAULT
username: jreleaser
labels:
'org.opencontainers.image.title': 'jreleaser'
postCommands:
- 'VOLUME /workspace'
specs:
slim:
imageNames:
- 'jreleaser/jreleaser-{{dockerSpecName}}:{{tagName}}'
- 'jreleaser/jreleaser-{{dockerSpecName}}:latest'
matchers:
platform: 'linux-x86_64'
preCommands:
- 'ARG DEBIAN_FRONTEND=noninteractive'
- 'ENV TZ=Europe/Zurich'
- 'RUN apt-get update && apt-get install -y unzip binutils fakeroot rpm'
alpine:
imageNames:
- 'jreleaser/jreleaser-{{dockerSpecName}}:{{tagName}}'
- 'jreleaser/jreleaser-{{dockerSpecName}}:latest'
matchers:
platform: 'linux_musl-x86_64'
preCommands:
- 'RUN apk add unzip binutils fakeroot rpm bash'
jreleaser-installer:
type: NATIVE_PACKAGE
executable:
windowsExtension: exe
artifacts:
- path: '{{jpackageDir}}/JReleaser-{{projectVersionNumber}}-osx-x86_64.pkg'
transform: '{{distributionName}}/{{distributionName}}-{{projectEffectiveVersion}}-osx-x86_64.pkg'
platform: 'osx-x86_64'
- path: '{{jpackageDir}}/jreleaser_{{projectVersionNumber}}-1_amd64.deb'
transform: '{{distributionName}}/{{distributionName}}_{{projectEffectiveVersion}}-1_amd64.deb'
platform: 'linux-x86_64'
- path: '{{jpackageDir}}/jreleaser-{{projectVersionNumber}}-1.x86_64.rpm'
transform: '{{distributionName}}/{{distributionName}}-{{projectEffectiveVersion}}-1.x86_64.rpm'
platform: 'linux-x86_64'
- path: '{{jpackageDir}}/jreleaser-{{projectVersionNumber}}-windows-x86_64.msi'
transform: '{{distributionName}}/{{distributionName}}-{{projectEffectiveVersion}}-windows-x86_64.msi'
platform: 'windows-x86_64'
jreleaser-native:
type: NATIVE_IMAGE
executable:
windowsExtension: exe
artifacts:
- path: '{{nativeImageDir}}/{{distributionName}}-{{projectEffectiveVersion}}-osx-x86_64.zip'
platform: 'osx-x86_64'
- path: '{{nativeImageDir}}/{{distributionName}}-{{projectEffectiveVersion}}-linux-x86_64.zip'
platform: 'linux-x86_64'
#- path: '{{nativeImageDir}}/{{distributionName}}-{{projectEffectiveVersion}}-linux-aarch64.zip'
# platform: 'linux-aarch_64'
- path: '{{nativeImageDir}}/{{distributionName}}-{{projectEffectiveVersion}}-windows-x86_64.zip'
platform: 'windows-x86_64'
files:
artifacts:
- path: VERSION