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
2
2
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
3
3
4
4
/*
@@ -8,7 +8,7 @@ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
8
8
plugins {
9
9
`java- library`
10
10
`maven- publish`
11
- kotlin(" jvm" ) version " 1.9 .0"
11
+ kotlin(" jvm" ) version " 2.1 .0"
12
12
}
13
13
14
14
repositories {
@@ -51,7 +51,8 @@ dependencies {
51
51
group = " dev.jorel"
52
52
version = " 9.6.2-SNAPSHOT"
53
53
description = " commandapi-documentation-code"
54
- java.sourceCompatibility = JavaVersion .VERSION_16
54
+ java.sourceCompatibility = JavaVersion .VERSION_21
55
+ java.targetCompatibility = JavaVersion .VERSION_21
55
56
56
57
java {
57
58
withSourcesJar()
@@ -63,7 +64,7 @@ tasks.withType<JavaCompile>() {
63
64
}
64
65
65
66
tasks.withType<KotlinCompile > {
66
- kotlinOptions .jvmTarget = " 16 "
67
+ compilerOptions .jvmTarget = JvmTarget . JVM_21
67
68
}
68
69
69
70
tasks.withType<Javadoc >() {
Original file line number Diff line number Diff line change
1
+ import org.jetbrains.kotlin.gradle.dsl.JvmTarget
1
2
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
2
3
3
4
/*
@@ -7,7 +8,7 @@ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
7
8
plugins {
8
9
`java- library`
9
10
`maven- publish`
10
- kotlin(" jvm" ) version " 1.9 .0"
11
+ kotlin(" jvm" ) version " 2.1 .0"
11
12
}
12
13
13
14
repositories {
@@ -40,7 +41,8 @@ dependencies {
40
41
group = " dev.jorel"
41
42
version = " 9.6.2-SNAPSHOT"
42
43
description = " commandapi-documentation-velocity-code"
43
- java.sourceCompatibility = JavaVersion .VERSION_16
44
+ java.sourceCompatibility = JavaVersion .VERSION_21
45
+ java.targetCompatibility = JavaVersion .VERSION_21
44
46
45
47
java {
46
48
withSourcesJar()
@@ -52,7 +54,7 @@ tasks.withType<JavaCompile>() {
52
54
}
53
55
54
56
tasks.withType<KotlinCompile > {
55
- kotlinOptions .jvmTarget = " 16 "
57
+ compilerOptions .jvmTarget = JvmTarget . JVM_21
56
58
}
57
59
58
60
tasks.withType<Javadoc >() {
You can’t perform that action at this time.
0 commit comments