mirror of
https://github.com/arsvendg/Stirling-PDF.git
synced 2026-07-16 19:33:11 +02:00
tauri jdk25 and docs (#5814)
This commit is contained in:
@@ -147,7 +147,7 @@ jobs:
|
|||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||||
|
|
||||||
- name: Set up JDK 21
|
- name: Set up JDK 25
|
||||||
uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5.2.0
|
uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5.2.0
|
||||||
with:
|
with:
|
||||||
java-version: "25"
|
java-version: "25"
|
||||||
|
|||||||
@@ -59,10 +59,10 @@ jobs:
|
|||||||
pre-commit run trailing-whitespace --all-files -c .pre-commit-config.yaml
|
pre-commit run trailing-whitespace --all-files -c .pre-commit-config.yaml
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
|
|
||||||
- name: Set up JDK 21
|
- name: Set up JDK 25
|
||||||
uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5.2.0
|
uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5.2.0
|
||||||
with:
|
with:
|
||||||
java-version: 21
|
java-version: "25"
|
||||||
distribution: "temurin"
|
distribution: "temurin"
|
||||||
|
|
||||||
- name: Setup Gradle
|
- name: Setup Gradle
|
||||||
|
|||||||
@@ -102,10 +102,10 @@ jobs:
|
|||||||
toolchain: stable
|
toolchain: stable
|
||||||
targets: ${{ (matrix.platform == 'macos-15' || matrix.platform == 'macos-15-intel') && 'aarch64-apple-darwin,x86_64-apple-darwin' || '' }}
|
targets: ${{ (matrix.platform == 'macos-15' || matrix.platform == 'macos-15-intel') && 'aarch64-apple-darwin,x86_64-apple-darwin' || '' }}
|
||||||
|
|
||||||
- name: Set up JDK 21
|
- name: Set up JDK 25
|
||||||
uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5.2.0
|
uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5.2.0
|
||||||
with:
|
with:
|
||||||
java-version: "21"
|
java-version: "25"
|
||||||
distribution: "temurin"
|
distribution: "temurin"
|
||||||
|
|
||||||
- name: Setup Gradle
|
- name: Setup Gradle
|
||||||
|
|||||||
@@ -32,10 +32,10 @@ jobs:
|
|||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||||
|
|
||||||
- name: Set up JDK 21
|
- name: Set up JDK 25
|
||||||
uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5.2.0
|
uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5.2.0
|
||||||
with:
|
with:
|
||||||
java-version: "21"
|
java-version: "25"
|
||||||
distribution: "temurin"
|
distribution: "temurin"
|
||||||
|
|
||||||
- name: Setup Gradle
|
- name: Setup Gradle
|
||||||
|
|||||||
@@ -308,7 +308,7 @@ The frontend is organized with a clear separation of concerns:
|
|||||||
|
|
||||||
## Important Notes
|
## Important Notes
|
||||||
|
|
||||||
- **Java Version**: Minimum JDK 17, supports and recommends JDK 21
|
- **Java Version**: Minimum JDK 21, supports and recommends JDK 25
|
||||||
- **Lombok**: Used extensively - ensure IDE plugin is installed
|
- **Lombok**: Used extensively - ensure IDE plugin is installed
|
||||||
- **File Persistence**:
|
- **File Persistence**:
|
||||||
- **Backend**: Designed to be stateless - files are processed in memory/temp locations only
|
- **Backend**: Designed to be stateless - files are processed in memory/temp locations only
|
||||||
|
|||||||
+3
-3
@@ -11,7 +11,7 @@ This guide focuses on developing for Stirling 2.0, including both the React fron
|
|||||||
**Stirling 2.0** is built using:
|
**Stirling 2.0** is built using:
|
||||||
|
|
||||||
**Backend:**
|
**Backend:**
|
||||||
- Spring Boot (Java 17+, JDK 21 recommended)
|
- Spring Boot (Java 21+, JDK 25 recommended)
|
||||||
- PDFBox for core PDF operations
|
- PDFBox for core PDF operations
|
||||||
- LibreOffice for document conversions
|
- LibreOffice for document conversions
|
||||||
- qpdf for PDF optimization
|
- qpdf for PDF optimization
|
||||||
@@ -44,7 +44,7 @@ This guide focuses on developing for Stirling 2.0, including both the React fron
|
|||||||
|
|
||||||
- Docker
|
- Docker
|
||||||
- Git
|
- Git
|
||||||
- Java JDK 17 or later (JDK 21 recommended)
|
- Java JDK 21 or later (JDK 25 recommended)
|
||||||
- Node.js 18+ and npm (required for frontend development)
|
- Node.js 18+ and npm (required for frontend development)
|
||||||
- Gradle 7.0 or later (Included within the repo)
|
- Gradle 7.0 or later (Included within the repo)
|
||||||
- Rust and Cargo (required for Tauri desktop app development)
|
- Rust and Cargo (required for Tauri desktop app development)
|
||||||
@@ -59,7 +59,7 @@ This guide focuses on developing for Stirling 2.0, including both the React fron
|
|||||||
cd Stirling-PDF
|
cd Stirling-PDF
|
||||||
```
|
```
|
||||||
|
|
||||||
2. Install Docker and JDK17 if not already installed.
|
2. Install Docker and JDK 21 (or JDK 25 recommended) if not already installed.
|
||||||
|
|
||||||
3. Install a recommended Java IDE such as Eclipse, IntelliJ, or VSCode
|
3. Install a recommended Java IDE such as Eclipse, IntelliJ, or VSCode
|
||||||
1. Only VSCode
|
1. Only VSCode
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ Stirling-PDF is built using:
|
|||||||
|
|
||||||
- Docker
|
- Docker
|
||||||
- Git
|
- Git
|
||||||
- Java JDK 17 or later
|
- Java JDK 21 or later (JDK 25 recommended)
|
||||||
- Gradle 7.0 or later (Included within the repo)
|
- Gradle 7.0 or later (Included within the repo)
|
||||||
|
|
||||||
### Setup Steps
|
### Setup Steps
|
||||||
@@ -37,7 +37,7 @@ Stirling-PDF is built using:
|
|||||||
cd Stirling-PDF
|
cd Stirling-PDF
|
||||||
```
|
```
|
||||||
|
|
||||||
2. Install Docker and JDK17 if not already installed.
|
2. Install Docker and JDK 21 (or JDK 25 recommended) if not already installed.
|
||||||
|
|
||||||
3. Install a recommended Java IDE such as Eclipse, IntelliJ, or VSCode
|
3. Install a recommended Java IDE such as Eclipse, IntelliJ, or VSCode
|
||||||
1. Only VSCode
|
1. Only VSCode
|
||||||
|
|||||||
@@ -54,8 +54,8 @@ if errorlevel 1 (
|
|||||||
exit /b 1
|
exit /b 1
|
||||||
)
|
)
|
||||||
set "JAVA_EFFECTIVE_MAJOR=%JAVA_EFFECTIVE_MAJOR_NUM%"
|
set "JAVA_EFFECTIVE_MAJOR=%JAVA_EFFECTIVE_MAJOR_NUM%"
|
||||||
if %JAVA_EFFECTIVE_MAJOR% LSS 17 (
|
if %JAVA_EFFECTIVE_MAJOR% LSS 21 (
|
||||||
echo ❌ Java 17 or higher is required. Found Java %JAVA_EFFECTIVE_MAJOR%
|
echo ❌ Java 21 or higher is required. Found Java %JAVA_EFFECTIVE_MAJOR%
|
||||||
exit /b 1
|
exit /b 1
|
||||||
)
|
)
|
||||||
echo ✅ Java %JAVA_EFFECTIVE_MAJOR% and jlink detected
|
echo ✅ Java %JAVA_EFFECTIVE_MAJOR% and jlink detected
|
||||||
|
|||||||
@@ -44,8 +44,8 @@ if ! command -v jlink &> /dev/null; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
JAVA_VERSION=$(java -version 2>&1 | head -n 1 | cut -d'"' -f2 | cut -d'.' -f1)
|
JAVA_VERSION=$(java -version 2>&1 | head -n 1 | cut -d'"' -f2 | cut -d'.' -f1)
|
||||||
if [ "$JAVA_VERSION" -lt 17 ]; then
|
if [ "$JAVA_VERSION" -lt 21 ]; then
|
||||||
print_error "Java 17 or higher is required. Found Java $JAVA_VERSION"
|
print_error "Java 21 or higher is required. Found Java $JAVA_VERSION"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user