123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133 |
- buildscript {
- ext {
- kotlin_version = '1.3.21'
- springBootVersion = '2.1.7.RELEASE'
- junit_version = '4.12'
- commons_io_version = '2.5'
- commons_lang3_version = '3.5'
- commons_codec_version = '1.10'
- commons_fileupload_version = '1.3.2'
- mysql_connector_version = '5.1.45'
- mybatisPlusVersion = '3.0.3'
- slf4j_api_version = '1.7.25'
- rxJavaVersion = '2.2.3'
- jwtVersion = '1.4.0'
- authVersion = '1.2'
- shiro_version = '1.4.0'
- swagger_version = '2.7.0'
- nacosVersion='2.1.0.RELEASE'
- logstashVersion = '5.3'
- }
- repositories {
- maven { url 'https://maven.aliyun.com/repository/central' }
- maven { url = 'http://repo.spring.io/plugins-release' }
- maven { url 'https://maven.aliyun.com/repository/gradle-plugin' }
- }
- dependencies {
- classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
- classpath "org.jetbrains.kotlin:kotlin-allopen:$kotlin_version"
- classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
- }
- }
- allprojects {
- group = "cn.gygxzc.cloud.tina"
- version = "1.0.1"
- }
- subprojects {
- apply plugin: 'java'
- apply plugin: 'eclipse'
- apply plugin: 'org.springframework.boot'
- apply plugin: 'io.spring.dependency-management'
- apply plugin: 'kotlin'
- apply plugin: 'kotlin-kapt'
- apply plugin: 'kotlin-spring'
- sourceCompatibility = 1.8
- targetCompatibility = 1.8
- [compileJava, compileTestJava, javadoc]*.options*.encoding = 'UTF-8'
- compileJava.dependsOn(processResources)
- ext {
- set('springCloudVersion', 'Greenwich.SR2')
- set('springBootAdminVersion', '2.1.4')
- }
- repositories {
- maven { url 'https://maven.aliyun.com/repository/public' }
- maven { url 'https://maven.aliyun.com/repository/central' }
- maven { url 'https://maven.aliyun.com/repository/jcenter' }
- }
- dependencyManagement {
- imports {
- mavenBom "de.codecentric:spring-boot-admin-dependencies:${springBootAdminVersion}"
- mavenBom "org.springframework.cloud:spring-cloud-dependencies:${springCloudVersion}"
- }
- }
- configurations {
- all*.exclude group: 'org.springframework.boot', module: 'spring-boot-starter-tomcat'
- }
- dependencies {
- testCompile('org.springframework.boot:spring-boot-starter-test')
- // Kotlin
- compile("org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version")
- compile("org.jetbrains.kotlin:kotlin-reflect:$kotlin_version")
- kapt("org.springframework.boot:spring-boot-configuration-processor")
- // SpringBoot Starter
- compile 'org.springframework.cloud:spring-cloud-starter-bus-amqp'
- compile('org.springframework.boot:spring-boot-starter-webflux')
- compile('org.springframework.cloud:spring-cloud-config-server')
- compile('org.springframework.cloud:spring-cloud-config-monitor')
- compile('org.springframework.boot:spring-boot-starter-undertow')
- compile('org.springframework.boot:spring-boot-starter-jdbc')
- compile('org.springframework.boot:spring-boot-starter-cache')
- compile('org.springframework.cloud:spring-cloud-starter-netflix-eureka-server')
- compile('org.springframework.cloud:spring-cloud-starter-openfeign')
- //
- // commons
- compile("commons-io:commons-io:$commons_io_version")
- compile("org.apache.commons:commons-lang3:$commons_lang3_version")
- compile("commons-codec:commons-codec:$commons_codec_version")
-
- compile("io.reactivex.rxjava2:rxjava:$rxJavaVersion")
- // logger
- compile("org.slf4j:slf4j-api:$slf4j_api_version")
- compile("mysql:mysql-connector-java:$mysql_connector_version")
- compile("com.baomidou:mybatis-plus-boot-starter:$mybatisPlusVersion")
- // swagger
- compile("io.springfox:springfox-swagger2:$swagger_version")
- compile("io.springfox:springfox-swagger-ui:$swagger_version")
- compile('javax.xml.bind:jaxb-api:2.3.0')
- compile ("net.logstash.logback:logstash-logback-encoder:${logstashVersion}")
- ext.jarTree = fileTree(dir: 'libs', include: '**/*.jar')
- compile jarTree
- }
- tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all {
- kotlinOptions {
- jvmTarget = "1.8"
- }
- }
- bootJar { enabled = false }
- jar { enabled = true }
- }
|