| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- group 'com.uas.platform'
- version '0.0.1'
- buildscript {
- ext {
- springBootVersion = '1.5.9.RELEASE'
- dockerVersion = '0.12.0'
- dockerRegistry = "10.10.100.200:5000"
- }
- repositories {
- maven { url "http://maven.aliyun.com/nexus/content/groups/public/" }
- maven { url "https://plugins.gradle.org/m2/" }
- maven { url "https://repo.spring.io/libs-release" }
- mavenCentral()
- jcenter()
- }
- dependencies {
- classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
- classpath "gradle.plugin.com.palantir.gradle.docker:gradle-docker:${dockerVersion}"
- }
- }
- apply plugin: 'java'
- apply plugin: "com.palantir.docker"
- apply plugin: "org.springframework.boot"
- sourceCompatibility = 1.8
- repositories {
- mavenLocal()
- maven { url "http://repo.spring.io/libs-release" }
- maven { url "http://maven.aliyun.com/nexus/content/groups/public/" }
- mavenCentral()
- }
- dependencies {
- compile "org.springframework.boot:spring-boot-starter-web"
- testCompile "org.springframework.boot:spring-boot-starter-test"
- compile 'org.springframework.boot:spring-boot-starter-data-jpa'
- compile "org.springframework.boot:spring-boot-starter-security"
- compile "org.springframework.session:spring-session"
- compile 'mysql:mysql-connector-java:5.1.44'
- compile "com.alibaba:fastjson:1.2.14"
- }
- jar {
- baseName = project.name
- version = ''
- }
- bootRun {
- addResources = true
- }
- docker {
- name "${dockerRegistry}/${project.name}:${project.version}"
- dockerfile "${projectDir}/src/main/docker/Dockerfile"
- files "${buildDir}/libs/${project.name}.jar"
- }.dependsOn build
|