forked from grimmory-tools/grimmory
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJustfile
More file actions
47 lines (35 loc) · 1.44 KB
/
Copy pathJustfile
File metadata and controls
47 lines (35 loc) · 1.44 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
45
46
47
set shell := ["bash", "-eu", "-o", "pipefail", "-c"]
gradle := "./gradlew"
# Show the backend recipes available in this directory.
help:
@just --list
# Print the backend Gradle and JVM versions.
version:
{{ gradle }} --version
# Run the backend locally with the requested Spring profile. Default: `dev`.
run profile='dev':
{{ gradle }} bootRun --args="--spring.profiles.active={{ profile }}"
# Build the backend jar and run the standard Gradle build lifecycle.
build:
{{ gradle }} build --no-daemon --parallel --build-cache
# Build the backend jar and export build/openapi/grimmory-openapi.json.
openapi-export:
{{ gradle }} buildOpenApiArtifacts --no-daemon --parallel --build-cache
# Run the backend test suite.
test:
{{ gradle }} test --no-daemon --parallel --build-cache
# Run a single backend test class, for example `just test-class test_class=org.booklore.service.BookServiceTest`.
test-class test_class:
{{ gradle }} test --tests "{{ test_class }}" --no-daemon --parallel --build-cache
# Run tests and generate JaCoCo coverage output.
coverage:
{{ gradle }} test jacocoTestReport --no-daemon --parallel --build-cache
# Run the Gradle `check` lifecycle used for local backend verification.
check:
{{ gradle }} check --no-daemon --parallel --build-cache
# Remove backend build outputs.
clean:
{{ gradle }} clean --no-daemon
# List the available backend Gradle tasks.
tasks:
{{ gradle }} tasks --all --no-daemon