mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-26 16:10:11 +08:00
[mock] Create task :mirai-core-mock:buildRuntimeClasspath
This commit is contained in:
parent
5618333a9d
commit
ca840f88be
@ -33,5 +33,18 @@ dependencies {
|
||||
|
||||
}
|
||||
|
||||
tasks.register("buildRuntimeClasspath") { // this task is used for mirai-mock-framework (external)
|
||||
dependsOn("assemble")
|
||||
doLast {
|
||||
val out = temporaryDir.also { it.mkdirs() }.resolve("classpath.txt")
|
||||
out.bufferedWriter().use { writer ->
|
||||
configurations["runtimeClasspath"].files.forEach { f ->
|
||||
writer.write(f.absolutePath)
|
||||
writer.write("\n")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
configurePublishing("mirai-core-mock")
|
||||
tasks.named("shadowJar") { enabled = false }
|
||||
|
Loading…
Reference in New Issue
Block a user