build.gradle 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. buildscript {
  2. ext {
  3. springBootVersion = '1.4.4.RELEASE'
  4. }
  5. repositories {
  6. mavenLocal()
  7. mavenCentral()
  8. }
  9. dependencies {
  10. classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
  11. }
  12. }
  13. group 'com.uas.cloud.mall'
  14. version '1.0-SNAPSHOT'
  15. apply plugin: 'java'
  16. apply plugin: 'org.springframework.boot'
  17. repositories {
  18. mavenLocal()
  19. jcenter()
  20. maven {
  21. url 'http://10.10.101.21:8081/artifactory/libs-release'
  22. }
  23. maven {
  24. url 'http://10.10.101.21:8081/artifactory/libs-snapshot'
  25. }
  26. mavenCentral()
  27. }
  28. sourceCompatibility = 1.8
  29. targetCompatibility = 1.8
  30. dependencyManagement {
  31. imports {
  32. mavenBom 'org.springframework.cloud:spring-cloud-dependencies:Camden.SR5'
  33. }
  34. }
  35. dependencies {
  36. compile ("org.springframework.cloud:spring-cloud-starter-eureka")
  37. compile("org.springframework.boot:spring-boot-starter-web")
  38. compile("org.springframework.boot:spring-boot-starter-data-jpa")
  39. compile("com.uas.cloud.mall:commons:0.0.1"){
  40. exclude(module: 'servlet-api')
  41. }
  42. compile ("io.springfox:springfox-swagger2:2.4.0")
  43. compile ("io.springfox:springfox-swagger-ui:2.4.0")
  44. runtime("com.oracle:ojdbc6:11.2.0")
  45. }