mirror of
https://github.com/mamoe/mirai.git
synced 2025-04-25 21:23:55 +08:00
buildPlugin: Change output directory back to build/mirai
This commit is contained in:
parent
0e72fe9757
commit
a4562a7aef
mirai-console/tools/gradle-plugin/src
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2019-2021 Mamoe Technologies and contributors.
|
||||
* Copyright 2019-2022 Mamoe Technologies and contributors.
|
||||
*
|
||||
* 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version 3 许可证的约束, 可以在以下链接找到该许可证.
|
||||
* Use of this source code is governed by the GNU AGPLv3 license that can be found through the following link.
|
||||
@ -204,7 +204,7 @@ class TestBuildPlugin : AbstractTest() {
|
||||
}
|
||||
}
|
||||
|
||||
private fun findJar(): File = tempDir.resolve("build/libs").listFiles()!!.first { it.name.endsWith(".mirai.jar") }
|
||||
private fun findJar(): File = tempDir.resolve("build/mirai").listFiles()!!.first { it.name.endsWith(".mirai.jar") }
|
||||
|
||||
private fun checkOutput() {
|
||||
val jar = findJar()
|
||||
|
@ -121,6 +121,9 @@ public class MiraiConsoleGradlePlugin : Plugin<Project> {
|
||||
"miraiPrepareMetadata".wrapNameWithPlatform(target, isSingleTarget)
|
||||
)
|
||||
buildPluginV2.init(target)
|
||||
buildPluginV2.destinationDirectory.value(
|
||||
project.layout.projectDirectory.dir(project.buildDir.name).dir("mirai")
|
||||
)
|
||||
}
|
||||
tasks.create(
|
||||
"buildPluginLegacy".wrapNameWithPlatform(target, isSingleTarget),
|
||||
|
Loading…
Reference in New Issue
Block a user