Skip to content

Commit ddfd903

Browse files
committed
try build
1 parent 9f5af16 commit ddfd903

File tree

1 file changed

+11
-20
lines changed

1 file changed

+11
-20
lines changed

build.gradle.kts

Lines changed: 11 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -160,25 +160,6 @@ val installDependencies by tasks.registering(Copy::class) {
160160
destinationDir = file("src/main/resources")
161161
}
162162

163-
// 复制资源到沙盒的任务
164-
val copyResourcesToSandbox by tasks.registering(Copy::class) {
165-
group = "build setup"
166-
description = "Copy resources to sandbox"
167-
168-
dependsOn(installDependencies)
169-
duplicatesStrategy = DuplicatesStrategy.WARN
170-
171-
from("src/main/resources/server") {
172-
into("server")
173-
}
174-
from("src/main/resources/debugger") {
175-
into("debugger")
176-
}
177-
178-
// 目标目录设置为沙盒的插件目录
179-
destinationDir = file("build/idea-sandbox/IC-${Versions.ideaSDK}/plugins/intellij-EmmyLua2")
180-
}
181-
182163
// 清理任务
183164
val cleanDependencies by tasks.registering(Delete::class) {
184165
group = "build setup"
@@ -262,7 +243,17 @@ tasks {
262243

263244
// 准备沙盒环境
264245
prepareSandbox {
265-
dependsOn(copyResourcesToSandbox)
246+
doLast {
247+
copy {
248+
from("src/main/resources/debugger")
249+
into("$destinationDir/${pluginName.get()}/debugger")
250+
}
251+
252+
copy {
253+
from("src/main/resources/server")
254+
into("$destinationDir/${pluginName.get()}/server")
255+
}
256+
}
266257
}
267258

268259
// 清理任务

0 commit comments

Comments
 (0)