build.gradle 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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.5.3.RELEASE'
  6. // 0.12.0 升级到了 Gradle 3.4,Gradle 2.14.1 只能使用 0.11.0及以下
  7. dockerVersion = '0.11.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.10'
  23. apply plugin: 'java'
  24. apply plugin: "com.palantir.docker"
  25. apply plugin: "org.springframework.boot"
  26. apply from: "$rootDir/gradle/tasks.gradle"
  27. apply from: "$rootDir/gradle/dependencies-base.gradle"
  28. jar {
  29. baseName = project.name
  30. version = ''
  31. }
  32. allprojects {
  33. sourceCompatibility = 1.8
  34. }
  35. dependencies {
  36. compile("org.springframework.boot:spring-boot-starter-web")
  37. compile("org.springframework.boot:spring-boot-starter-data-mongodb")
  38. }