Skip to content

Commit 73b051c

Browse files
authored
chore: change common repo url and extra cleanups (#888)
* chore: change common repo url and extra cleanups Signed-off-by: Stephane Bouchet <[email protected]> * chore: change common repo url and extra cleanups Signed-off-by: Stephane Bouchet <[email protected]> --------- Signed-off-by: Stephane Bouchet <[email protected]>
1 parent e8d19f1 commit 73b051c

File tree

3 files changed

+12
-76
lines changed

3 files changed

+12
-76
lines changed

Jenkinsfile

Lines changed: 0 additions & 64 deletions
This file was deleted.

build.gradle.kts

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@ group = "com.redhat.devtools.intellij"
1515
version = providers.gradleProperty("projectVersion").get() // Plugin version
1616
val ideaVersion = providers.gradleProperty("platformVersion").get()
1717
val javaVersion = 17
18+
val ideaVersionInt = when {
19+
// e.g. '20XY.Z'
20+
ideaVersion.length == 6 -> ideaVersion.replace(".", "").substring(2).toInt()
21+
// e.g. '2XY.ABCDE.12'
22+
else -> ideaVersion.substringBefore(".").toInt()
23+
}
1824

1925
// Set the JVM language level used to build the project.
2026
kotlin {
@@ -29,16 +35,12 @@ java {
2935
targetCompatibility = JavaVersion.toVersion(javaVersion)
3036
}
3137

32-
3338
repositories {
3439
mavenLocal()
35-
/*
36-
* github repo with intellij-common needs to be listed before jboss repository. Both have 1.9.9-SNAPSHOT
37-
* First hit wins regardless of timestamp
38-
*/
40+
maven { url = uri("https://raw.githubusercontent.com/redhat-developer/intellij-common-ui-test-library/repository/snapshots") }
41+
maven { url = uri("https://raw.githubusercontent.com/redhat-developer/intellij-common-ui-test-library/repository/releases") }
3942
maven { url = uri("https://raw.githubusercontent.com/redhat-developer/intellij-common/repository/snapshots") }
4043
maven { url = uri("https://raw.githubusercontent.com/redhat-developer/intellij-common/repository/releases") }
41-
maven { url = uri("https://repository.jboss.org") }
4244
mavenCentral()
4345
intellijPlatform {
4446
defaultRepositories()
@@ -56,7 +58,7 @@ dependencies {
5658
/*
5759
* platformVersion check for JSON breaking changes since 2024.3
5860
*/
59-
if (ideaVersion.startsWith("2024.3") || ideaVersion.startsWith("25")) {
61+
if (ideaVersionInt >= 243) {
6062
platformBundledPlugins.add("com.intellij.modules.json")
6163
}
6264
println("use bundled Plugins: $platformBundledPlugins")
@@ -74,10 +76,10 @@ dependencies {
7476
}
7577

7678
implementation(libs.devtools.common)
79+
implementation(libs.openshift.client)
7780
implementation(libs.kubernetes.client)
7881
implementation(libs.kubernetes.model)
7982
implementation(libs.kubernetes.model.common)
80-
implementation(libs.openshift.client)
8183
implementation(libs.kubernetes.httpclient.okhttp)
8284
implementation(libs.jackson.core)
8385
implementation(libs.commons.lang3)
@@ -135,9 +137,7 @@ intellijPlatform {
135137

136138
tasks {
137139
fun supportsEnhancedClassRedefinition(): Boolean {
138-
val platformVersion = findProperty("platformVersion").toString().toFloatOrNull()
139-
return platformVersion != null
140-
&& platformVersion >= 2024.1
140+
return ideaVersionInt >= 241
141141
}
142142

143143
wrapper {

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ gradleVersion=8.5
1010

1111
# Plugin Dependencies -> https://plugins.jetbrains.com/docs/intellij/plugin-dependencies.html#dependency-declaration-in-pluginxml
1212
platformBundledPlugins=org.jetbrains.plugins.yaml, org.jetbrains.plugins.terminal
13-
platformPlugins=com.redhat.devtools.intellij.telemetry:1.2.0.59
13+
platformPlugins=com.redhat.devtools.intellij.telemetry:1.2.1.62
1414

1515
# Supported build number ranges and IntelliJ Platform versions -> https://plugins.jetbrains.com/docs/intellij/build-number-ranges.html
1616
pluginSinceBuild=231

0 commit comments

Comments
 (0)