Skip to content
This repository was archived by the owner on Feb 27, 2025. It is now read-only.

Commit

Permalink
Use Java 21
Browse files Browse the repository at this point in the history
  • Loading branch information
DerEchtePilz committed Nov 29, 2024
1 parent 97e1f6b commit 0c3cb09
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
9 changes: 5 additions & 4 deletions commandapi-documentation-code/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import org.jetbrains.kotlin.config.JvmTarget
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile

/*
Expand All @@ -8,7 +8,7 @@ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
`java-library`
`maven-publish`
kotlin("jvm") version "1.9.0"
kotlin("jvm") version "2.1.0"
}

repositories {
Expand Down Expand Up @@ -51,7 +51,8 @@ dependencies {
group = "dev.jorel"
version = "9.6.2-SNAPSHOT"
description = "commandapi-documentation-code"
java.sourceCompatibility = JavaVersion.VERSION_16
java.sourceCompatibility = JavaVersion.VERSION_21
java.targetCompatibility = JavaVersion.VERSION_21

java {
withSourcesJar()
Expand All @@ -63,7 +64,7 @@ tasks.withType<JavaCompile>() {
}

tasks.withType<KotlinCompile> {
kotlinOptions.jvmTarget = "16"
compilerOptions.jvmTarget = JvmTarget.JVM_21
}

tasks.withType<Javadoc>() {
Expand Down
8 changes: 5 additions & 3 deletions commandapi-documentation-velocity-code/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile

/*
Expand All @@ -7,7 +8,7 @@ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
`java-library`
`maven-publish`
kotlin("jvm") version "1.9.0"
kotlin("jvm") version "2.1.0"
}

repositories {
Expand Down Expand Up @@ -40,7 +41,8 @@ dependencies {
group = "dev.jorel"
version = "9.6.2-SNAPSHOT"
description = "commandapi-documentation-velocity-code"
java.sourceCompatibility = JavaVersion.VERSION_16
java.sourceCompatibility = JavaVersion.VERSION_21
java.targetCompatibility = JavaVersion.VERSION_21

java {
withSourcesJar()
Expand All @@ -52,7 +54,7 @@ tasks.withType<JavaCompile>() {
}

tasks.withType<KotlinCompile> {
kotlinOptions.jvmTarget = "16"
compilerOptions.jvmTarget = JvmTarget.JVM_21
}

tasks.withType<Javadoc>() {
Expand Down

0 comments on commit 0c3cb09

Please sign in to comment.