build.gradle.kts 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. /*
  2. * Copyright 2019-2021 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/master/LICENSE
  8. */
  9. @file:Suppress("UnusedImport")
  10. plugins {
  11. kotlin("jvm")
  12. id("java")
  13. `maven-publish`
  14. }
  15. version = Versions.core
  16. description = "Mirai SLF4J Adapter with logback-classic"
  17. kotlin {
  18. explicitApi()
  19. }
  20. dependencies {
  21. api(project(":mirai-core-api"))
  22. api(project(":mirai-logging-slf4j")) // mirai -> slf4j
  23. implementation(project(":mirai-logging-log4j2")) {
  24. exclude("org.apache.logging.log4j", "log4j-slf4j-impl")
  25. } // mirai -> log4j2
  26. api(`slf4j-api`)
  27. api(`logback-classic`)
  28. testImplementation(project(":mirai-core"))
  29. testImplementation(project(":mirai-core-utils"))
  30. }
  31. configurePublishing("mirai-logging-slf4j-logback")