This repository was archived by the owner on Feb 27, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +10
-7
lines changed
commandapi-documentation-code
commandapi-documentation-velocity-code Expand file tree Collapse file tree 2 files changed +10
-7
lines changed Original file line number Diff line number Diff line change 1- import org.jetbrains.kotlin.config .JvmTarget
1+ import org.jetbrains.kotlin.gradle.dsl .JvmTarget
22import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
33
44/*
@@ -8,7 +8,7 @@ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
88plugins {
99 `java- library`
1010 `maven- publish`
11- kotlin(" jvm" ) version " 1.9 .0"
11+ kotlin(" jvm" ) version " 2.1 .0"
1212}
1313
1414repositories {
@@ -51,7 +51,8 @@ dependencies {
5151group = " dev.jorel"
5252version = " 9.6.2-SNAPSHOT"
5353description = " commandapi-documentation-code"
54- java.sourceCompatibility = JavaVersion .VERSION_16
54+ java.sourceCompatibility = JavaVersion .VERSION_21
55+ java.targetCompatibility = JavaVersion .VERSION_21
5556
5657java {
5758 withSourcesJar()
@@ -63,7 +64,7 @@ tasks.withType<JavaCompile>() {
6364}
6465
6566tasks.withType<KotlinCompile > {
66- kotlinOptions .jvmTarget = " 16 "
67+ compilerOptions .jvmTarget = JvmTarget . JVM_21
6768}
6869
6970tasks.withType<Javadoc >() {
Original file line number Diff line number Diff line change 1+ import org.jetbrains.kotlin.gradle.dsl.JvmTarget
12import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
23
34/*
@@ -7,7 +8,7 @@ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
78plugins {
89 `java- library`
910 `maven- publish`
10- kotlin(" jvm" ) version " 1.9 .0"
11+ kotlin(" jvm" ) version " 2.1 .0"
1112}
1213
1314repositories {
@@ -40,7 +41,8 @@ dependencies {
4041group = " dev.jorel"
4142version = " 9.6.2-SNAPSHOT"
4243description = " commandapi-documentation-velocity-code"
43- java.sourceCompatibility = JavaVersion .VERSION_16
44+ java.sourceCompatibility = JavaVersion .VERSION_21
45+ java.targetCompatibility = JavaVersion .VERSION_21
4446
4547java {
4648 withSourcesJar()
@@ -52,7 +54,7 @@ tasks.withType<JavaCompile>() {
5254}
5355
5456tasks.withType<KotlinCompile > {
55- kotlinOptions .jvmTarget = " 16 "
57+ compilerOptions .jvmTarget = JvmTarget . JVM_21
5658}
5759
5860tasks.withType<Javadoc >() {
You can’t perform that action at this time.
0 commit comments