123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
- buildscript {
- ext {
- springBootVersion = '1.5.9.RELEASE'
- }
- repositories {
- maven { url 'https://plugins.gradle.org/m2/' }
- maven { url 'http://repo.spring.io/plugins-release' }
- maven { url 'http://113.105.74.141:8081/artifactory/libs-release-local' }
- jcenter()
- }
- dependencies {
- classpath("org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:2.5")
- classpath("com.uas.demo.mesh:spring-boot-docker-plugin:1.0.2")
- classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
- }
- }
- group 'com.uas.cloud.mall'
- version '0.1.6-MESH'
- apply plugin: 'java'
- apply plugin: 'maven'
- apply plugin: 'eclipse'
- apply plugin: "org.springframework.boot"
- apply plugin: 'com.uas.docker.spring.boot'
- // apply plugin: "org.sonarqube"
- sourceCompatibility = 1.8
- repositories {
- maven { url 'http://10.10.101.21:8081/artifactory/libs-snapshot' }
- maven { url 'http://10.10.101.21:8081/artifactory/libs-release' }
- maven { url "http://maven.aliyun.com/nexus/content/groups/public/" }
- jcenter()
- mavenCentral()
- }
- ext {
- springCloudVersion = 'Edgware.RELEASE'
- }
- dependencies {
- compile "org.springframework.boot:spring-boot-starter-web"
- compile "org.springframework.boot:spring-boot-actuator"
- compile "org.springframework.boot:spring-boot-starter-data-jpa"
- compile "mysql:mysql-connector-java:5.1.21"
- compile "org.hibernate:hibernate-validator:$hibernateValidatorVersion"
- compile("org.springframework.cloud:spring-cloud-starter-consul-discovery")
- compile "com.uas.cloud.base.commons:common:0.1.0"
- }
- dependencyManagement {
- imports {
- mavenBom "org.springframework.cloud:spring-cloud-dependencies:${springCloudVersion}"
- }
- }
- customDocker {
- baseImage 'hub.c.163.com/library/java:8-jre-alpine'
- registry '10.10.100.200:5000'
- }
- uploadArchives {
- repositories {
- mavenDeployer {
- repository(url: "http://10.10.101.21:8081/artifactory/libs-release-local") {
- authentication(userName: "yingp", password: "111111")
- }
- }
- }
- }.dependsOn build
|