Skip to content

Commit

Permalink
chore(build): Build for J21
Browse files Browse the repository at this point in the history
  • Loading branch information
zml2008 committed Jan 22, 2024
1 parent 2eef1c4 commit 55c17c4
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
id: "setup"
uses: "KyoriPowered/.github/.github/actions/setup-java-env@trunk"
with:
runtime_version: 17
runtime_version: 21
publishing_branch_regex: 'main'
gradle_warning_mode: "all"
- name: "build"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
id: "setup"
uses: "KyoriPowered/.github/.github/actions/setup-java-env@trunk"
with:
runtime_version: 17
runtime_version: 21
publishing_branch_regex: "main"
gradle_warning_mode: "all"
- name: "build for production"
Expand Down
3 changes: 1 addition & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import net.kyori.indra.git.IndraGitExtension
import org.jetbrains.kotlin.gradle.targets.js.webpack.KotlinWebpack

@Suppress("DSL_SCOPE_VIOLATION") // https://youtrack.jetbrains.com/issue/KTIJ-19369
plugins {
application
alias(libs.plugins.indra.git)
Expand All @@ -11,7 +10,7 @@ plugins {
alias(libs.plugins.spotless)
}

val javaTarget = 17
val javaTarget = 21
java {
val targetVersion = JavaVersion.toVersion(javaTarget)
sourceCompatibility = targetVersion
Expand Down
4 changes: 4 additions & 0 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
plugins {
id("org.gradle.toolchains.foojay-resolver-convention") version "0.8.0"
}

rootProject.name = "adventure-webui"

0 comments on commit 55c17c4

Please sign in to comment.