Skip to content

Commit 28be204

Browse files
committed
chore: restructure jreleaser configuration
1 parent 7110183 commit 28be204

File tree

4 files changed

+11
-72
lines changed

4 files changed

+11
-72
lines changed

app/src/jreleaser/distributions/spotless-cli/chocolatey/.github/workflows/push.yml.tpl

Lines changed: 0 additions & 35 deletions
This file was deleted.

app/src/jreleaser/distributions/spotless-cli/chocolatey/.github/workflows/trigger.yml.tpl

Lines changed: 0 additions & 31 deletions
This file was deleted.

build-logic/src/main/groovy/buildlogic.spotless-yaml-conventions.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ plugins {
44

55
spotless {
66
yaml {
7-
target '.github/workflows/*.yml', '*.yml'
8-
prettier()
7+
target '.github/workflows/*.yml', '*.yml', '*.yml.template'
8+
prettier().config(['parser': 'yaml'])
99
}
1010
}

jreleaser.yml.template

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,15 @@ project:
2121
width: 256
2222
primary: true
2323

24+
packagers:
25+
brew:
26+
multiPlatform: true
27+
chocolatey:
28+
username: "@Env.JRELEASER_CHOCOLATEY_USER@" # does not support name templates, so use gradle templating
29+
repository:
30+
branch: main
31+
branchPush: main
32+
2433
distributions:
2534
spotless-cli:
2635
stereotype: CLI
@@ -46,11 +55,7 @@ distributions:
4655

4756
brew:
4857
templateDirectory: app/src/jreleaser/distributions/spotless-cli/brew
49-
multiPlatform: true
5058

5159
chocolatey:
5260
templateDirectory: app/src/jreleaser/distributions/spotless-cli/chocolatey
53-
username: @Env.JRELEASER_CHOCOLATEY_USER@ # does not support name templates, so use gradle templating
5461
iconUrl: https://cdn.statically.io/gh/diffplug/spotless-cli/v{{projectVersion}}/docs/logo/spotless-brush-256.png
55-
repository:
56-
branch: main

0 commit comments

Comments
 (0)