build.gradle 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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. compile group: "org.springframework.boot", name: "spring-boot-starter-activemq", version: SPRING_BOOT_VERSION
  23. ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  24. // RESTful API 文档生成工具
  25. // https://mvnrepository.com/artifact/io.springfox/springfox-swagger-ui
  26. compile group: "io.springfox", name: "springfox-swagger-ui", version: SWAGGER_VERSION
  27. compile group: "io.springfox", name: "springfox-swagger2", version: SWAGGER_VERSION
  28. // compile group: "cn.sagacloud", name: "saga-kotlin-base", version: SAGA_KOTLIN_VERSION
  29. // compile group: "cn.sagacloud", name: "saga-kotlin-database", version: SAGA_KOTLIN_VERSION
  30. // compile group: "cn.sagacloud", name: "saga-kotlin-mybatis", version: SAGA_KOTLIN_VERSION
  31. // compile group: "cn.sagacloud", name: "saga-kotlin-postgresql", version: SAGA_KOTLIN_VERSION
  32. // compile group: "cn.sagacloud", name: "saga-service-base", version: SAGA_SERVICE_VERSION
  33. // compile group: "cn.sagacloud", name: "saga-service-mybatis", version: SAGA_SERVICE_VERSION
  34. compile group: "com.persagy", name: "persagy-kotlin-base", version: PERSAGY_KOTLIN_VERSION
  35. compile group: "com.persagy", name: "persagy-kotlin-database", version: PERSAGY_KOTLIN_VERSION
  36. compile group: "com.persagy", name: "persagy-kotlin-mybatis", version: PERSAGY_KOTLIN_VERSION
  37. compile group: "com.persagy", name: "persagy-kotlin-postgresql", version: PERSAGY_KOTLIN_VERSION
  38. compile group: "com.persagy", name: "persagy-service-base", version: PERSAGY_SERVICE_VERSION
  39. compile group: "com.persagy", name: "persagy-service-mybatis", version: PERSAGY_SERVICE_VERSION
  40. //Gson
  41. compile 'com.google.code.gson:gson:2.8.0'
  42. }