build.gradle.kts 985 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /*
  2. * Copyright 2019-2020 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. kotlin("plugin.serialization")
  13. id("java")
  14. `maven-publish`
  15. id("com.jfrog.bintray")
  16. id("net.mamoe.kotlin-jvm-blocking-bridge")
  17. }
  18. version = Versions.project
  19. description = "Mirai core shadowed"
  20. java {
  21. sourceCompatibility = JavaVersion.VERSION_1_8
  22. targetCompatibility = JavaVersion.VERSION_1_8
  23. }
  24. tasks.withType(JavaCompile::class.java) {
  25. options.encoding = "UTF8"
  26. }
  27. kotlin {
  28. explicitApi()
  29. }
  30. dependencies {
  31. api(project(":mirai-core"))
  32. api(project(":mirai-core-api"))
  33. }
  34. configurePublishing("mirai-core-all")