build.gradle 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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.2'
  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-data-mongodb"
  38. // compile("org.mongodb:mongo-java-driver:3.4.2")
  39. //compile "com.uas.cloud.base.commons:common:0.1.0"
  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