-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathMakefile
More file actions
75 lines (63 loc) · 2.1 KB
/
Makefile
File metadata and controls
75 lines (63 loc) · 2.1 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
.SHELLFLAGS := -e -c
.PHONY: all
all:clean build integration-test examples
.PHONY: build
build:clean
@echo "🔨 Coverage reports..."
@./gradlew --rerun-tasks kotlinUpgradePackageLock \
build \
koverLog koverXmlReport koverHtmlReport
@echo "✅ Build complete!"
.PHONY: test
test:
@echo "🧪 Running tests..."
@./gradlew kotlinWasmUpgradePackageLock build --rerun-tasks
@echo "✅ Tests complete!"
.PHONY: scan
scan:
@echo "🔎 Running build with scan..."
@./gradlew clean kotlinWasmUpgradePackageLock kotlinUpgradePackageLock build --scan --rerun-tasks
@echo "✅ Build with scan is complete!"
.PHONY: apidocs
apidocs:
@echo "📚 Generating API documentation..."
@rm -rf docs/public/apidocs && \
@./gradlew clean :docs:dokkaGenerate
@echo "✅ API docs generated!"
.PHONY: knit
knit:
@echo "🪡🧶 Running Knit check ..."
@./gradlew :docs:clean knit knitCheck :docs:test --no-configuration-cache
@./gradlew :docs:test
@echo "✅ Knit check completed!"
.PHONY: clean
clean:
@echo "🧹 Cleaning build artifacts..."
@./gradlew --stop
@rm -rf **/kotlin-js-store **/build **/.gradle/configuration-cache
@echo "✅ Clean complete!"
.PHONY: lint
lint:
@echo "🕵️♀️ Inspecting code..."
@./gradlew detekt --rerun-tasks
@echo "✅ Code inspection complete!"
.PHONY: publish
publish:
@echo "📦 Publishing to project repository (build/project-repo)..."
@rm -rf build/project-repo
@./gradlew publishAllPublicationsToProjectRepository -Pversion=1-SNAPSHOT --rerun-tasks
@echo "✅ Published to build/project-repo!"
.PHONY: sync
sync:
git submodule update --init --recursive --depth=1
.PHONY: integration-test
integration-test:clean publish
@echo "🧪🧩 Starting Integration tests..."
@(cd gradle-plugin-integration-tests && ./gradlew clean kotlinUpgradePackageLock build -PkotlinxSchemaVersion=1-SNAPSHOT --no-daemon --stacktrace)
@echo "✅ Integration tests complete!"
.PHONY: examples
examples:
@echo "Running examples..."
@(cd examples/gradle-google-ksp && ./gradlew clean build --no-daemon --rerun-tasks)
@(cd examples/maven-ksp && mvn clean package)
@echo "✅ Examples complete!"