chore: Bump build tooling to Java 21 (#250)
Align local and CI JDK requirements with F-Droid's Java 21 environment to keep builds consistent and avoid tooling mismatch.
This commit is contained in:
@@ -23,7 +23,7 @@ jobs:
|
|||||||
uses: actions/setup-java@v3
|
uses: actions/setup-java@v3
|
||||||
with:
|
with:
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
java-version: '17'
|
java-version: '21'
|
||||||
cache: 'gradle'
|
cache: 'gradle'
|
||||||
- name: Build with Gradle
|
- name: Build with Gradle
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ jobs:
|
|||||||
uses: actions/setup-java@v3
|
uses: actions/setup-java@v3
|
||||||
with:
|
with:
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
java-version: '17'
|
java-version: '21'
|
||||||
cache: 'gradle'
|
cache: 'gradle'
|
||||||
- name: Inject signing key
|
- name: Inject signing key
|
||||||
run: |
|
run: |
|
||||||
@@ -51,4 +51,4 @@ jobs:
|
|||||||
uses: shogo82148/actions-upload-release-asset@v1
|
uses: shogo82148/actions-upload-release-asset@v1
|
||||||
with:
|
with:
|
||||||
upload_url: ${{ github.event.release.upload_url }}
|
upload_url: ${{ github.event.release.upload_url }}
|
||||||
asset_path: ${{ github.workspace }}/app/build/outputs/apk/foss/**/*.apk
|
asset_path: ${{ github.workspace }}/app/build/outputs/apk/foss/**/*.apk
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ See @.cursor/rules/overview.mdc
|
|||||||
|
|
||||||
## Build
|
## Build
|
||||||
|
|
||||||
Requires JDK 17+:
|
Requires JDK 21+:
|
||||||
```bash
|
```bash
|
||||||
./gradlew assemble # Build APKs
|
./gradlew assemble # Build APKs
|
||||||
# Output: app/build/outputs/apk/{flavor}/{debug|release}/Amarok-v{version}+{commit}-{flavor}.apk
|
# Output: app/build/outputs/apk/{flavor}/{debug|release}/Amarok-v{version}+{commit}-{flavor}.apk
|
||||||
|
|||||||
+2
-2
@@ -95,8 +95,8 @@ android {
|
|||||||
}
|
}
|
||||||
|
|
||||||
compileOptions {
|
compileOptions {
|
||||||
sourceCompatibility JavaVersion.VERSION_17
|
sourceCompatibility JavaVersion.VERSION_21
|
||||||
targetCompatibility JavaVersion.VERSION_17
|
targetCompatibility JavaVersion.VERSION_21
|
||||||
}
|
}
|
||||||
|
|
||||||
dependenciesInfo {
|
dependenciesInfo {
|
||||||
|
|||||||
Reference in New Issue
Block a user