build.gradle.kts 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. group = "llh.svs"
  2. version = rootProject.version
  3. plugins {
  4. id("java")
  5. id("io.spring.dependency-management")
  6. id("org.springframework.boot")
  7. kotlin("jvm")
  8. kotlin("plugin.spring")
  9. kotlin("plugin.jpa")
  10. }
  11. dependencies {
  12. api(platform(project(":platform")))
  13. implementation(kotlin("reflect"))
  14. implementation(kotlin("stdlib-jdk8"))
  15. implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core")
  16. implementation("org.jetbrains.kotlinx:kotlinx-coroutines-reactive")
  17. implementation("net.sourceforge.jexcelapi:jxl")
  18. implementation("commons-io:commons-io")
  19. implementation("org.apache.commons:commons-dbcp2")
  20. implementation("cc-lotus.gaf3:gaf-core-shared")
  21. implementation("cc-lotus.gaf3:gaf-core-services")
  22. implementation("cc-lotus.gaf3:gaf-core-gateway")
  23. implementation("com.alibaba:fastjson")
  24. implementation("io.jsonwebtoken:jjwt-api")
  25. implementation("io.jsonwebtoken:jjwt-impl")
  26. implementation("io.jsonwebtoken:jjwt-jackson")
  27. implementation("org.springframework.cloud:spring-cloud-starter-openfeign")
  28. implementation("org.springframework.boot:spring-boot-starter-data-jpa")
  29. implementation("org.springframework.boot:spring-boot-starter-data-redis")
  30. implementation("org.springframework.boot:spring-boot-starter-webflux")
  31. implementation("com.fasterxml.jackson.module:jackson-module-kotlin")
  32. implementation("org.springframework.boot:spring-boot-configuration-processor")
  33. implementation("org.springframework.cloud:spring-cloud-starter-gateway")
  34. implementation("org.springframework.cloud:spring-cloud-gateway-webflux")
  35. implementation("io.github.openfeign:feign-jackson:10.9")
  36. implementation("org.mongodb:bson")
  37. implementation("com.belerweb:pinyin4j:2.5.1")
  38. implementation(project(path = ":services:service-system", configuration = "lib"))
  39. implementation(project(path = ":services:service-task", configuration = "lib"))
  40. implementation(project(path = ":shared", configuration = "lib"))
  41. implementation("com.squareup.okhttp3:okhttp:4.10.0-RC1")
  42. implementation("com.github.oshi:oshi-core:6.1.4")
  43. runtimeOnly("mysql:mysql-connector-java")
  44. runtimeOnly(fileTree("$rootDir/libs") { include("*.jar") })
  45. }
  46. dependencyManagement {
  47. imports {
  48. mavenBom("org.springframework.cloud:spring-cloud-dependencies:${property("springCloudVersion")}")
  49. }
  50. }
  51. tasks.register<Sync>("script") {
  52. from("script")
  53. into("$buildDir/script")
  54. val disableAppVersion: String? by project
  55. if (disableAppVersion == "true") {
  56. expand("name" to project.name, "version" to version)
  57. } else {
  58. expand("name" to "${project.name}-$version", "version" to version)
  59. }
  60. }
  61. tasks.register<Copy>("dist") {
  62. dependsOn(tasks.named("bootJar"), tasks.named("script"))
  63. into("$rootDir/dist/${project.name}")
  64. from(tasks["bootJar"].outputs)
  65. from("$buildDir/script")
  66. }