build.gradle.kts 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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 = "1.0.0"
  9. val mavenUser: String? by project
  10. val mavenPassword: String? by project
  11. plugins {
  12. id("java-library")
  13. id("maven-publish")
  14. kotlin("jvm")
  15. }
  16. dependencies {
  17. // implementation(fileTree("$rootDir/libs") { include("gaf-core-shared-*.jar") })
  18. implementation("cc-lotus.gaf3:gaf-core-shared:${property("gafVersion")}")
  19. implementation("org.springframework.boot:spring-boot-starter:${property("springBootVersion")}")
  20. implementation("org.springframework.boot:spring-boot-starter-validation:${property("springBootVersion")}")
  21. implementation("org.springframework.boot:spring-boot-starter-webflux:${property("springBootVersion")}")
  22. annotationProcessor("org.springframework.boot:spring-boot-configuration-processor:${property("springBootVersion")}")
  23. }
  24. tasks.named<Jar>("jar") {
  25. archiveBaseName.set("xms-${project.name}")
  26. }
  27. publishing {
  28. publications {
  29. create<MavenPublication>("maven") {
  30. artifactId = "xms-${project.name}"
  31. from(components["java"])
  32. }
  33. }
  34. }