-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
37 lines (28 loc) · 1.17 KB
/
justfile
File metadata and controls
37 lines (28 loc) · 1.17 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
# Helper recipes for working with the SumUp Java SDK repo.
# Show all available commands.
default:
@just --list
# Regenerate the OpenAPI output using the Go-based wrapper.
generate:
go -C codegen run . generate --spec ../openapi.json
# Run unit tests for the Go generator code.
go-test:
go -C codegen test ./...
# Build the SDK (requires JDK 21 available via JAVA_HOME or java_home on macOS).
build:
JAVA_HOME="${JAVA_HOME:-$(/usr/libexec/java_home -v 21)}" ./gradlew build
# Generate aggregated Javadocs for all modules.
javadoc:
JAVA_HOME="${JAVA_HOME:-$(/usr/libexec/java_home -v 21)}" ./gradlew aggregateJavadoc
# Run the basic example (uses the same Java toolchain helper as build).
example-basic:
JAVA_HOME="${JAVA_HOME:-$(/usr/libexec/java_home -v 21)}" ./gradlew :examples:basic:run
# Format all Java sources with Spotless.
format:
JAVA_HOME="${JAVA_HOME:-$(/usr/libexec/java_home -v 21)}" ./gradlew spotlessApply
# Check formatting without modifying files.
format-check:
JAVA_HOME="${JAVA_HOME:-$(/usr/libexec/java_home -v 21)}" ./gradlew spotlessCheck
# Run the full Gradle test suite.
test:
JAVA_HOME="${JAVA_HOME:-$(/usr/libexec/java_home -v 21)}" ./gradlew test