-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeploy.bat
54 lines (47 loc) · 1.37 KB
/
deploy.bat
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
@echo off
REM Change directory to the project's root directory
cd /d "%~dp0"
REM Step 1: Clean and install the Maven project
echo Running Maven clean install...
mvn clean install
if %errorlevel% neq 0 (
echo [ERROR] Maven clean install failed. Exiting.
exit /b %errorlevel%
)
REM Step 2: Sign the source JAR
echo Signing the source JAR...
gpg -ab target/spring-boot-starter-auth-1.0.3-sources.jar
if %errorlevel% neq 0 (
echo [ERROR] Signing source JAR failed. Exiting.
exit /b %errorlevel%
)
REM Step 3: Sign the POM file
echo Signing the POM file...
gpg -ab target/spring-boot-starter-auth-1.0.3.pom
if %errorlevel% neq 0 (
echo [ERROR] Signing POM file failed. Exiting.
exit /b %errorlevel%
)
REM Step 4: Sign the Javadoc JAR
echo Signing the Javadoc JAR...
gpg -ab target/spring-boot-starter-auth-1.0.3-javadoc.jar
if %errorlevel% neq 0 (
echo [ERROR] Signing Javadoc JAR failed. Exiting.
exit /b %errorlevel%
)
REM Step 5: Sign the main JAR
echo Signing the main JAR...
gpg -ab target/spring-boot-starter-auth-1.0.3.jar
if %errorlevel% neq 0 (
echo [ERROR] Signing main JAR failed. Exiting.
exit /b %errorlevel%
)
REM Step 6: Deploy the Maven project
echo Deploying Maven project...
mvn clean deploy
if %errorlevel% neq 0 (
echo [ERROR] Maven deploy failed. Exiting.
exit /b %errorlevel%
)
echo [SUCCESS] All steps completed successfully!
pause