Skip to content

Commit 8243cfc

Browse files
committed
adding jreleaser
1 parent 8b15baa commit 8243cfc

File tree

4 files changed

+236
-0
lines changed

4 files changed

+236
-0
lines changed

.github/images/redis-logo.png

16.4 KB
Loading

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,6 @@ override.tf.json
3636
# Ignore CLI configuration files
3737
.terraformrc
3838
terraform.rc
39+
40+
out
41+

LICENCE.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
Copyright (c) 2025 Redis Inc.
2+
3+
Permission is hereby granted, free of charge, to any person
4+
obtaining a copy of this software and associated documentation
5+
files (the "Software"), to deal in the Software without
6+
restriction, including without limitation the rights to use,
7+
copy, modify, merge, publish, distribute, sublicense, and/or sell
8+
copies of the Software, and to permit persons to whom the
9+
Software is furnished to do so, subject to the following
10+
conditions:
11+
12+
The above copyright notice and this permission notice shall be
13+
included in all copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
17+
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
18+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
19+
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
20+
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21+
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
22+
OTHER DEALINGS IN THE SOFTWARE.

jreleaser.yml

Lines changed: 211 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,211 @@
1+
project:
2+
name: redis-cloud-autoscaler
3+
description: Prometheus driven scaler for Redis Cloud
4+
longDescription: |
5+
Application that allows for rule-driven scaling of a Redis Cloud Database
6+
based off of Prometheus Alert Manager webhooks and Crons
7+
links:
8+
homepage: https://github.com/redis-field-engineering/redis-cloud-autoscaler
9+
documentation: https://github.com/redis-field-engineering/redis-cloud-autoscaler
10+
authors:
11+
- Steve Lorello
12+
license: MIT
13+
inceptionYear: 2025
14+
stereotype: WEB
15+
vendor: Redis
16+
icons:
17+
- url: https://raw.githubusercontent.com/redis-field-engineering/redis-cloud-autoscaler/main/.github/images/redis-logo.png
18+
width: 256
19+
height: 256
20+
languages:
21+
java:
22+
groupId: com.redis
23+
version: 17
24+
multiProject: true
25+
mainClass: com.redis.autoscaler.AutoscalerApplication
26+
tags: ['autoscaling', 'redis', 'prometheus', 'java', 'cloud']
27+
28+
platform:
29+
replacements:
30+
aarch_64: aarch64
31+
32+
release:
33+
github:
34+
overwrite: true
35+
sign: true
36+
issues:
37+
enabled: true
38+
changelog:
39+
formatted: ALWAYS
40+
preset: conventional-commits
41+
contributors:
42+
format: '- {{contributorName}}{{#contributorUsernameAsLink}} ({{.}}){{/contributorUsernameAsLink}}'
43+
contentTemplate: 'src/jreleaser/changelog.tpl'
44+
extraProperties:
45+
categorizeScopes: true
46+
labelers:
47+
- label: 'i18n'
48+
title: 'regex:^(?:i18n(?:\(.*\))?!?):\s.*'
49+
order: 120
50+
- label: 'dependencies'
51+
title: 'regex:^(?:deps(?:\(.*\))?!?):\s.*'
52+
order: 130
53+
- label: 'allcontributors1'
54+
title: 'regex:^docs: update .all-contributorsrc.*'
55+
order: -1
56+
- label: 'allcontributors2'
57+
title: 'regex:^docs: update CONTRIBUTORS.md.*'
58+
order: -2
59+
categories:
60+
- title: '🌐 Translation'
61+
key: 'i18n'
62+
order: 70
63+
labels:
64+
- 'i18n'
65+
- title: '⚙️ Dependencies'
66+
key: 'dependencies'
67+
order: 80
68+
labels:
69+
- 'dependencies'
70+
- title: 'allcontributors'
71+
order: 59
72+
labels:
73+
- 'allcontributors1'
74+
- 'allcontributors2'
75+
hide:
76+
categories:
77+
- 'merge'
78+
- 'allcontributors'
79+
contributors:
80+
- 'GitHub'
81+
- 'allcontributors'
82+
- 'dependabot'
83+
replacers:
84+
- search: 'i18n: '
85+
- search: 'deps: '
86+
87+
signing:
88+
active: ALWAYS
89+
armored: true
90+
91+
deploy:
92+
maven:
93+
nexus2:
94+
maven-central:
95+
active: ALWAYS
96+
url: https://s01.oss.sonatype.org/service/local
97+
snapshotUrl: https://s01.oss.sonatype.org/content/repositories/snapshots
98+
closeRepository: true
99+
releaseRepository: true
100+
stagingRepositories:
101+
- build/repos/local/release
102+
103+
announce:
104+
slack:
105+
active: RELEASE
106+
channel: '#field-engineering-announcements'
107+
message: '🧨 Redis Cloud Autoscaler {{projectVersion}} has been released! {{releaseNotesUrl}}'
108+
109+
assemble:
110+
jlink:
111+
redis-cloud-autoscaler-standalone:
112+
active: ALWAYS
113+
java:
114+
version: 21
115+
imageName: '{{distributionName}}-{{projectEffectiveVersion}}'
116+
executable: redis-cloud-autoscaler
117+
fileSets:
118+
- input: '.'
119+
includes:
120+
- LICENSE
121+
jdeps:
122+
multiRelease: base
123+
ignoreMissingDeps: true
124+
targets:
125+
- 'autoscaler/redis-cloud-autoscaler/build/libs/redis-cloud-autoscaler-{{projectVersion}}.jar'
126+
additionalModuleNames:
127+
- 'java.security.sasl'
128+
- 'java.security.jgss'
129+
- 'jdk.crypto.cryptoki'
130+
- 'jdk.crypto.ec'
131+
- 'jdk.localedata'
132+
- 'jdk.net'
133+
- 'jdk.security.auth'
134+
- 'jdk.security.jgss'
135+
targetJdks:
136+
- path: '{{jdkPathPrefix}}/zulu21Osx/{{jdkFilePrefix}}-macosx_x64/zulu-21.jdk/Contents/Home'
137+
platform: 'osx-x86_64'
138+
- path: '{{jdkPathPrefix}}/zulu21OsxArm/{{jdkFilePrefix}}-macosx_aarch64/zulu-21.jdk/Contents/Home'
139+
platform: 'osx-aarch_64'
140+
- path: '{{jdkPathPrefix}}/zulu21Linux/{{jdkFilePrefix}}-linux_x64'
141+
platform: 'linux-x86_64'
142+
- path: '{{jdkPathPrefix}}/zulu21LinuxArm/{{jdkFilePrefix}}-linux_aarch64'
143+
platform: 'linux-aarch_64'
144+
- path: '{{jdkPathPrefix}}/zulu21LinuxMusl/{{jdkFilePrefix}}-linux_musl_x64'
145+
platform: 'linux_musl-x86_64'
146+
- path: '{{jdkPathPrefix}}/zulu21LinuxMuslArm/{{jdkFilePrefix}}-linux_musl_aarch64'
147+
platform: 'linux_musl-aarch_64'
148+
- path: '{{jdkPathPrefix}}/zulu21Windows/{{jdkFilePrefix}}-win_x64'
149+
platform: 'windows-x86_64'
150+
- path: '{{jdkPathPrefix}}/zulu21WindowsArm/{{jdkFilePrefix}}-win_aarch64'
151+
platform: 'windows-aarch_64'
152+
mainJar:
153+
path: 'autoscaler/redis-cloud-autoscaler/build/libs/redis-cloud-autoscaler-{{projectVersion}}.jar'
154+
jars:
155+
- pattern: 'autoscaler/redis-cloud-autoscaler/build/dependencies/flat/*.jar'
156+
157+
distributions:
158+
redis-cloud-autoscaler:
159+
docker:
160+
active: ALWAYS
161+
continueOnError: true
162+
repository:
163+
active: ALWAYS
164+
commitMessage: 'redis-cloud-autoscaler {{tagName}}'
165+
registries:
166+
- serverName: DEFAULT
167+
repositoryName: redis-cloud-autoscaler
168+
labels:
169+
'org.opencontainers.image.title': 'redis-cloud-autoscaler'
170+
imageNames:
171+
- 'redis-cloud-autoscaler/{{distributionName}}:{{tagName}}'
172+
- 'redis-cloud-autoscaler/{{distributionName}}:latest'
173+
buildx:
174+
enabled: true
175+
platforms:
176+
- 'linux/amd64'
177+
- 'linux/arm64'
178+
scoop:
179+
active: ALWAYS
180+
continueOnError: true
181+
repository:
182+
active: RELEASE
183+
name: 'scoop'
184+
commitMessage: 'redis-cloud-autoscaler {{tagName}}'
185+
artifacts:
186+
- path: plugins/{{distributionName}}/build/distributions/{{distributionName}}-{{projectVersion}}.zip
187+
transform: '{{distributionName}}/{{distributionName}}-{{projectEffectiveVersion}}.zip'
188+
extraProperties:
189+
skipSpec: true
190+
- path: plugins/{{distributionName}}/build/distributions/{{distributionName}}-{{projectVersion}}.tar
191+
transform: '{{distributionName}}/{{distributionName}}-{{projectEffectiveVersion}}.tar'
192+
extraProperties:
193+
skipFlatpak: true
194+
195+
redis-cloud-autoscaler-standalone:
196+
brew:
197+
active: ALWAYS
198+
continueOnError: true
199+
formulaName: redis-cloud-autoscaler
200+
multiPlatform: true
201+
repository:
202+
active: RELEASE
203+
commitMessage: 'redis-cloud-autoscaler {{tagName}}'
204+
205+
files:
206+
artifacts:
207+
- path: VERSION
208+
extraProperties:
209+
skipChecksum: true
210+
skipSigning: true
211+
skipSbom: true

0 commit comments

Comments
 (0)