build.gradle.kts 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637
  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("NULLABILITY_MISMATCH_BASED_ON_JAVA_ANNOTATIONS")
  10. /*
  11. * Copyright 2019-2021 Mamoe Technologies and contributors.
  12. *
  13. * 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version 3 许可证的约束, 可以在以下链接找到该许可证.
  14. * Use of this source code is governed by the GNU AGPLv3 license that can be found through the following link.
  15. *
  16. * https://github.com/mamoe/mirai/blob/master/LICENSE
  17. */
  18. plugins {
  19. kotlin("jvm")
  20. kotlin("plugin.serialization")
  21. id("kotlinx-atomicfu")
  22. id("net.mamoe.kotlin-jvm-blocking-bridge")
  23. }
  24. description = "Mirai API binary compatibility validator"
  25. tasks.withType(kotlinx.validation.KotlinApiBuildTask::class) {
  26. inputClassesDirs =
  27. files(inputClassesDirs.files, project(":mirai-core-api").buildDir.resolve("classes/kotlin/jvm/main"))
  28. }
  29. // tasks["apiDump"].dependsOn(project(":mirai-core-api").tasks["build"])
  30. // this dependency is set in mirai-core-api since binary validator is configured before mirai-core-api