build.gradle 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. plugins {
  2. id 'org.springframework.boot' version '2.1.0.RELEASE'
  3. id 'io.spring.dependency-management' version '1.0.8.RELEASE'
  4. id 'java'
  5. }
  6. ext {
  7. set('springCloudVersion', "Greenwich.SR2")
  8. set('springBootVersion',"2.1.0.RELEASE")
  9. set('droolsVersion',"7.11.0.Final")
  10. }
  11. group = 'com.zoniot'
  12. version = '0.0.1-SNAPSHOT'
  13. sourceCompatibility = '1.8'
  14. configurations {
  15. compileOnly {
  16. extendsFrom annotationProcessor
  17. }
  18. }
  19. repositories {
  20. mavenLocal()
  21. maven{ url 'http://maven.aliyun.com/nexus/content/groups/public/'}
  22. }
  23. ext {
  24. //set('springCloudVersion', "Hoxton.M3")
  25. //set('springCloudVersion', "Finchley.SR1")
  26. set('springCloudVersion', "Greenwich.SR2")
  27. set('springCloudAlibabaVersion', "2.1.0.RELEASE")
  28. //set('springCloudAlibabaVersion', "0.2.2.RELEASE")
  29. //set('springCloudAlibabaVersion', "0.9.0.RELEASE")
  30. }
  31. dependencyManagement {
  32. imports {
  33. mavenBom "org.springframework.cloud:spring-cloud-dependencies:${springCloudVersion}"
  34. mavenBom "com.alibaba.cloud:spring-cloud-alibaba-dependencies:${springCloudAlibabaVersion}"
  35. }
  36. }
  37. dependencies {
  38. implementation 'org.springframework.boot:spring-boot-starter'
  39. compileOnly 'org.projectlombok:lombok'
  40. annotationProcessor 'org.projectlombok:lombok'
  41. testImplementation('org.springframework.boot:spring-boot-starter-test') {
  42. exclude group: 'org.junit.vintage', module: 'junit-vintage-engine'
  43. }
  44. implementation 'org.springframework.boot:spring-boot-starter'
  45. implementation 'org.springframework.boot:spring-boot-starter-actuator'
  46. //implementation('org.springframework.boot:spring-boot-starter-web')
  47. implementation 'org.springframework.cloud:spring-cloud-starter-gateway'
  48. //implementation 'com.alibaba.cloud:spring-cloud-starter-alibaba-nacos-discovery'
  49. compile('io.springfox:springfox-swagger2:2.9.2')
  50. compile('org.springframework.boot:spring-boot-starter-data-redis')
  51. {
  52. exclude group: 'io.lettuce'
  53. }
  54. compile('redis.clients:jedis')
  55. }
  56. test {
  57. useJUnitPlatform()
  58. }