@@ -3,9 +3,11 @@ fun properties(key: String) = project.findProperty(key).toString()
3
3
plugins {
4
4
id(" java" )
5
5
// gradle-intellij-plugin
6
- id(" org.jetbrains.intellij" ) version " 1.1.4 "
6
+ id(" org.jetbrains.intellij" ) version " 1.16.1 "
7
7
// kotlin
8
- id(" org.jetbrains.kotlin.jvm" ) version " 1.5.10"
8
+ id(" org.jetbrains.kotlin.jvm" ) version " 1.9.21"
9
+
10
+ id(" org.jetbrains.changelog" ) version " 2.2.0"
9
11
}
10
12
11
13
allprojects {
@@ -16,7 +18,10 @@ allprojects {
16
18
}
17
19
18
20
repositories {
21
+ mavenLocal()
19
22
mavenCentral()
23
+ gradlePluginPortal()
24
+ maven(" https://maven.aliyun.com/repository/public/" )
20
25
maven(" https://oss.sonatype.org/content/repositories/snapshots/" )
21
26
maven(" https://cache-redirector.jetbrains.com/intellij-dependencies" )
22
27
}
@@ -40,6 +45,14 @@ allprojects {
40
45
}
41
46
42
47
tasks {
48
+ withType<JavaCompile > {
49
+ sourceCompatibility = " 17"
50
+ targetCompatibility = " 17"
51
+ }
52
+ withType< org.jetbrains.kotlin.gradle.tasks.KotlinCompile > {
53
+ kotlinOptions.jvmTarget = " 17"
54
+ }
55
+
43
56
test {
44
57
useJUnitPlatform()
45
58
}
@@ -54,15 +67,27 @@ allprojects {
54
67
runPluginVerifier {
55
68
ideVersions.set(properties(" pluginVerifierIdeVersions" ).split(' ,' ).map(String ::trim).filter(String ::isNotEmpty))
56
69
}
70
+
57
71
}
58
72
59
73
dependencies {
60
- implementation(" org.jetbrains.kotlin:kotlin-stdlib:1.5 .21" )
74
+ implementation(" org.jetbrains.kotlin:kotlin-stdlib:1.9 .21" )
61
75
testImplementation(" org.junit.jupiter:junit-jupiter-api:5.7.2" )
62
76
testRuntimeOnly(" org.junit.jupiter:junit-jupiter-engine:5.7.2" )
63
77
}
78
+
79
+ // Set the JVM language level used to build the project. Use Java 11 for 2020.3+, and Java 17 for 2022.2+.
80
+ kotlin {
81
+ @Suppress(" UnstableApiUsage" )
82
+ jvmToolchain {
83
+ languageVersion = JavaLanguageVersion .of(17 )
84
+ vendor = JvmVendorSpec .JETBRAINS
85
+ }
86
+ }
64
87
}
65
88
89
+
90
+
66
91
val Project .dependencyCachePath
67
92
get(): String {
68
93
val cachePath = file(" ${rootProject.projectDir} /deps" )
0 commit comments