mirror of
https://github.com/chylex/IntelliJ-IdeaVim.git
synced 2025-05-05 18:34:03 +02:00
Start using kotlin 2.0
Originally this is needed to update the dependency on AceJump, which uses the kotlin 2.0 compiler, and its classes are not compatible with the old compiler
This commit is contained in:
parent
7e28deb328
commit
4a85058ba2
.gitignore
annotation-processors
build.gradle.ktsgradle.propertiessrc/test/java/org/jetbrains/plugins/ideavim/action/copy
vim-engine
2
.gitignore
vendored
2
.gitignore
vendored
@ -33,3 +33,5 @@ vim-engine/src/main/java/com/maddyhome/idea/vim/regexp/parser/generated
|
||||
|
||||
# Created by github automation
|
||||
settings.xml
|
||||
|
||||
.kotlin
|
@ -8,7 +8,7 @@
|
||||
|
||||
plugins {
|
||||
kotlin("jvm")
|
||||
kotlin("plugin.serialization") version "1.9.22"
|
||||
kotlin("plugin.serialization") version "2.0.0"
|
||||
}
|
||||
|
||||
val kotlinxSerializationVersion: String by project
|
||||
|
@ -45,7 +45,7 @@ buildscript {
|
||||
}
|
||||
|
||||
dependencies {
|
||||
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.22")
|
||||
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:2.0.0")
|
||||
classpath("com.github.AlexPl292:mark-down-to-slack:1.1.2")
|
||||
classpath("org.eclipse.jgit:org.eclipse.jgit:6.6.0.202305301015-r")
|
||||
|
||||
@ -66,14 +66,14 @@ buildscript {
|
||||
|
||||
plugins {
|
||||
java
|
||||
kotlin("jvm") version "1.9.22"
|
||||
kotlin("jvm") version "2.0.0"
|
||||
application
|
||||
id("java-test-fixtures")
|
||||
id("org.jetbrains.intellij.platform") version "2.0.0-beta9"
|
||||
id("org.jetbrains.changelog") version "2.2.1"
|
||||
id("org.jetbrains.kotlinx.kover") version "0.6.1"
|
||||
id("com.dorongold.task-tree") version "4.0.0"
|
||||
id("com.google.devtools.ksp") version "1.9.22-1.0.17"
|
||||
id("com.google.devtools.ksp") version "2.0.0-1.0.23"
|
||||
}
|
||||
|
||||
val moduleSources by configurations.registering
|
||||
|
@ -34,7 +34,7 @@ splitModeVersion=242-EAP-SNAPSHOT
|
||||
|
||||
# Please don't forget to update kotlin version in buildscript section
|
||||
# Also update kotlinxSerializationVersion version
|
||||
kotlinVersion=1.9.22
|
||||
kotlinVersion=2.0.0
|
||||
publishToken=token
|
||||
publishChannels=eap
|
||||
|
||||
|
@ -175,8 +175,8 @@ class PutTestAfterCursorActionTest : VimTestCase() {
|
||||
override fun collectTransferableData(
|
||||
file: PsiFile,
|
||||
editor: Editor,
|
||||
startOffsets: IntArray?,
|
||||
endOffsets: IntArray?,
|
||||
startOffsets: IntArray,
|
||||
endOffsets: IntArray,
|
||||
): List<TextBlockTransferableData> {
|
||||
return emptyList()
|
||||
}
|
||||
|
@ -10,8 +10,8 @@ plugins {
|
||||
java
|
||||
kotlin("jvm")
|
||||
// id("org.jlleitschuh.gradle.ktlint")
|
||||
id("com.google.devtools.ksp") version "1.9.22-1.0.17"
|
||||
kotlin("plugin.serialization") version "1.9.22"
|
||||
id("com.google.devtools.ksp") version "2.0.0-1.0.23"
|
||||
kotlin("plugin.serialization") version "2.0.0"
|
||||
`maven-publish`
|
||||
antlr
|
||||
}
|
||||
|
@ -136,7 +136,7 @@ abstract class VimOptionGroupBase : VimOptionGroup {
|
||||
}
|
||||
|
||||
override fun <T : VimDataType> resetToGlobalValue(option: Option<T>, scope: OptionAccessScope, editor: VimEditor) {
|
||||
val newValue = if (scope is OptionAccessScope.LOCAL && option.declaredScope.isGlobalLocal()
|
||||
val newValue: OptionValue<T> = if (scope is OptionAccessScope.LOCAL && option.declaredScope.isGlobalLocal()
|
||||
&& (option is NumberOption || option is ToggleOption)) {
|
||||
OptionValue.Default(option.unsetValue)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user