Skip to content

Commit 59cb1af

Browse files
committed
chore: start jreleaser setup for java binary
1 parent 58f9aa2 commit 59cb1af

1 file changed

Lines changed: 14 additions & 12 deletions

File tree

jreleaser.yml.template

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -20,22 +20,29 @@ project:
2020
height: 256
2121
width: 256
2222
primary: true
23+
languages:
24+
java:
25+
groupId: com.diffplug.spotless.cli
26+
artifactId: spotless-cli
27+
# The minimum Java version required by consumers to run the application.
28+
version: 21
2329

2430
packagers:
2531
brew:
26-
multiPlatform: true
2732
chocolatey:
2833
username: "@Env.JRELEASER_CHOCOLATEY_USER@" # does not support name templates, so use gradle templating
2934
extraProperties:
3035
packageSourceUrl: https://github.com/diffplug/chocolatey-bucket
3136
repository:
3237
branch: main
3338
branchPush: main
39+
# future setup
40+
jbang:
3441

3542
distributions:
3643
spotless-cli:
3744
stereotype: CLI
38-
type: BINARY
45+
type: JAVA_BINARY
3946
executable:
4047
name: spotless
4148
tags:
@@ -44,20 +51,15 @@ distributions:
4451
- code-style
4552

4653
artifacts:
47-
- path: app/build/prepared-release-zips/spotless-{{projectVersion}}-osx-aarch_64.zip
48-
platform: osx-aarch_64
49-
- path: app/build/prepared-release-zips/spotless-{{projectVersion}}-osx-x86_64.zip
50-
platform: osx-x86_64
51-
- path: app/build/prepared-release-zips/spotless-{{projectVersion}}-linux-aarch_64.zip
52-
platform: linux-aarch_64
53-
- path: app/build/prepared-release-zips/spotless-{{projectVersion}}-linux-x86_64.zip
54-
platform: linux-x86_64
55-
- path: app/build/prepared-release-zips/spotless-{{projectVersion}}-windows-x86_64.zip
56-
platform: windows-x86_64
54+
- path: app/build/distributions/spotless-cli-{{projectVersion}}.zip
5755

5856
brew:
5957
templateDirectory: app/src/jreleaser/distributions/spotless-cli/brew
6058

6159
chocolatey:
6260
templateDirectory: app/src/jreleaser/distributions/spotless-cli/chocolatey
6361
iconUrl: https://cdn.statically.io/gh/diffplug/spotless-cli/v{{projectVersion}}/docs/logo/spotless-brush-256.png
62+
63+
# future setup
64+
jbang:
65+
templateDirectory: app/src/jreleaser/distributions/spotless-cli/jbang

0 commit comments

Comments
 (0)