Skip to content

Commit 5efca28

Browse files
committed
chore(gradle): simplify more
1 parent 2345fab commit 5efca28

File tree

3 files changed

+9
-20
lines changed

3 files changed

+9
-20
lines changed

apps/intellij/build.gradle.kts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ fun isWindows(): Boolean {
77
return System.getProperty("os.name").lowercase().startsWith("windows")
88
}
99

10-
val nxlsRoot = "${rootDir}/../../dist/apps/nxls"
10+
val nxlsRoot = "${rootDir}/dist/apps/nxls"
1111

12-
layout.buildDirectory = file("${rootDir}/../../dist/apps/intellij")
12+
layout.buildDirectory = file("${rootDir}/dist/apps/intellij")
1313

1414
plugins {
1515
// Java support
@@ -26,8 +26,6 @@ plugins {
2626

2727
id("com.ncorti.ktfmt.gradle") version "0.24.0"
2828
id("dev.nx.gradle.project-graph") version "0.1.8"
29-
30-
3129
}
3230

3331
group = providers.gradleProperty("pluginGroup").get()

build.gradle.kts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ plugins {
1212
id("org.jetbrains.kotlin.jvm") version "2.0.21"
1313
// Kotlin serialization
1414
id("org.jetbrains.kotlin.plugin.serialization") version "2.0.21"
15-
// Gradle IntelliJ Platform Plugin
1615
id("org.jetbrains.intellij.platform") version "2.9.0"
1716
}
1817

libs/intellij/models/build.gradle.kts

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -16,29 +16,21 @@ repositories {
1616
mavenLocal()
1717
mavenCentral()
1818
gradlePluginPortal()
19-
2019
intellijPlatform { defaultRepositories() }
2120
}
2221

2322
dependencies {
2423
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.9.0")
25-
intellijPlatform {
26-
val type = providers.gradleProperty("platformType")
27-
val version = providers.gradleProperty("platformVersion")
28-
create(type, version) {
29-
useCache = true
30-
}
24+
implementation("com.google.code.gson:gson:2.10.1")
3125

32-
bundledPlugins(
33-
providers.gradleProperty("platformPlugins").map { plugins ->
34-
plugins.split(',').map(String::trim).filter(String::isNotEmpty)
35-
}
36-
)
37-
pluginVerifier()
38-
zipSigner()
26+
intellijPlatform {
27+
val type = providers.gradleProperty("platformType")
28+
val version = providers.gradleProperty("platformVersion")
29+
create(type, version) {
30+
useCache = true
31+
}
3932
}
4033
}
4134

4235
ktfmt { kotlinLangStyle() }
43-
4436
kotlin { jvmToolchain(21) }

0 commit comments

Comments
 (0)