We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent8da4298 commit408d6e7Copy full SHA for 408d6e7
build.gradle.kts
@@ -34,7 +34,7 @@ val assemblePlugin by tasks.registering(Jar::class) {
34
from(sourceSets.main.get().output)
35
}
36
37
-val copyPlugin by tasks.creating(Copy::class.java) {
+val copyPlugin by tasks.creating(Sync::class.java) {
38
dependsOn(assemblePlugin)
39
40
val userHome=System.getProperty("user.home").let {Path.of(it) }
@@ -53,19 +53,9 @@ val copyPlugin by tasks.creating(Copy::class.java) {
53
}/"plugins"
54
55
val targetDir= pluginsDir/ pluginId
56
-val runtimeClasspath by configurations.getting
57
58
from(assemblePlugin.get().outputs.files)
59
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
69
from("src/main/resources") {
70
include("extension.json")
71
include("icon.svg")