build.gradle 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. buildscript {
  2. ext {
  3. springBootVersion = '1.4.4.RELEASE'
  4. dockerVersion = '0.12.0'
  5. dockerRegistry = "10.10.100.200:5000"
  6. }
  7. repositories {
  8. maven { url "http://maven.aliyun.com/nexus/content/groups/public/" }
  9. maven { url "https://plugins.gradle.org/m2/" }
  10. maven { url 'http://10.10.101.21:8081/artifactory/plugins-release' }
  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.ops'
  20. version '0.0.1'
  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.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 'org.springframework.boot:spring-boot-starter-web'
  36. compile 'mysql:mysql-connector-java'
  37. compile 'commons-io:commons-io:2.5'
  38. }