| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- group 'com.uas.saas'
- version '0.0.1'
- buildscript {
- ext {
- springBootVersion = '1.5.6.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://10.10.100.21:8081/artifactory/libs-snapshot-local" }
- 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-jdbc'
- compile 'org.springframework.boot:spring-boot-starter-aop'
- compile "org.springframework.boot:spring-boot-starter-freemarker"
- compile "com.uas.account:sso-integration:1.2.4-SNAPSHOT"
- compile "com.oracle:ojdbc6:11.2.0"
- compile "com.belerweb:pinyin4j:2.5.1"
- compile "com.uas.message:message-mail-api:0.0.1"
- }
- 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
|