-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdo.cmd
41 lines (39 loc) · 1.06 KB
/
do.cmd
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
@echo off
if [%1] == [help] (
echo w $V: set gradle wrapper
echo fixgit: fix permission flag on git index for required files
echo test: run unit tests
echo cv: check dependencies and Gradle updates
echo p: generate runnable JAR
echo dep: generate the project dependency report
echo oga: check for deprecated groupId and artifactId couples
)
if [%1] == [w] (
gradle wrapper --gradle-version=%2 --no-daemon
)
if [%1] == [fixgit] (
echo git update-index --chmod=+x gradlew
git update-index --chmod=+x gradlew
echo git update-index --chmod=+x build.sh
git update-index --chmod=+x build.sh
echo git update-index --chmod=+x run.sh
git update-index --chmod=+x run.sh
)
if [%1] == [test] (
gradlew clean cleanTest test --warning-mode all
)
if [%1] == [cv] (
gradlew dependencyUpdates
)
if [%1] == [cvnd] (
gradlew dependencyUpdates --no-daemon
)
if [%1] == [p] (
gradlew clean bootJar --warning-mode all
)
if [%1] == [dep] (
gradlew htmlDependencyReport
)
if [%1] == [oga] (
gradlew biz-lermitage-oga-gradle-check
)