Skip to content

Commit 9305cd0

Browse files
authored
Upgrade to Java 18 (#467)
Gradle has no official support for it yet, we use the latest release candidate instead (7.5 rc 5)
1 parent ea59cf1 commit 9305cd0

File tree

9 files changed

+11
-11
lines changed

9 files changed

+11
-11
lines changed

.github/workflows/basic-checks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Basic checks
33
on: [pull_request]
44

55
env:
6-
JAVA_VERSION: 17
6+
JAVA_VERSION: 18
77

88
jobs:
99
spotless:

.github/workflows/code-analysis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
- cron: '0 20 * * 4'
99

1010
env:
11-
JAVA_VERSION: 17
11+
JAVA_VERSION: 18
1212

1313
jobs:
1414
sonar:

.github/workflows/docker-publish.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
- 'master'
88

99
env:
10-
JAVA_VERSION: 17
10+
JAVA_VERSION: 18
1111

1212
jobs:
1313
docker:

.github/workflows/docker-verify.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Docker Verify
33
on: [pull_request]
44

55
env:
6-
JAVA_VERSION: 17
6+
JAVA_VERSION: 18
77

88
jobs:
99
docker:

.github/workflows/releases.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ defaults:
1010
shell: bash
1111

1212
env:
13-
JAVA_VERSION: 17
13+
JAVA_VERSION: 18
1414

1515
jobs:
1616

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# TJ-Bot
22

33
[![codefactor](https://img.shields.io/codefactor/grade/github/together-java/tj-bot)](https://www.codefactor.io/repository/github/together-java/tj-bot)
4-
![Java](https://img.shields.io/badge/Java-17%2B-ff696c)
4+
![Java](https://img.shields.io/badge/Java-18-ff696c)
55
[![license](https://img.shields.io/github/license/Together-Java/TJ-Bot)](https://github.com/Together-Java/TJ-Bot/blob/master/LICENSE)
66
![GitHub release (latest by date)](https://img.shields.io/github/v/release/Together-Java/TJ-Bot?label=release)
77

@@ -28,4 +28,4 @@ Head over to the [Wiki](https://github.com/Together-Java/TJ-Bot/wiki) as general
2828

2929
Jar downloads are available from the [release section](https://github.com/Together-Java/TJ-Bot/releases).
3030

31-
Alternatively, you can also download the project using your favorite build tool. Artifacts are made available via https://jitpack.io. Our `groupId` is `com.github.Together-Java`, the `artifactId` is `TJ-Bot`.
31+
Alternatively, you can also download the project using your favorite build tool. Artifacts are made available via https://jitpack.io. Our `groupId` is `com.github.Together-Java`, the `artifactId` is `TJ-Bot`.

application/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ repositories {
1818
var outputImage = 'togetherjava.duckdns.org:5001/togetherjava/tjbot:' + System.getenv('BRANCH_NAME') ?: 'latest'
1919

2020
jib {
21-
from.image = 'eclipse-temurin:17'
21+
from.image = 'eclipse-temurin:18'
2222
to {
2323
image = outputImage
2424
auth {

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ subprojects {
6363
options.encoding = 'UTF-8'
6464

6565
// Nails the Java-Version of every Subproject
66-
sourceCompatibility = JavaVersion.VERSION_17
67-
targetCompatibility = JavaVersion.VERSION_17
66+
sourceCompatibility = JavaVersion.VERSION_18
67+
targetCompatibility = JavaVersion.VERSION_18
6868
}
6969

7070
compileJava(compileTasks)
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-rc-5-bin.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists

0 commit comments

Comments
 (0)