From 5d2eb90bf2838559acd823317a21332e58d82dbf Mon Sep 17 00:00:00 2001 From: Pouria Derakhshanfar Date: Tue, 10 Dec 2024 15:32:51 +0100 Subject: [PATCH] Update Kotlin and IJ versions range (#421) * Update Kotlin Version to 2.1.0 * Update IJ supporting range + version which is used for UI testing * Resolve issue with UI test in the new platform --- build.gradle.kts | 3 +-- gradle.properties | 6 +++--- .../research/testspark/uiTest/utils/StepsLogger.kt | 3 ++- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index aa09cb906..625be657d 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -25,7 +25,7 @@ plugins { // Java support id("java") // Kotlin support - id("org.jetbrains.kotlin.jvm") version "1.9.0" + id("org.jetbrains.kotlin.jvm") version "2.1.0" // Gradle IntelliJ Plugin id("org.jetbrains.intellij.platform") version "2.1.0" // Gradle IntelliJ Plugin Migration Help (uncomment it for migration tips) @@ -77,7 +77,6 @@ if (spaceCredentialsProvided()) { // Add the dependencies for the new source set dependencies { - add(hasGrazieAccess.implementationConfigurationName, kotlin("stdlib")) add(hasGrazieAccess.implementationConfigurationName, "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.7.3") add(hasGrazieAccess.implementationConfigurationName, "org.jetbrains.research:grazie-test-generation:$grazieTestGenerationVersion") } diff --git a/gradle.properties b/gradle.properties index b27dd142a..14eb70aa1 100644 --- a/gradle.properties +++ b/gradle.properties @@ -10,12 +10,12 @@ evosuiteVersion = 1.0.5 # See https://plugins.jetbrains.com/docs/intellij/build-number-ranges.html # for insight into build numbers and IntelliJ Platform versions. -pluginSinceBuild = 241 -pluginUntilBuild = 242.* +pluginSinceBuild = 242 +pluginUntilBuild = 243.* # IntelliJ Platform Properties -> https://github.com/JetBrains/gradle-intellij-plugin#intellij-platform-properties platformType = IC -platformVersion = 2024.2.3 +platformVersion = 2024.3 # Plugin Dependencies -> https://plugins.jetbrains.com/docs/intellij/plugin-dependencies.html # Example: platformPlugins = com.intellij.java, com.jetbrains.php:203.4449.22 diff --git a/src/test/kotlin/org/jetbrains/research/testspark/uiTest/utils/StepsLogger.kt b/src/test/kotlin/org/jetbrains/research/testspark/uiTest/utils/StepsLogger.kt index 24b4a200d..06f4f069a 100644 --- a/src/test/kotlin/org/jetbrains/research/testspark/uiTest/utils/StepsLogger.kt +++ b/src/test/kotlin/org/jetbrains/research/testspark/uiTest/utils/StepsLogger.kt @@ -9,7 +9,8 @@ object StepsLogger { private var initializaed = false @JvmStatic - fun init() = synchronized(initializaed) { + private val lock = Any() + fun init() = synchronized(lock) { if (initializaed.not()) { StepWorker.registerProcessor(StepLogger()) initializaed = true