-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrelease.bat
More file actions
43 lines (36 loc) · 947 Bytes
/
Copy pathrelease.bat
File metadata and controls
43 lines (36 loc) · 947 Bytes
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
@echo off
REM Set JAVA_HOME to JDK 21
set "JAVA_HOME=C:\Program Files\Java\jdk-21.0.12"
set "PATH=%JAVA_HOME%\bin;%PATH%"
echo Using Java version:
java -version
echo.
echo Starting Maven release process...
echo This will:
echo 1. Update version from SNAPSHOT to release version
echo 2. Build and test the project
echo 3. Sign artifacts with GPG
echo 4. Deploy to Maven Central
echo 5. Tag the release in Git
echo 6. Update to next SNAPSHOT version
echo.
echo Step 1: Preparing release...
call mvnw release:clean release:prepare -P release
if %errorlevel% neq 0 (
echo Release preparation failed!
pause
exit /b %errorlevel%
)
echo.
echo Step 2: Performing release...
call mvnw release:perform -P release
if %errorlevel% neq 0 (
echo Release perform failed!
pause
exit /b %errorlevel%
)
echo.
echo Release completed successfully!
echo Please verify the artifacts in Maven Central staging repository.
echo.
pause