build.gradle 1.2 KB
Newer Older
木下藤吉郎's avatar
123  
木下藤吉郎 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
buildscript {
    repositories {
        maven { url 'https://maven.aliyun.com/nexus/content/groups/public' }
    }
    dependencies {
        classpath 'org.springframework.boot:spring-boot-gradle-plugin:2.4.5'
    }
}

plugins {
    id 'org.springframework.boot' version '2.4.5'
    id 'io.spring.dependency-management' version '1.0.11.RELEASE'
    id 'java'
}

group = 'com.zkcloud'
version = '1.0.0'
sourceCompatibility = '1.8'

repositories {
    maven { url 'https://maven.aliyun.com/nexus/content/groups/public' }
}

ext {
    set('springCloudVersion', "2020.0.2")
}

dependencies {
    implementation 'org.springframework.cloud:spring-cloud-starter-netflix-eureka-client'
    implementation 'org.springframework.cloud:spring-cloud-starter-config'
    implementation 'org.springframework.cloud:spring-cloud-starter-bootstrap'
木下藤吉郎's avatar
123  
木下藤吉郎 已提交
32
    implementation 'org.springframework.cloud:spring-cloud-starter-bus-amqp'
木下藤吉郎's avatar
123  
木下藤吉郎 已提交
33
    implementation 'org.springframework.cloud:spring-cloud-starter-gateway'
木下藤吉郎's avatar
123  
木下藤吉郎 已提交
34 35
    implementation 'org.springframework.boot:spring-boot-starter-web'
    implementation 'org.springframework.boot:spring-boot-starter-actuator'
木下藤吉郎's avatar
123  
木下藤吉郎 已提交
36 37 38 39 40 41 42
}

dependencyManagement {
    imports {
        mavenBom "org.springframework.cloud:spring-cloud-dependencies:${springCloudVersion}"
    }
}