-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjustfile
executable file
·60 lines (48 loc) · 1.82 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
#!/usr/bin/env just --justfile
# 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
# 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:
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
# Draft release
draft-release version: (create-jbang-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
# Creates a JBang "release"
create-jbang-release version:
./scripts/jbang-version-release.sh {{version}}