build.gradle 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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.service'
  14. version '1.0-SNAPSHOT'
  15. apply plugin: 'idea'
  16. apply plugin: 'java'
  17. apply plugin: 'spring-boot'
  18. sourceCompatibility = 1.8
  19. targetCompatibility = 1.8
  20. repositories {
  21. mavenLocal()
  22. mavenCentral()
  23. }
  24. dependencyManagement {
  25. imports {
  26. mavenBom 'org.springframework.cloud:spring-cloud-dependencies:Camden.SR5'
  27. }
  28. }
  29. dependencies {
  30. compile('org.springframework.cloud:spring-cloud-starter-eureka')
  31. compile('org.springframework.boot:spring-boot-starter-data-mongodb')
  32. testCompile('org.springframework.boot:spring-boot-starter-test')
  33. }
  34. subprojects {
  35. apply plugin: 'idea'
  36. apply plugin: 'java'
  37. apply plugin: 'spring-boot'
  38. sourceCompatibility = 1.8
  39. targetCompatibility = 1.8
  40. repositories {
  41. mavenLocal()
  42. jcenter()
  43. mavenCentral()
  44. }
  45. dependencyManagement {
  46. imports {
  47. mavenBom 'org.springframework.cloud:spring-cloud-dependencies:Camden.SR5'
  48. }
  49. }
  50. idea {
  51. module {
  52. downloadSources = true
  53. downloadJavadoc = false
  54. inheritOutputDirs = false
  55. outputDir = file("$buildDir/classes/main/")
  56. }
  57. }
  58. }
  59. idea {
  60. project {
  61. jdkName = '1.8'
  62. languageLevel = '1.8'
  63. }
  64. }