Skip to content

Commit b7e1cdb

Browse files
authored
chore: added 'make build' and fixed gradle warning (#284)
* chore: added 'make build' and fixed gardle warning * chore: makefile fixes
1 parent c0cbc6a commit b7e1cdb

2 files changed

Lines changed: 13 additions & 8 deletions

File tree

Makefile

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,19 @@
1-
.PHONY: help test test-integration lint fmt
1+
.PHONY: help build test test-integration lint fmt clean all
22

33
# Default target when 'make' is run without arguments
44
help:
55
@echo "Available targets:"
6-
@echo " test - Run unit tests"
6+
@echo " build - Compile the project"
7+
@echo " test - Run unit tests"
78
@echo " test-integration - Run integration tests"
8-
@echo " lint - Run static analysis and checkstyle"
9-
@echo " fmt - Auto-format code using Spotless"
9+
@echo " lint - Run static analysis and checkstyle"
10+
@echo " fmt - Auto-format code using Spotless"
11+
@echo " clean - Clean build artifacts"
12+
@echo " all - Run all tests and lint"
13+
14+
# Compile the project
15+
build:
16+
./gradlew assemble
1017

1118
# Run unit tests
1219
test:
@@ -24,11 +31,9 @@ lint:
2431
fmt:
2532
./gradlew spotlessApply
2633

27-
2834
# Clean build artifacts
2935
clean:
3036
./gradlew clean
3137

32-
# Run all tests
38+
# Run all tests and lint
3339
all: test lint
34-
@echo "All checks completed"

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ testing {
143143
// Ref: https://github.com/diffplug/spotless/tree/main/plugin-gradle
144144
spotless {
145145
// comment out below to run spotless as part of the `check` task
146-
enforceCheck false
146+
enforceCheck = false
147147
format 'misc', {
148148
// define the files (e.g. '*.gradle', '*.md') to apply `misc` to
149149
target '.gitignore'

0 commit comments

Comments
 (0)