build.gradle.kts 1.2 KB

12345678910111213141516171819202122232425262728293031323334
  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. plugins {
  10. kotlin("jvm")
  11. kotlin("plugin.serialization")
  12. id("java")
  13. }
  14. kotlin {
  15. sourceSets {
  16. all {
  17. languageSettings.useExperimentalAnnotation("kotlin.Experimental")
  18. languageSettings.useExperimentalAnnotation("kotlin.RequiresOptIn")
  19. languageSettings.progressiveMode = true
  20. languageSettings.useExperimentalAnnotation("net.mamoe.mirai.utils.MiraiInternalAPI")
  21. languageSettings.useExperimentalAnnotation("kotlin.ExperimentalUnsignedTypes")
  22. languageSettings.useExperimentalAnnotation("kotlin.experimental.ExperimentalTypeInference")
  23. languageSettings.useExperimentalAnnotation("kotlin.contracts.ExperimentalContracts")
  24. }
  25. }
  26. }
  27. dependencies {
  28. api(kotlin("stdlib-jdk8"))
  29. implementation(kotlin("reflect"))
  30. api(`mirai-core-utils`)
  31. }