Skip to content

Commit

Permalink
update deps (#261)
Browse files Browse the repository at this point in the history
* update deps

* rollback to 2.1.0 intellij-gradle-plugin
  • Loading branch information
mkurnikov authored Dec 13, 2024
1 parent 179d219 commit 469c8ac
Show file tree
Hide file tree
Showing 10 changed files with 26 additions and 14 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ version = pluginVersion

plugins {
id("java")
kotlin("jvm") version "2.0.21"
kotlin("jvm") version "2.1.0"
id("org.jetbrains.intellij.platform") version "2.1.0"
id("org.jetbrains.grammarkit") version "2022.3.2.2"
id("net.saliman.properties") version "1.5.2"
Expand Down
2 changes: 1 addition & 1 deletion gradle-242.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# IntelliJ Platform Properties -> https://github.com/JetBrains/gradle-intellij-plugin#intellij-platform-properties
platformType = PC
platformVersion = 2024.2
platformVersion = 2024.2.2

useInstaller=true
2 changes: 1 addition & 1 deletion gradle-243.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# IntelliJ Platform Properties -> https://github.com/JetBrains/gradle-intellij-plugin#intellij-platform-properties
platformType = RR
platformVersion = 2024.3
platformVersion = 2024.3.1

useInstaller=true
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.11-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,12 @@ import org.move.cli.runConfigurations.aptos.cmd.AptosCommandConfigurationFactory
import org.move.ide.MoveIcons

class AptosCommandConfigurationType:
ConfigurationTypeBase(
AptosConfigurationTypeBase(
"AptosCommandConfiguration",
"Aptos",
"Aptos command execution",
NotNullLazyValue.createConstantValue(MoveIcons.APTOS_LOGO)
MoveIcons.APTOS_LOGO
) {

init {
addFactory(AptosCommandConfigurationFactory(this))
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package org.move.cli.runConfigurations.aptos

import com.intellij.execution.configurations.ConfigurationTypeBase
import javax.swing.Icon

abstract class AptosConfigurationTypeBase(
id: String,
displayName: String,
description: String?,
icon: Icon?
): ConfigurationTypeBase(id, displayName, description, icon)
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ import org.move.cli.runConfigurations.aptos.view.ViewCommandConfigurationFactory
import org.move.ide.MoveIcons

class AptosTransactionConfigurationType :
ConfigurationTypeBase(
AptosConfigurationTypeBase(
"AptosTransactionConfiguration",
"Aptos Transaction",
"Aptos transaction execution",
NotNullLazyValue.createConstantValue(MoveIcons.APTOS_LOGO)
MoveIcons.APTOS_LOGO
) {

init {
Expand Down
2 changes: 0 additions & 2 deletions src/main/kotlin/org/move/stdext/Collections.kt
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,6 @@ inline fun <T> Iterable<T>.joinToWithBuffer(
fun <T : Any> Iterator<T>.nextOrNull(): T? =
if (hasNext()) next() else null

fun <T> MutableList<T>.removeLast(): T = removeAt(size - 1)

inline fun <reified T : Enum<T>> enumSetOf(): EnumSet<T> = EnumSet.noneOf(T::class.java)

typealias LookbackValue<T> = Pair<T, T?>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import com.intellij.execution.impl.RunnerAndConfigurationSettingsImpl
import com.intellij.psi.PsiElement
import com.intellij.psi.PsiFileSystemItem
import org.jdom.Element
import org.move.cli.runConfigurations.aptos.AptosConfigurationTypeBase
import org.move.cli.runConfigurations.aptos.cmd.AptosCommandConfiguration
import org.move.lang.core.psi.ext.ancestorOrSelf
import org.move.openapiext.toXmlString
Expand All @@ -19,8 +20,8 @@ abstract class RunConfigurationProducerTestBase(val testDir: String): MvProjectT

protected fun checkNoConfigurationOnFsItem(fsItem: PsiFileSystemItem) {
val configurationContext = ConfigurationContext(fsItem)
val configurations = configurationContext.configurationsFromContext.orEmpty()
check(configurations.isEmpty()) { "Found unexpected run configurations" }
val configurations = configurationContext.aptosConfigurationsFromContext
check(configurations.isEmpty()) { "Found unexpected run configurations $configurations" }
}

protected inline fun <reified T: PsiElement> checkOnElement() {
Expand All @@ -36,7 +37,7 @@ abstract class RunConfigurationProducerTestBase(val testDir: String): MvProjectT
?.ancestorOrSelf<T>()
?: error("Failed to find element of `${T::class.simpleName}` class at caret")
val configurationContext = ConfigurationContext(element)
val configurations = configurationContext.configurationsFromContext.orEmpty()
val configurations = configurationContext.aptosConfigurationsFromContext
check(configurations.isEmpty()) { "Found unexpected run configurations" }
}

Expand Down Expand Up @@ -93,4 +94,7 @@ abstract class RunConfigurationProducerTestBase(val testDir: String): MvProjectT
}
}
}

protected val ConfigurationContext.aptosConfigurationsFromContext get() =
this.configurationsFromContext.orEmpty().filter { it.configurationType is AptosConfigurationTypeBase }
}

0 comments on commit 469c8ac

Please sign in to comment.