-
Notifications
You must be signed in to change notification settings - Fork 32
Expand file tree
/
Copy pathMakefile
More file actions
45 lines (34 loc) · 1.05 KB
/
Makefile
File metadata and controls
45 lines (34 loc) · 1.05 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
# Simple Makefile for Maven build without tests
.PHONY: build clean package help
# Maven wrapper
MVN = ./mvnw
# Default target
all: install
# Build the project (clean and package without tests)
build: clean package
# Clean the project
clean:
$(MVN) clean
install:
$(MVN) install -DskipTests
# Package the project without running tests
package:
$(MVN) package -DskipTests
# Combined clean and package
package-with-clean:
$(MVN) clean package -DskipTests
lint:
$(MVN) -T12C -Pspotless spotless:check
# Automatically format the code to conform to a style guide.
# Modifies the code to ensure consistent formatting.
format:
$(MVN) -T12C -Pspotless spotless:apply
# Display help
help:
@echo "Available targets:"
@echo " all - Same as 'package' (default)"
@echo " build - Clean and package (without tests)"
@echo " clean - Clean the project"
@echo " package - Package without running tests"
@echo " package-with-clean - Clean and package in one command"
@echo " help - Show this help message"