build.gradle 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. buildscript {
  2. ext {
  3. springBootVersion = '1.4.4.RELEASE'
  4. springloadedVersion = '1.2.6.RELEASE'
  5. }
  6. repositories {
  7. mavenCentral()
  8. jcenter()
  9. }
  10. dependencies {
  11. classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
  12. }
  13. }
  14. group = 'com.uas.cloud.mall'
  15. version = '0.1'
  16. apply plugin: 'java'
  17. apply plugin: 'org.springframework.boot'
  18. sourceCompatibility = 1.8 // 必须在apply java插件之后
  19. targetCompatibility = 1.8
  20. repositories {
  21. mavenCentral()
  22. }
  23. dependencyManagement {
  24. imports {
  25. mavenBom 'org.springframework.cloud:spring-cloud-dependencies:Camden.SR5'
  26. }
  27. }
  28. dependencies {
  29. compile "org.springframework.boot:spring-boot-starter-data-jpa"
  30. compile "mysql:mysql-connector-java:5.1.21"
  31. compile 'org.springframework.cloud:spring-cloud-starter-config'
  32. compile "org.springframework.cloud:spring-cloud-starter-eureka"
  33. compile "com.alibaba:fastjson:1.2.24"
  34. compile("org.springframework.boot:spring-boot-devtools")
  35. testCompile 'org.springframework.boot:spring-boot-starter-test'
  36. }