-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
88 lines (73 loc) · 1.98 KB
/
Makefile
File metadata and controls
88 lines (73 loc) · 1.98 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
.PHONY: help build clean test run format lint check all
# Default target
help:
@echo "📚 Java Blockchain Project - Available Commands"
@echo ""
@echo "Usage: make [target]"
@echo ""
@echo "Targets:"
@echo " build 🔨 Build the project"
@echo " clean 🧹 Clean build artifacts"
@echo " test ✅ Run all tests"
@echo " test-watch 👀 Run tests in watch mode"
@echo " run 🚀 Run the application"
@echo " format 🎨 Format code using eclipse-formatter"
@echo " lint 🔍 Check code quality"
@echo " check ⚙️ Build and run tests"
@echo " all 🎯 Clean, build, and test"
@echo " help ❓ Show this help message"
@echo ""
# Build the project
build:
@echo "🔨 Building project..."
./gradlew build
# Clean build artifacts
clean:
@echo "🧹 Cleaning build artifacts..."
./gradlew clean
# Run all tests
test:
@echo "✅ Running tests..."
./gradlew test
# Run tests in watch mode
test-watch:
@echo "👀 Running tests in watch mode..."
./gradlew test --continuous
# Run the application
run:
@echo "🚀 Running application..."
./gradlew run
# Format code
format:
@echo "🎨 Formatting code..."
./gradlew spotlessApply
# Check code quality
lint:
@echo "🔍 Running code quality checks..."
./gradlew check
# Build and test
check: clean build test
@echo "⚙️ Build and tests completed!"
# Clean, build, and test (comprehensive check)
all: clean build test
@echo "🎯 All tasks completed successfully!"
# Watch for changes and rebuild
watch:
@echo "👀 Watching for changes..."
./gradlew build --continuous
# Install dependencies
deps:
@echo "📦 Updating dependencies..."
./gradlew dependencies --refresh-dependencies
# Generate IDE configuration
ide:
@echo "💻 Generating IDE configuration..."
./gradlew eclipseClean eclipse
# Show gradle properties
props:
@echo "📋 Gradle properties:"
./gradlew properties
# Print gradle version
version:
@echo "Version info:"
./gradlew --version