1
1
buildscript {
2
- ext. kotlinVersion = ' 1.8.10 '
2
+ ext. kotlinVersion = ' 2.0.0 '
3
3
repositories {
4
4
mavenCentral()
5
5
}
@@ -10,23 +10,23 @@ buildscript {
10
10
11
11
plugins {
12
12
id ' java'
13
- id ' org.jetbrains.intellij' version ' 1.15.0 '
14
- id ' org.jetbrains.kotlin.jvm' version ' 1.8.10 '
13
+ id ' org.jetbrains.intellij' version ' 1.17.3 '
14
+ id ' org.jetbrains.kotlin.jvm' version ' 2.0.0 '
15
15
}
16
16
17
17
sourceCompatibility = JavaVersion . VERSION_11
18
18
targetCompatibility = JavaVersion . VERSION_11
19
19
20
20
intellij {
21
- version = ' 2023 .1.4 '
21
+ version = ' 2024 .1.1 '
22
22
plugins = [' Kotlin' , ' java' ]
23
23
pluginName = ' kotlin-fill-class'
24
24
updateSinceUntilBuild = false
25
25
publishPlugin {
26
26
token = System . getenv(' TOKEN' )
27
27
}
28
28
patchPluginXml {
29
- sinceBuild = ' 221.5080.210 '
29
+ sinceBuild = ' 241.14494.240 '
30
30
}
31
31
}
32
32
@@ -35,6 +35,7 @@ version '1.0.23'
35
35
36
36
repositories {
37
37
mavenCentral()
38
+ maven { url ' https://cache-redirector.jetbrains.com/maven.pkg.jetbrains.space/kotlin/p/kotlin/kotlin-ide-plugin-dependencies' }
38
39
}
39
40
40
41
configurations {
@@ -43,6 +44,15 @@ configurations {
43
44
44
45
dependencies {
45
46
implementation ' org.jetbrains.kotlin:kotlin-stdlib-jdk8'
47
+ compileOnly ' org.jetbrains.kotlin:high-level-api-for-ide:2.0.0-ij241-276' , {
48
+ exclude group : ' org.jetbrains.kotlin' , module : ' analysis-api'
49
+ }
50
+ compileOnly ' org.jetbrains.kotlin:high-level-api-fir-for-ide:2.0.0-ij241-276' , {
51
+ exclude group : ' org.jetbrains.kotlin' , module : ' analysis-api-fir'
52
+ }
53
+ compileOnly ' org.jetbrains.kotlin:high-level-api-fe10-for-ide:2.0.0-ij241-276' , {
54
+ exclude group : ' org.jetbrains.kotlin' , module : ' analysis-api-fe10'
55
+ }
46
56
47
57
// Lorem : An extremely useful Lorem Ipsum generator for Java!
48
58
implementation ' com.thedeanda:lorem:2.1'
@@ -84,3 +94,17 @@ task ktlintFormat(type: JavaExec, group: "formatting") {
84
94
args " -F" , " src/**/*.kt"
85
95
}
86
96
97
+ tasks {
98
+ runIde {
99
+ systemProperty(" idea.kotlin.plugin.use.k2" , true )
100
+ }
101
+ }
102
+
103
+ kotlin {
104
+ compilerOptions {
105
+ freeCompilerArgs. add(" -Xcontext-receivers" )
106
+ }
107
+ compilerOptions {
108
+ apiVersion = org.jetbrains.kotlin.gradle.dsl.KotlinVersion . KOTLIN_2_0
109
+ }
110
+ }
0 commit comments