2021-01-28 09:32:22 +08:00
|
|
|
/*
|
2022-11-28 03:58:28 +08:00
|
|
|
* Copyright 2019-2022 Mamoe Technologies and contributors.
|
2021-01-28 09:32:22 +08:00
|
|
|
*
|
2022-11-28 03:58:28 +08:00
|
|
|
* 此源代码的使用受 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.
|
2021-01-28 09:32:22 +08:00
|
|
|
*
|
2022-11-28 03:58:28 +08:00
|
|
|
* https://github.com/mamoe/mirai/blob/dev/LICENSE
|
2021-01-28 09:32:22 +08:00
|
|
|
*/
|
|
|
|
|
2020-05-14 08:18:03 +08:00
|
|
|
plugins {
|
2020-08-16 23:21:11 +08:00
|
|
|
kotlin("jvm")
|
|
|
|
kotlin("plugin.serialization")
|
2020-05-14 08:18:03 +08:00
|
|
|
id("java")
|
|
|
|
`maven-publish`
|
|
|
|
}
|
|
|
|
|
2022-11-28 03:58:28 +08:00
|
|
|
val shadow: Configuration = project.configurations.create("shadow")
|
|
|
|
|
2020-05-14 08:18:03 +08:00
|
|
|
dependencies {
|
2022-11-28 03:58:28 +08:00
|
|
|
api(project(":mirai-core-api"))
|
|
|
|
api(project(":mirai-console"))
|
|
|
|
implementation(project(":mirai-core-utils"))
|
|
|
|
|
|
|
|
shadowImplementation(jline)
|
|
|
|
shadowImplementation(jansi)
|
|
|
|
shadowImplementation(project(":mirai-console-frontend-base"))
|
|
|
|
|
|
|
|
testImplementation(project(":mirai-core"))
|
2020-06-23 22:18:49 +08:00
|
|
|
}
|
|
|
|
|
2020-09-18 12:43:57 +08:00
|
|
|
version = Versions.consoleTerminal
|
2020-05-14 08:18:03 +08:00
|
|
|
|
2020-09-18 12:43:57 +08:00
|
|
|
description = "Console Terminal CLI frontend for mirai"
|
2020-06-28 11:45:21 +08:00
|
|
|
|
2022-11-28 03:58:28 +08:00
|
|
|
configurePublishing("mirai-console-terminal", setupGpg = false, addShadowJar = false)
|
|
|
|
val shadowJar = registerRegularShadowTaskForJvmProject(listOf(shadow))
|
|
|
|
publishing {
|
|
|
|
publications.getByName("mavenJava", MavenPublication::class) {
|
|
|
|
artifacts.artifact(shadowJar)
|
|
|
|
}
|
|
|
|
configGpgSign(project)
|
|
|
|
}
|