-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
do.cmd
48 lines (46 loc) · 1.05 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
42
43
44
45
46
47
48
@echo off
if [%1] == [help] (
echo t test plugin
echo b compile
echo c clean
echo i install plugin's jar, sources and javadoc in local repository
echo w $V set or upgrade Maven wrapper to version $V
echo cv check plugins and dependencies versions
echo uv update plugins and dependencies versions
echo dt show dependencies tree
echo pub build, sign, then upload to Maven Central
)
if [%1] == [t] (
mvnw --no-transfer-progress --show-version clean verify
)
if [%1] == [b] (
mvnw clean compile -DskipTests
)
if [%1] == [c] (
mvnw clean
)
if [%1] == [i] (
mvnw clean install -DskipTests
)
if [%1] == [w] (
mvn -N io.takari:maven:wrapper -Dmaven=%2
)
if [%1] == [cv] (
mvnw versions:display-property-updates
)
if [%1] == [uv] (
mvnw versions:update-properties
)
if [%1] == [dt] (
mvnw dependency:tree
)
if [%1] == [prepare] (
echo DON'T FORGET TO USE JDK8
pause
mvnw clean release:prepare
)
if [%1] == [pub] (
echo DON'T FORGET TO USE JDK8
pause
mvnw release:perform -P ossrh
)