build.gradle 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. apply plugin: "kotlin"
  2. group 'com.persagy.server'
  3. version '2.0.0'
  4. sourceCompatibility = JVM_TARGET
  5. compileKotlin {
  6. kotlinOptions.jvmTarget = JVM_TARGET
  7. }
  8. compileTestKotlin {
  9. kotlinOptions.jvmTarget = JVM_TARGET
  10. }
  11. sourceCompatibility = 1.8
  12. repositories {
  13. mavenCentral()
  14. }
  15. dependencies {
  16. // implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
  17. // testCompile group: 'junit', name: 'junit', version: '4.12'
  18. // kotlin 依赖
  19. compile group: "org.jetbrains.kotlin", name: "kotlin-stdlib-jdk8", version: KOTLIN_VERSION
  20. compile group: "org.jetbrains.kotlin", name: "kotlin-reflect", version: KOTLIN_VERSION
  21. ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  22. // RESTful API 文档生成工具
  23. // https://mvnrepository.com/artifact/io.springfox/springfox-swagger-ui
  24. compile group: "io.springfox", name: "springfox-swagger-ui", version: SWAGGER_VERSION
  25. compile group: "io.springfox", name: "springfox-swagger2", version: SWAGGER_VERSION
  26. compile group: "cn.sagacloud", name: "saga-kotlin-base", version: SAGA_KOTLIN_VERSION
  27. compile group: "cn.sagacloud", name: "saga-kotlin-database", version: SAGA_KOTLIN_VERSION
  28. compile group: "cn.sagacloud", name: "saga-kotlin-mybatis", version: SAGA_KOTLIN_VERSION
  29. compile group: "cn.sagacloud", name: "saga-kotlin-postgresql", version: SAGA_KOTLIN_VERSION
  30. compile group: "cn.sagacloud", name: "saga-service-base", version: SAGA_SERVICE_VERSION
  31. compile group: "cn.sagacloud", name: "saga-service-mybatis", version: SAGA_SERVICE_VERSION
  32. //Gson
  33. compile 'com.google.code.gson:gson:2.8.0'
  34. }