-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
justfile
executable file
·60 lines (48 loc) · 1.77 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
set export
home_dir := env_var('HOME')
JAVA_HOME := home_dir + "/.sdkman/candidates/java/current"
# Build project
build-project:
./mvnw clean install
# Build samples
build-samples:
./mvnw clean package -f samples/pom.xml
# Build everything
build-all: build-project build-samples
# dependencies tree for compile
dependencies:
mvn dependency:tree -Dscope=compile > dependencies.txt
# display updates
updates:
mvn versions:display-dependency-updates > updates.txt
# 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:
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
announce-release version:
mvn versions:set -DnewVersion={{version}}
#mvn clean -Prelease deploy -DaltDeploymentRepository=local::file:./target/staging-deploy
mvn jreleaser:announce -Prelease -N
mvn versions:set -DnewVersion=999-SNAPSHOT
# JReleaser config
dry-release-config:
mvn -Prelease jreleaser:config -Djreleaser.dry.run