Skip to content

Commit 1919b50

Browse files
committed
Safe parts of #13790
1 parent 5e887fa commit 1919b50

File tree

9 files changed

+18
-19
lines changed

9 files changed

+18
-19
lines changed

.github/workflows/buildAndDeploy.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
- uses: actions/setup-java@v4
5151
with:
5252
distribution: 'temurin'
53-
java-version: 17
53+
java-version: 21
5454

5555
- name: Setup Android SDK
5656
uses: android-actions/setup-android@v3
@@ -111,7 +111,7 @@ jobs:
111111
- uses: actions/setup-java@v4
112112
with:
113113
distribution: 'temurin'
114-
java-version: 17
114+
java-version: 21
115115

116116
- name: Setup Android SDK
117117
uses: android-actions/setup-android@v3
@@ -180,7 +180,7 @@ jobs:
180180
- uses: actions/setup-java@v4
181181
with:
182182
distribution: 'temurin'
183-
java-version: 17
183+
java-version: 21
184184

185185
- name: Setup Gradle
186186
uses: gradle/actions/setup-gradle@v3

.github/workflows/buildAndTest.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
with:
2121
cache: 'gradle'
2222
distribution: 'temurin'
23-
java-version: 17
23+
java-version: 21
2424

2525
- name: Setup Android SDK
2626
uses: android-actions/setup-android@v3

.github/workflows/buildMultiplatform.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
strategy:
1717
matrix:
1818
java_version:
19-
- 17
19+
- 21
2020
runs-on: ubuntu-latest
2121
name: Build Android (Java ${{ matrix.java_version }})
2222
steps:

.github/workflows/detektAnalysis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
- name: Set up JDK
2323
uses: actions/setup-java@v4
2424
with:
25-
java-version: 17
25+
java-version: 21
2626
distribution: 'adopt'
2727

2828
- name: Setup Detekt

.github/workflows/dockerPublish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
# https://github.com/sigstore/cosign-installer
3737
- name: Install cosign
3838
if: github.event_name != 'pull_request'
39-
uses: sigstore/cosign-installer@v3.4.0
39+
uses: sigstore/cosign-installer@v3.9.2
4040

4141

4242
- name: Set up Docker Buildx
@@ -64,7 +64,7 @@ jobs:
6464
# https://github.com/docker/build-push-action
6565
- name: Build and push Docker image
6666
id: build-and-push
67-
uses: docker/build-push-action@v5
67+
uses: docker/build-push-action@v6
6868
with:
6969
context: .
7070
push: ${{ github.event_name != 'pull_request' }}

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
ARG ARG_COMPILE_BASE_IMAGE=accetto/ubuntu-vnc-xfce-opengl-g3
22

3-
FROM $ARG_COMPILE_BASE_IMAGE as build
3+
FROM $ARG_COMPILE_BASE_IMAGE AS build
44

55
USER root
66
RUN apt update && \
@@ -34,7 +34,7 @@ RUN chmod +x ./gradlew && ./gradlew desktop:classes && \
3434
./gradlew desktop:packrLinux64 --stacktrace --info --daemon --scan && \
3535
cd /src/deploy && unzip Unciv-Linux64.zip
3636

37-
FROM accetto/ubuntu-vnc-xfce-opengl-g3 as run
37+
FROM accetto/ubuntu-vnc-xfce-opengl-g3 AS run
3838
WORKDIR /home/headless/Desktop/
3939
COPY --chown=1001:1001 --from=build /src/deploy/* /usr/
4040
COPY --chown=1001:1001 --from=build /src/desktop/build/libs/Unciv.jar /usr/share/Unciv/Unciv.jar

android/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ plugins {
1010
}
1111

1212
android {
13-
compileSdk = 35
13+
compileSdk = 36
1414
sourceSets {
1515
getByName("main").apply {
1616
manifest.srcFile("AndroidManifest.xml")

build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ buildscript {
2121
}
2222
dependencies {
2323
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:${com.unciv.build.BuildConfig.kotlinVersion}")
24-
classpath("com.android.tools.build:gradle:8.9.1")
24+
classpath("com.android.tools.build:gradle:8.9.3")
2525
}
2626
}
2727

@@ -33,7 +33,7 @@ kotlin {
3333

3434
// Plugins used for serialization of JSON for networking
3535
plugins {
36-
id("io.gitlab.arturbosch.detekt").version("1.23.0-RC3")
36+
id("io.gitlab.arturbosch.detekt").version("1.23.8")
3737
// For some weird reason, the *docker build* fails to recognize linking to the shared kotlinVersion in plugins
3838
// This is *with* gradle 8.2 downloaded according the project specs, no idea what that's about
3939
kotlin("multiplatform") version "1.9.24"

desktop/build.gradle.kts

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -139,12 +139,11 @@ for (platform in Platform.values()) {
139139

140140
// Requires that both packr and the jre are downloaded, as per buildAndDeploy.yml, "Upload to itch.io"
141141

142-
val jdkFile =
143-
when (platform) {
144-
Platform.Linux64 -> "jre-linux-64.tar.gz"
145-
Platform.Windows64 -> "jdk-windows-64.zip"
146-
else -> "jre-macOS.tar.gz"
147-
}
142+
val jdkFile = when (platform) {
143+
Platform.Linux64 -> "jre-linux-64.tar.gz"
144+
Platform.Windows64 -> "jdk-windows-64.zip"
145+
else -> "jre-macOS.tar.gz"
146+
}
148147

149148
val platformNameForPackrCmd =
150149
if (platform == Platform.MacOS) "mac"

0 commit comments

Comments
 (0)