Skip to content

Commit

Permalink
Update java compile version
Browse files Browse the repository at this point in the history
  • Loading branch information
SyncedSynapse committed Nov 13, 2023
1 parent 7213763 commit 026667b
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
uses: actions/setup-java@v2
with:
distribution: 'adopt'
java-version: '11'
java-version: '17'

- name: Validate Gradle Wrapper
uses: gradle/[email protected]
Expand Down
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
language: android
jdk: oraclejdk8
jdk: oraclejdk17
sudo: false

env:
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
FROM ubuntu:20.04

# Install Java
ARG JDK_VERSION=11
ARG JDK_VERSION=17
RUN apt-get update && \
apt-get install -y --no-install-recommends openjdk-${JDK_VERSION}-jdk && \
apt-get install -y --no-install-recommends git wget unzip

# Install Gradle
# https://services.gradle.org/distributions/
ARG GRADLE_VERSION=7.3.3
ARG GRADLE_VERSION=8.4
ARG GRADLE_DIST=bin
RUN cd /opt && \
wget -q https://services.gradle.org/distributions/gradle-${GRADLE_VERSION}-${GRADLE_DIST}.zip && \
Expand Down
8 changes: 5 additions & 3 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,11 @@ android {
}
namespace 'org.xbmc.kore'

compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}

java {
toolchain {
languageVersion = JavaLanguageVersion.of(17)
}
}

Expand Down

0 comments on commit 026667b

Please sign in to comment.