-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
44 lines (35 loc) · 1.23 KB
/
Copy pathjustfile
File metadata and controls
44 lines (35 loc) · 1.23 KB
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
_default: test-show-only-failed
[group('git')]
[arg('type', pattern='feat|fix|refactor|perf|style|test|docs|build|ops|chore')]
[arg('scope', short='s', long='scope')]
[arg('breaking', short='B', long='breaking', value='1')]
[arg('body', short='b', long='body')]
[arg('footer', short='f', long='footer')]
commit type description scope='' breaking='0' body='' footer='': format add-all
#!/bin/env sh
if [ -n "{{scope}}" ]; then scope="({{scope}})"; fi
if [ "{{breaking}}" -eq "1" ]; then breaking="!"; fi
git commit -m "{{type}}${scope}${breaking}: {{description}}" -m "{{body}}" -m "{{footer}}"
[group('git')]
add-all:
git add -A
build *args:
./gradlew build {{args}}
[group('test')]
test *args:
./gradlew test {{args}}
[group('test')]
test-show-only-failed: (test "test" "-PtestLogEvents=failed")
[group('chore')]
clean-whitespace:
# Recursive, the package directories contain sub packages since the library
# was split per format. `just format` already covers this via spotless.
find lib/src -name '*.java' -exec sed -i 's/[ \t]*$//' {} +
[group('chore')]
format:
./gradlew spotlessApply
[group('setup')]
setup: gradle-wrapper
[group('setup')]
gradle-wrapper:
gradle wrapper --gradle-version 9.2.1