build.gradle 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. apply from: "$rootDir/gradle/service-base.gradle"
  2. apply from: "$rootDir/gradle/publish.gradle"
  3. apply from: "$rootDir/gradle/docker.gradle"
  4. group 'com.uas.cloud.base'
  5. version '0.1.0'
  6. ext {
  7. baseName = 'base-oauth2-service'
  8. artifactId = 'base-oauth2-service'
  9. }
  10. jar {
  11. baseName = "${baseName}"
  12. version = "${version}"
  13. }
  14. dependencies {
  15. compile 'org.springframework.boot:spring-boot-starter-data-jpa'
  16. compile 'org.springframework.boot:spring-boot-starter-security'
  17. compile 'org.springframework.cloud:spring-cloud-starter-oauth2'
  18. compile 'org.springframework.boot:spring-boot-starter-web'
  19. compile 'org.springframework.boot:spring-boot-starter-data-rest'
  20. compile 'org.springframework.cloud:spring-cloud-starter-hystrix'
  21. // compile 'org.springframework.boot:spring-boot-starter-freemarker'
  22. compile 'org.springframework.boot:spring-boot-starter-thymeleaf'
  23. compile 'org.springframework.boot:spring-boot-starter-redis'
  24. compile 'org.springframework.session:spring-session-data-redis'
  25. compile 'org.hibernate:hibernate-java8'
  26. // compile 'com.h2database:h2'
  27. // runtime 'mysql:mysql-connector-java'
  28. compile "com.oracle:ojdbc6:11.2.0"
  29. compile "com.alibaba:fastjson:1.2.14"
  30. compile 'joda-time:joda-time'
  31. compile 'com.google.code.gson:gson'
  32. // 静态文件作为依赖虽然能够简洁源码,但是不方便静态页面调试,所以不采用这种方式。而且编写前端页面时也没有代码提示
  33. // 静态文件
  34. // compile 'org.webjars:angularjs:1.4.3'
  35. // compile 'org.webjars:jquery:2.1.1'
  36. // compile 'org.webjars:bootstrap:3.2.0'
  37. // compile 'org.webjars:webjars-locator'
  38. // 后续需要使用插件把改以来改为 optional, 而不是 compile
  39. compile 'org.springframework.boot:spring-boot-configuration-processor'
  40. }