2
0

build.gradle.kts 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /*
  2. * Copyright 2019-2023 Mamoe Technologies and contributors.
  3. *
  4. * 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version 3 许可证的约束, 可以在以下链接找到该许可证.
  5. * Use of this source code is governed by the GNU AGPLv3 license that can be found through the following link.
  6. *
  7. * https://github.com/mamoe/mirai/blob/dev/LICENSE
  8. */
  9. plugins {
  10. kotlin("jvm")
  11. kotlin("plugin.serialization")
  12. id("java")
  13. `maven-publish`
  14. }
  15. val shadow: Configuration = project.configurations.create("shadow")
  16. dependencies {
  17. api(project(":mirai-core-api"))
  18. api(project(":mirai-console"))
  19. implementation(project(":mirai-core-utils"))
  20. shadowImplementation(jline)
  21. shadowImplementation(jansi)
  22. shadowImplementation(project(":mirai-console-frontend-base"))
  23. implementation(`kotlin-jvm-blocking-bridge`)
  24. testImplementation(project(":mirai-core"))
  25. }
  26. version = Versions.consoleTerminal
  27. description = "Console Terminal CLI frontend for mirai"
  28. configurePublishing("mirai-console-terminal", addShadowJar = false)
  29. val shadowJar = registerRegularShadowTaskForJvmProject(listOf(shadow))
  30. publishing {
  31. publications.getByName("mavenJava", MavenPublication::class) {
  32. artifacts.artifact(shadowJar)
  33. }
  34. }