build.gradle 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. buildscript {
  2. ext {
  3. springBootVersion = '1.4.4.RELEASE'
  4. // 0.12.0 升级到了 Gradle 3.4,Gradle 2.14.1 只能使用 0.11.0及以下
  5. dockerVersion = '0.12.0'
  6. dcokerRegistry = "10.10.100.200:5000"
  7. }
  8. repositories {
  9. maven { url "https://plugins.gradle.org/m2/" }
  10. maven { url "http://maven.aliyun.com/nexus/content/groups/public/" }
  11. mavenCentral()
  12. jcenter()
  13. }
  14. dependencies {
  15. classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
  16. classpath "gradle.plugin.com.palantir.gradle.docker:gradle-docker:${dockerVersion}"
  17. }
  18. }
  19. group 'com.uas.cloud.mall'
  20. version '0.0.10'
  21. apply plugin: 'java'
  22. apply plugin: "com.palantir.docker"
  23. apply plugin: "org.springframework.boot"
  24. apply from: "$rootDir/gradle/tasks.gradle"
  25. apply from: "$rootDir/gradle/dependencies-base.gradle"
  26. jar {
  27. baseName = project.name
  28. version = ''
  29. }
  30. allprojects {
  31. sourceCompatibility = 1.8
  32. }
  33. dependencies {
  34. compile "org.springframework.boot:spring-boot-starter-data-jpa"
  35. compile "mysql:mysql-connector-java:5.1.21"
  36. compile "com.alibaba:fastjson:1.2.24"
  37. }