build.gradle 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. buildscript {
  2. repositories {
  3. maven { url "https://plugins.gradle.org/m2/" }
  4. maven { url 'http://113.105.74.141:8081/artifactory/libs-release-local' }
  5. maven { url "http://maven.aliyun.com/nexus/content/groups/public/" }
  6. jcenter()
  7. }
  8. dependencies {
  9. classpath 'com.uas.demo.mesh:spring-boot-docker-plugin:1.0.0'
  10. classpath "org.springframework.boot:spring-boot-gradle-plugin:1.5.6.RELEASE"
  11. }
  12. }
  13. group 'com.uas.cloud.mall'
  14. version '0.1.6-MESH'
  15. apply plugin: 'java'
  16. apply plugin: 'maven'
  17. apply plugin: "org.springframework.boot"
  18. apply plugin: 'com.uas.docker.spring.boot'
  19. sourceCompatibility = 1.8
  20. repositories {
  21. maven { url 'http://10.10.101.21:8081/artifactory/libs-snapshot' }
  22. maven { url 'http://10.10.101.21:8081/artifactory/libs-release' }
  23. maven { url "http://maven.aliyun.com/nexus/content/groups/public/" }
  24. jcenter()
  25. mavenCentral()
  26. }
  27. dependencyManagement {
  28. imports {
  29. mavenBom 'org.springframework.cloud:spring-cloud-dependencies:Camden.SR5'
  30. }
  31. }
  32. dependencies {
  33. compile "org.springframework.boot:spring-boot-starter-web"
  34. compile("org.springframework.boot:spring-boot-starter-thymeleaf")
  35. // Spring Boot will create a MultipartConfigElement bean and make itself ready for file uploads.
  36. compile("org.springframework.cloud:spring-cloud-starter-feign")
  37. compile("org.springframework.cloud:spring-cloud-starter-ribbon")
  38. compile("org.springframework.cloud:spring-cloud-starter-hystrix")
  39. compile "com.uas.cloud.base.commons:common:0.1.0"
  40. compile("org.springframework.boot:spring-boot-devtools")
  41. compile("org.springframework.boot:spring-boot-starter-actuator")
  42. compile("org.webjars:webjars-locator")
  43. compile "commons-fileupload:commons-fileupload:1.3.1"
  44. testCompile "org.springframework.boot:spring-boot-starter-test"
  45. }
  46. customDocker {
  47. baseImage 'hub.c.163.com/library/java:8-jre-alpine'
  48. registry '10.10.100.200:5000'
  49. }
  50. uploadArchives {
  51. repositories {
  52. mavenDeployer {
  53. repository(url: "http://10.10.101.21:8081/artifactory/libs-release-local") {
  54. authentication(userName: "yingp", password: "111111")
  55. }
  56. }
  57. }
  58. }.dependsOn build