build.gradle 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. buildscript {
  2. repositories {
  3. maven { url "http://maven.aliyun.com/nexus/content/groups/public/" }
  4. maven { url "https://plugins.gradle.org/m2/" }
  5. mavenCentral()
  6. jcenter()
  7. }
  8. dependencies {
  9. classpath("org.springframework.boot:spring-boot-gradle-plugin:1.4.4.RELEASE")
  10. }
  11. }
  12. group 'com.uas.cloud'
  13. version '0.0.1'
  14. apply plugin: 'java'
  15. apply plugin: 'idea'
  16. apply plugin: 'maven'
  17. apply plugin: 'spring-boot'
  18. jar {
  19. baseName = project.name
  20. version = ''
  21. }
  22. sourceCompatibility = 1.8
  23. repositories {
  24. mavenLocal()
  25. maven { url "http://repo.spring.io/libs-milestone" }
  26. maven { url "http://repo.spring.io/libs-release" }
  27. maven { url "http://maven.aliyun.com/nexus/content/groups/public/" }
  28. mavenCentral()
  29. }
  30. dependencyManagement {
  31. imports {
  32. mavenBom "org.springframework.cloud:spring-cloud-dependencies:Camden.SR2"
  33. }
  34. }
  35. dependencies {
  36. compile 'org.springframework.cloud:spring-cloud-starter-eureka-server'
  37. compile 'org.springframework.cloud:spring-cloud-config-client'
  38. compile 'org.springframework.boot:spring-boot-starter-hateoas'
  39. compile 'org.springframework.boot:spring-boot-actuator'
  40. }
  41. uploadArchives {
  42. repositories {
  43. mavenDeployer {
  44. repository(url: "http://10.10.101.21:8081/artifactory/libs-release-local") {
  45. authentication(userName: "yingp", password: "111111")
  46. }
  47. }
  48. }
  49. }.dependsOn build