build.gradle.kts 756 B

12345678910111213141516171819202122232425262728
  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. @file:Suppress("UnusedImport")
  10. plugins {
  11. kotlin("multiplatform")
  12. `maven-publish`
  13. }
  14. version = Versions.console
  15. description = "Mirai Console compiler annotations"
  16. kotlin {
  17. explicitApi()
  18. apply(plugin = "explicit-api")
  19. configureJvmTargetsHierarchical("net.mamoe.mirai.compiler.annotations")
  20. configureNativeTargetsHierarchical(project)
  21. }
  22. configureMppPublishing()