Skip to content

Commit 23f1d76

Browse files
committed
Version updates
1 parent 3735792 commit 23f1d76

File tree

7 files changed

+18
-13
lines changed

7 files changed

+18
-13
lines changed

build.gradle.kts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,9 @@ dependencies {
4545
// IntelliJ Platform Gradle Plugin Dependencies Extension - read more: https://plugins.jetbrains.com/docs/intellij/tools-intellij-platform-gradle-plugin-dependencies-extension.html
4646
intellijPlatform {
4747
val platformVersion = providers.gradleProperty("platformVersion")
48-
intellijIdeaCommunity(platformVersion, useInstaller = false)
48+
intellijIdea(platformVersion) {
49+
useInstaller = false
50+
}
4951
jetbrainsRuntime()
5052
// fleetBackend(platformVersion)
5153

@@ -116,7 +118,7 @@ intellijPlatform {
116118
pluginVerification {
117119
ides {
118120
select {
119-
types = listOf(IntelliJPlatformType.IntellijIdeaCommunity)
121+
types = listOf(IntelliJPlatformType.IntellijIdea)
120122
channels = listOf(
121123
ProductRelease.Channel.RELEASE,
122124
ProductRelease.Channel.EAP,

gradle.properties

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ pluginGroup = com.github.mr3zee.kotlinPlugins
44
pluginName = Kotlin Plugins
55
pluginRepositoryUrl = https://github.com/Mr3zee/kotlin-plugins
66
# SemVer format -> https://semver.org
7-
pluginVersion = 0.1.2
7+
pluginVersion = 0.2.0
88

99
# Supported build number ranges and IntelliJ Platform versions -> https://plugins.jetbrains.com/docs/intellij/build-number-ranges.html
1010
pluginSinceBuild = 251.21418.62
1111

1212
# IntelliJ Platform Properties -> https://plugins.jetbrains.com/docs/intellij/tools-gradle-intellij-plugin.html#configuration-intellij-extension
13-
platformVersion = 251.23774.435
13+
platformVersion = 253-EAP-SNAPSHOT
1414

1515
# Plugin Dependencies -> https://plugins.jetbrains.com/docs/intellij/plugin-dependencies.html
1616
# Example: platformPlugins = com.jetbrains.php:203.4449.22, org.intellij.scala:2023.3.27@EAP
@@ -19,7 +19,7 @@ platformPlugins =
1919
platformBundledPlugins = org.jetbrains.kotlin
2020

2121
# Gradle Releases -> https://github.com/gradle/gradle/releases
22-
gradleVersion = 8.12.1
22+
gradleVersion = 9.1.0
2323

2424
# Opt-out flag for bundling Kotlin standard library -> https://jb.gg/intellij-platform-kotlin-stdlib
2525
kotlin.stdlib.default.dependency = false

gradle/libs.versions.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ junit = "4.13.2"
44

55
# plugins
66
changelog = "2.2.1"
7-
intelliJPlatform = "2.6.0"
8-
kotlin = "2.1.10"
7+
intelliJPlatform = "2.9.0"
8+
kotlin = "2.2.20"
99
kover = "0.9.1"
1010
qodana = "2025.1.1"
1111
jsoup = "1.20.1"

gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.12.1-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-9.1.0-bin.zip
44
networkTimeout=10000
55
validateDistributionUrl=true
66
zipStoreBase=GRADLE_USER_HOME

gradlew

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,7 @@ done
8686
# shellcheck disable=SC2034
8787
APP_BASE_NAME=${0##*/}
8888
# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
89-
APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s
90-
' "$PWD" ) || exit
89+
APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s\n' "$PWD" ) || exit
9190

9291
# Use the maximum available, or set MAX_FD != -1 to use that value.
9392
MAX_FD=maximum

src/main/kotlin/com/github/mr3zee/kotlinPlugins/KotlinPluginsJarDownloader.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ import io.ktor.client.request.*
1212
import io.ktor.client.statement.*
1313
import io.ktor.http.*
1414
import io.ktor.utils.io.*
15+
import kotlinx.coroutines.Dispatchers
16+
import kotlinx.coroutines.withContext
1517
import kotlinx.io.readByteArray
1618
import org.jetbrains.kotlin.config.MavenComparableVersion
1719
import org.jsoup.Jsoup
@@ -197,6 +199,7 @@ internal object KotlinPluginsJarDownloader {
197199
return JarResult(finalFilename, version, requestedLibVersion, downloaded = false)
198200
}
199201

202+
@Suppress("BlockingMethodInNonBlockingContext")
200203
Files.createFile(file)
201204

202205
return downloadJarIfNotExistsUnderLock(
@@ -273,6 +276,7 @@ internal object KotlinPluginsJarDownloader {
273276
}
274277

275278
if (response?.status?.isSuccess() != true) {
279+
@Suppress("BlockingMethodInNonBlockingContext")
276280
Files.delete(file)
277281
if (response != null) {
278282
logger.debug("$logTag Failed to download file $artifactName: ${response.status} - ${response.bodyAsText()}")

src/main/kotlin/com/github/mr3zee/kotlinPlugins/KotlinPluginsStorage.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ class KotlinPluginsStorageService(
229229

230230
if (cacheMisses.flatMap { it.value.values }.any { !it }) {
231231
logger.debug("Actualize plugins job self-launch: ${cacheMisses.entries.joinToString { (k, v) -> "{$k: [${v.entries.joinToString { (k1, v1) -> "[$k1 -> $v1]" }}]" }}")
232-
actualizePlugins()
232+
actualizeRequestQueue.trySend(Unit)
233233
} else if (changed.get()) {
234234
invalidateKotlinPluginsCache()
235235
}
@@ -247,7 +247,7 @@ class KotlinPluginsStorageService(
247247
val map = pluginsCache.getOrPut(kotlinVersion) { ConcurrentHashMap() }
248248
val pluginMap = map.getOrPut(versioned.descriptor) { ConcurrentHashMap() }
249249

250-
val (locatedVersion, path) = if (versioned.version == null) {
250+
val (locatedVersion, path) = (if (versioned.version == null) {
251251
findJarPath(versioned, kotlinVersion)?.also { (version, path) ->
252252
pluginMap.compute(version) { _, old ->
253253
when {
@@ -279,7 +279,7 @@ class KotlinPluginsStorageService(
279279
versioned.version
280280
} to path
281281

282-
} ?: (null to null)
282+
}) ?: (null to null)
283283

284284
logger.debug("Requested version is ${versioned.version} for ${versioned.descriptor}, located version: $locatedVersion, path: $path")
285285

0 commit comments

Comments
 (0)