build.gradle.kts 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. /*
  2. * This file was generated by the Gradle 'init' task.
  3. *
  4. * This is a general purpose Gradle build.
  5. * Learn how to create Gradle builds at https://guides.gradle.org/creating-new-gradle-builds
  6. */
  7. group = "jit.xms"
  8. version = rootProject.version
  9. plugins {
  10. id("java-library")
  11. id("maven-publish")
  12. id("io.spring.dependency-management")
  13. kotlin("jvm")
  14. kotlin("plugin.spring")
  15. kotlin("plugin.jpa")
  16. }
  17. dependencies {
  18. compileOnly(platform(project(":platform")))
  19. compileOnly("org.bouncycastle:bcprov-jdk15on")
  20. compileOnly(fileTree("$rootDir/libs") { include("*.jar") })
  21. compileOnly(kotlin("reflect"))
  22. compileOnly(kotlin("stdlib-jdk8"))
  23. compileOnly("cc-lotus.gaf3:gaf-core-shared:${property("gafVersion")}")
  24. compileOnly("com.alibaba:fastjson:${property("fastjsonVersion")}")
  25. compileOnly("com.fasterxml.jackson.module:jackson-module-kotlin")
  26. compileOnly("org.springframework.cloud:spring-cloud-starter-openfeign")
  27. compileOnly("org.springframework.boot:spring-boot-starter-webflux")
  28. compileOnly("org.hibernate:hibernate-core")
  29. }
  30. dependencyManagement {
  31. imports {
  32. mavenBom(org.springframework.boot.gradle.plugin.SpringBootPlugin.BOM_COORDINATES)
  33. mavenBom("org.springframework.cloud:spring-cloud-dependencies:${property("springCloudVersion")}")
  34. }
  35. }
  36. tasks.named<Jar>("jar") {
  37. archiveBaseName.set("xms-core-${project.name}")
  38. }
  39. publishing {
  40. publications {
  41. create<MavenPublication>("maven") {
  42. artifactId = "xms-core-shared"
  43. from(components["java"])
  44. }
  45. }
  46. }