-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjustfile
executable file
·71 lines (55 loc) · 2.12 KB
/
justfile
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
#!/usr/bin/env just --justfile
#!/usr/bin/env just --justfile
set export
home_dir := env_var('HOME')
JAVA_HOME := home_dir + "/.sdkman/candidates/java/22.3.r17-grl"
MAVEN_HOME := home_dir + "/.sdkman/candidates/maven/3.9.0"
# Maven build without tests
build:
mvn -DskipTests clean install
# Maven Verify
verify:
mvn clean verify
# Build samples
build-samples: build
cd samples && mvn clean install
cleanup:
rm -rf ~/.m2/repository/org/rodnansol/commit-teller-{core,cli}
clean-build: cleanup
./mvnw clean install
./mvnw package -Puber-jar -f commit-teller-cli/pom.xml
# Debug samples
debug-samples: build
cd samples && mvnDebug clean install -X
# Debug Multi Module Docs sample
debug-multi-module-docs: build
cd samples/multi-module/multi-module-docs && mvnDebug clean install -X
# Dry full-release
dry-release:
mvn clean -Prelease deploy -DaltDeploymentRepository=local::file:./target/staging-deploy
mvn jreleaser:full-release -Prelease -Djreleaser.dry.run
# Snapshot release
snapshot-release version: cleanup
./mvnw versions:set -DnewVersion={{version}}
./mvnw clean
./mvnw -Prelease,uber-jar deploy -DaltDeploymentRepository=local::file:./target/staging-deploy
./mvnw jreleaser:release -Prelease -N -Djreleaser-nexus-deploy.active=SNAPSHOT -Djreleaser-github-release.pre-release=true
# Draft release
draft-release version:
mvn versions:set -DnewVersion={{version}}
mvn jreleaser:release -Prelease -Djreleaser-github-release.draft=true -Djreleaser-nexus-deploy.active=NEVER -N
mvn versions:set -DnewVersion=999-SNAPSHOT
# Full-release
full-release version:
mvn versions:set -DnewVersion={{version}}
mvn clean -Prelease deploy -DaltDeploymentRepository=local::file:./target/staging-deploy
mvn jreleaser:full-release -Prelease N
mvn versions:set -DnewVersion=999-SNAPSHOT
announce-release version:
mvn versions:set -DnewVersion={{version}}
#mvn clean -Prelease deploy -DaltDeploymentRepository=local::file:./target/staging-deploy
mvn jreleaser:announce -Prelease -X -N
mvn versions:set -DnewVersion=999-SNAPSHOT
# JReleaser config
dry-release-config:
mvn -Prelease jreleaser:config -Djreleaser.dry.run