mirror of
https://github.com/mamoe/mirai.git
synced 2025-02-05 05:14:43 +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")
|
configurePublishing("mirai-core-mock")
|
||||||
tasks.named("shadowJar") { enabled = false }
|
tasks.named("shadowJar") { enabled = false }
|
||||||
|
Loading…
Reference in New Issue
Block a user