Skip to content

Commit 408d6e7

Browse files
committed
don't copy all jars
1 parent 8da4298 commit 408d6e7

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

build.gradle.kts

+1-11
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ val assemblePlugin by tasks.registering(Jar::class) {
3434
from(sourceSets.main.get().output)
3535
}
3636

37-
val copyPlugin by tasks.creating(Copy::class.java) {
37+
val copyPlugin by tasks.creating(Sync::class.java) {
3838
dependsOn(assemblePlugin)
3939

4040
val userHome = System.getProperty("user.home").let { Path.of(it) }
@@ -53,19 +53,9 @@ val copyPlugin by tasks.creating(Copy::class.java) {
5353
} / "plugins"
5454

5555
val targetDir = pluginsDir / pluginId
56-
val runtimeClasspath by configurations.getting
5756

5857
from(assemblePlugin.get().outputs.files)
5958

60-
val excludedJarPrefixes = listOf("gateway-api")
61-
val filteredClasspath = runtimeClasspath.filter { f ->
62-
!excludedJarPrefixes.any { p -> f.name.startsWith(p) }
63-
}
64-
65-
from(filteredClasspath) {
66-
include("$pluginId.jar")
67-
}
68-
6959
from("src/main/resources") {
7060
include("extension.json")
7161
include("icon.svg")

0 commit comments

Comments
 (0)