-
Notifications
You must be signed in to change notification settings - Fork 0
/
justfile
72 lines (54 loc) · 1.51 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
72
set positional-arguments
#
# RECIPES
#
# Default is this help
default: help
# Print the available recipes
help:
@just --justfile {{justfile()}} --list
# Initializatize maven, build, and run the tests
all: initialize test build
# Initializatize maven
initialize:
mvn initialize --also-make
# Clean
clean:
mvn clean --also-make
# Build
build:
mvn -DskipTests package --also-make
# Run the tests
test:
mvn -Dtest=UnitTestSuite -Dsurefire.failIfNoSpecifiedTests=false test --also-make
# Run all tests
test-full:
mvn -Dtest=UnitFullTestSuite -Dsurefire.failIfNoSpecifiedTests=false test --also-make
# Install in the local repository
install:
mvn -DskipTests install --also-make
# Deploy snapshot to the maven repository
deploy-snapshot:
mvn clean deploy -DskipTests -P snapshot --also-make
# Deploy release to the maven repository
deploy-release:
mvn clean deploy -DskipTests -P release --also-make
# Prepape a new version
prepare-version *args='':
mvn versions:set -DnewVersion={{args}}
# Commit to the new version
commit-version:
mvn versions:commit
# Revert to the previous verison
revert-version:
mvn versions:revert
# Build the documentation
build-doc:
just --justfile any2json-documents/justfile build
mvn -P documentation site site:stage
# Update all plugins and dependencies
update-dependencies:
mvn -DcreateChecksum=true versions:display-dependency-updates
# Update all plugins and dependencies
update-plugins:
mvn -DcreateChecksum=true versions:display-plugin-updates