mirror of
https://github.com/chylex/IntelliJ-IdeaVim.git
synced 2025-06-03 07:34:06 +02:00
Update kotlin and gradle
This commit is contained in:
parent
6d974d799b
commit
0803b401e7
build.gradle.ktsgradle.properties
gradle/wrapper
src
main/java/com/maddyhome/idea/vim
test/java/org/jetbrains/plugins/ideavim
@ -11,7 +11,7 @@ buildscript {
|
|||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.0")
|
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.6.0")
|
||||||
classpath("com.github.AlexPl292:mark-down-to-slack:1.1.2")
|
classpath("com.github.AlexPl292:mark-down-to-slack:1.1.2")
|
||||||
classpath("org.eclipse.jgit:org.eclipse.jgit:5.13.0.202109080827-r")
|
classpath("org.eclipse.jgit:org.eclipse.jgit:5.13.0.202109080827-r")
|
||||||
classpath("org.kohsuke:github-api:1.135")
|
classpath("org.kohsuke:github-api:1.135")
|
||||||
@ -22,7 +22,7 @@ buildscript {
|
|||||||
plugins {
|
plugins {
|
||||||
antlr
|
antlr
|
||||||
java
|
java
|
||||||
kotlin("jvm") version "1.5.0"
|
kotlin("jvm") version "1.6.0"
|
||||||
|
|
||||||
id("org.jetbrains.intellij") version "1.3.0"
|
id("org.jetbrains.intellij") version "1.3.0"
|
||||||
id("org.jetbrains.changelog") version "1.3.1"
|
id("org.jetbrains.changelog") version "1.3.1"
|
||||||
@ -92,14 +92,14 @@ tasks {
|
|||||||
compileKotlin {
|
compileKotlin {
|
||||||
kotlinOptions {
|
kotlinOptions {
|
||||||
jvmTarget = javaVersion
|
jvmTarget = javaVersion
|
||||||
apiVersion = "1.3"
|
apiVersion = "1.4"
|
||||||
// allWarningsAsErrors = true
|
// allWarningsAsErrors = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
compileTestKotlin {
|
compileTestKotlin {
|
||||||
kotlinOptions {
|
kotlinOptions {
|
||||||
jvmTarget = javaVersion
|
jvmTarget = javaVersion
|
||||||
apiVersion = "1.3"
|
apiVersion = "1.4"
|
||||||
// allWarningsAsErrors = true
|
// allWarningsAsErrors = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -8,7 +8,7 @@ javaVersion=11
|
|||||||
remoteRobotVersion=0.11.6
|
remoteRobotVersion=0.11.6
|
||||||
|
|
||||||
# Please don't forget to update kotlin version in buildscript section
|
# Please don't forget to update kotlin version in buildscript section
|
||||||
kotlinVersion=1.5.0
|
kotlinVersion=1.6.0
|
||||||
publishToken=token
|
publishToken=token
|
||||||
publishChannels=eap
|
publishChannels=eap
|
||||||
|
|
||||||
|
2
gradle/wrapper/gradle-wrapper.properties
vendored
2
gradle/wrapper/gradle-wrapper.properties
vendored
@ -1,5 +1,5 @@
|
|||||||
distributionBase=GRADLE_USER_HOME
|
distributionBase=GRADLE_USER_HOME
|
||||||
distributionPath=wrapper/dists
|
distributionPath=wrapper/dists
|
||||||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-bin.zip
|
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3-bin.zip
|
||||||
zipStoreBase=GRADLE_USER_HOME
|
zipStoreBase=GRADLE_USER_HOME
|
||||||
zipStorePath=wrapper/dists
|
zipStorePath=wrapper/dists
|
||||||
|
@ -251,7 +251,7 @@ class VisualMotionGroup {
|
|||||||
val selectionStartColumn = editor.offsetToLogicalPosition(selections.first().first).column
|
val selectionStartColumn = editor.offsetToLogicalPosition(selections.first().first).column
|
||||||
val selectionStartLine = editor.offsetToLogicalPosition(selections.first().first).line
|
val selectionStartLine = editor.offsetToLogicalPosition(selections.first().first).line
|
||||||
|
|
||||||
val maxColumn = selections.map { editor.offsetToLogicalPosition(it.second).column }.max() ?: return false
|
val maxColumn = selections.map { editor.offsetToLogicalPosition(it.second).column }.maxOrNull() ?: return false
|
||||||
selections.forEachIndexed { i, it ->
|
selections.forEachIndexed { i, it ->
|
||||||
if (editor.offsetToLogicalPosition(it.first).line != editor.offsetToLogicalPosition(it.second).line) {
|
if (editor.offsetToLogicalPosition(it.first).line != editor.offsetToLogicalPosition(it.second).line) {
|
||||||
return false
|
return false
|
||||||
@ -272,7 +272,8 @@ class VisualMotionGroup {
|
|||||||
|
|
||||||
private fun blockModeStartAndEnd(editor: Editor): Pair<Int, Int> {
|
private fun blockModeStartAndEnd(editor: Editor): Pair<Int, Int> {
|
||||||
val selections = editor.caretModel.allCarets.map { it.selectionStart to it.selectionEnd }.sortedBy { it.first }
|
val selections = editor.caretModel.allCarets.map { it.selectionStart to it.selectionEnd }.sortedBy { it.first }
|
||||||
val maxColumn = selections.map { editor.offsetToLogicalPosition(it.second).column }.max() ?: error("No carets")
|
val maxColumn =
|
||||||
|
selections.map { editor.offsetToLogicalPosition(it.second).column }.maxOrNull() ?: error("No carets")
|
||||||
val lastLine = editor.offsetToLogicalPosition(selections.last().first).line
|
val lastLine = editor.offsetToLogicalPosition(selections.last().first).line
|
||||||
return selections.first().first to editor.logicalPositionToOffset(LogicalPosition(lastLine, maxColumn))
|
return selections.first().first to editor.logicalPositionToOffset(LogicalPosition(lastLine, maxColumn))
|
||||||
}
|
}
|
||||||
|
@ -54,7 +54,7 @@ import kotlin.math.min
|
|||||||
*/
|
*/
|
||||||
@Deprecated("was replaced by OptionService")
|
@Deprecated("was replaced by OptionService")
|
||||||
@ScheduledForRemoval(inVersion = "1.11")
|
@ScheduledForRemoval(inVersion = "1.11")
|
||||||
@Suppress("unused")
|
@Suppress("unused", "DEPRECATION")
|
||||||
object OptionsManager {
|
object OptionsManager {
|
||||||
private val logger = Logger.getInstance(OptionsManager::class.java)
|
private val logger = Logger.getInstance(OptionsManager::class.java)
|
||||||
|
|
||||||
|
@ -205,7 +205,7 @@ abstract class VimTestCase : UsefulTestCase() {
|
|||||||
protected fun configureByPages(pageCount: Int) {
|
protected fun configureByPages(pageCount: Int) {
|
||||||
val stringBuilder = StringBuilder()
|
val stringBuilder = StringBuilder()
|
||||||
repeat(pageCount * screenHeight) {
|
repeat(pageCount * screenHeight) {
|
||||||
stringBuilder.appendln("I found it in a legendary land")
|
stringBuilder.appendLine("I found it in a legendary land")
|
||||||
}
|
}
|
||||||
configureByText(stringBuilder.toString())
|
configureByText(stringBuilder.toString())
|
||||||
}
|
}
|
||||||
@ -213,7 +213,7 @@ abstract class VimTestCase : UsefulTestCase() {
|
|||||||
protected fun configureByLines(lineCount: Int, line: String) {
|
protected fun configureByLines(lineCount: Int, line: String) {
|
||||||
val stringBuilder = StringBuilder()
|
val stringBuilder = StringBuilder()
|
||||||
repeat(lineCount - 1) {
|
repeat(lineCount - 1) {
|
||||||
stringBuilder.appendln(line)
|
stringBuilder.appendLine(line)
|
||||||
}
|
}
|
||||||
stringBuilder.append(line)
|
stringBuilder.append(line)
|
||||||
configureByText(stringBuilder.toString())
|
configureByText(stringBuilder.toString())
|
||||||
|
Loading…
Reference in New Issue
Block a user