build.gradle 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. // Gradle build file for Gradle 2.14.1
  2. // Created by huxz on 2017-3-17 13:38:59
  3. buildscript {
  4. ext {
  5. springBootVersion = '1.4.4.RELEASE'
  6. // 0.12.0 升级到了 Gradle 3.4,Gradle 2.14.1 只能使用 0.11.0及以下
  7. dockerVersion = '0.12.0'
  8. dcokerRegistry = "10.10.100.200:5000"
  9. }
  10. repositories {
  11. maven { url "https://plugins.gradle.org/m2/" }
  12. maven { url "http://maven.aliyun.com/nexus/content/groups/public/" }
  13. mavenCentral()
  14. jcenter()
  15. }
  16. dependencies {
  17. classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
  18. classpath "gradle.plugin.com.palantir.gradle.docker:gradle-docker:${dockerVersion}"
  19. }
  20. }
  21. group 'com.uas.cloud.mall'
  22. version '0.1.5'
  23. apply plugin: 'java'
  24. apply plugin: 'maven'
  25. apply plugin: "com.palantir.docker"
  26. apply plugin: "org.springframework.boot"
  27. apply from: "$rootDir/gradle/tasks.gradle"
  28. apply from: "$rootDir/gradle/dependencies-base.gradle"
  29. jar {
  30. baseName = project.name
  31. version = ''
  32. }
  33. allprojects {
  34. sourceCompatibility = 1.8
  35. }
  36. dependencies {
  37. compile("org.springframework.boot:spring-boot-starter-thymeleaf")
  38. // Spring Boot will create a MultipartConfigElement bean and make itself ready for file uploads.
  39. compile("org.springframework.cloud:spring-cloud-starter-feign")
  40. compile("org.springframework.cloud:spring-cloud-starter-ribbon")
  41. compile("org.springframework.cloud:spring-cloud-starter-hystrix")
  42. compile "com.uas.cloud.base.commons:common:0.1.0"
  43. compile("org.springframework.boot:spring-boot-devtools")
  44. compile("org.springframework.boot:spring-boot-starter-actuator")
  45. compile("org.webjars:webjars-locator")
  46. compile "org.springframework.boot:spring-boot-configuration-processor"
  47. compile "commons-fileupload:commons-fileupload:1.3.1"
  48. // compile "io.github.openfeign.form:feign-form:2.1.0"
  49. // compile "io.github.openfeign.form:feign-form-spring:2.1.0"
  50. }
  51. compileJava.dependsOn(processResources)
  52. uploadArchives {
  53. repositories {
  54. mavenDeployer {
  55. repository(url: "http://10.10.101.21:8081/artifactory/libs-release-local") {
  56. authentication(userName: "yingp", password: "111111")
  57. }
  58. }
  59. }
  60. }.dependsOn build