123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133 |
- plugins {
- //id 'org.springframework.boot' version '2.2.0.RELEASE'
- id 'org.springframework.boot' version '2.1.0.RELEASE'
- id 'io.spring.dependency-management' version '1.0.8.RELEASE'
- id "org.hidetake.ssh" version "2.10.1"
- id 'java'
- }
- group = 'com.zcxk'
- version = '0.0.1-SNAPSHOT'
- sourceCompatibility = '1.8'
- repositories {
- mavenCentral()
- }
- ext {
- //set('springCloudVersion', "Hoxton.M3")
- //set('springCloudVersion', "Finchley.SR1")
- set('springCloudVersion', "Greenwich.SR2")
- set('springCloudAlibabaVersion', "2.1.0.RELEASE")
- //set('springCloudAlibabaVersion', "0.2.2.RELEASE")
- //set('springCloudAlibabaVersion', "0.9.0.RELEASE")
- }
- subprojects {
- apply {
- apply plugin:'java'
- apply plugin:'idea'
- apply plugin:'eclipse'
- apply plugin:'jacoco'
- apply plugin:'org.springframework.boot'
- apply plugin:'io.spring.dependency-management'
- apply plugin: 'org.hidetake.ssh'
- group ='com.example'
- sourceCompatibility =1.8
- targetCompatibility =1.8
- // java编译的时候缺省状态下会因为中文字符而失败
- [compileJava,compileTestJava,javadoc]*.options*.encoding ='UTF-8'
- bootJar {
- enabled =false // 默认不需要打可执行jar包
- }
- repositories {
- mavenLocal()
- mavenCentral()
- maven { url 'https://repo.spring.io/milestone' }
- }
- dependencies {
- compileOnly 'org.projectlombok:lombok'
- annotationProcessor 'org.projectlombok:lombok'
- //swagger在线接口文档生成工具
- compile('io.springfox:springfox-swagger2:2.7.0')
- compile('io.springfox:springfox-swagger-ui:2.7.0')
- //json工具
- compile('com.alibaba:fastjson:1.2.41')
- testImplementation('org.springframework.boot:spring-boot-starter-test') {
- exclude group: 'org.junit.vintage', module: 'junit-vintage-engine'
- }
- }
- dependencyManagement {
- imports {
- mavenBom "org.springframework.cloud:spring-cloud-dependencies:${springCloudVersion}"
- mavenBom "com.alibaba.cloud:spring-cloud-alibaba-dependencies:${springCloudAlibabaVersion}"
- }
- }
- remotes {
- //开发环境服务器
- devServer {
- host = '114.135.61.188'
- port = 30154
- user = 'root'
- password = '1qaz2wsx!'
- }
- //测试环境服务器
- sitServer {
- host = '10.0.0.154'
- port = 22
- user = 'root'
- password = '1qaz2wsx!'
- }
- //演示环境155服务器
- uatServer155 {
- host = '10.0.0.155'
- port = 22
- user = 'root'
- password = '1qaz2wsx!'
- }
- //演示环境156服务器
- uatServer156 {
- host = '10.0.0.156'
- port = 22
- user = 'root'
- password = '1qaz2wsx!'
- }
- //测试环境服务器
- sitServer153 {
- host = '114.135.61.188'
- port = 30153
- user = 'root'
- password = '1qaz2wsx!'
- }
- }
- }
- }
- test {
- useJUnitPlatform()
- }
|