-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathjustfile
84 lines (63 loc) · 1.94 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
73
74
75
76
77
78
79
80
81
82
83
84
set positional-arguments
set dotenv-required
set dotenv-load
export TF_CPP_MIN_LOG_LEVEL := "3"
#
# 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
# Clean
clean:
mvn clean
# Build
build:
mvn -U -DskipTests package
# Run the tests
test:
mvn -Dtest=UnitTestSuite -Dsurefire.failIfNoSpecifiedTests=false test
# Run all tests
test-full:
mvn -Dtest=FullTestSuite -Dsurefire.failIfNoSpecifiedTests=false test
# Install in the local repository
install:
mvn -DskipTests install
# Deploy snapshot to the maven repository
deploy-snapshot:
mvn clean deploy -DskipTests -P snapshot
# Deploy release to the maven repository
deploy-release:
mvn clean deploy -DskipTests -P release
# 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: copy-pdfs
mkdocs build --config-file ./archery-documents/mkdocs.yml --site-dir ../target/docs
mvn -P documentation site site:stage
# Serve the documentation
serve-doc: copy-pdfs
mkdocs serve --config-file ./archery-documents/mkdocs.yml
# 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
@copy-pdfs:
cp ./archery-documents/whitepapers/Semi-structured\ Document\ Feature\ Extraction/misc/main.pdf ./archery-documents/docs/resources/feature-extraction.pdf
cp ./archery-documents/whitepapers/Table\ Layout\ Regular\ Expression\ -\ Layex/misc/main.pdf ./archery-documents/docs/resources/layex.pdf