123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211 |
- group 'cn.sagacloud.server'
- version '2.0.0'
- apply plugin: "kotlin"
- apply plugin: 'java'
- apply plugin: "org.jetbrains.dokka"
- apply plugin: "war"
- apply plugin: 'org.springframework.boot'
- apply plugin: 'io.spring.dependency-management'
- apply plugin: 'maven'
- sourceCompatibility = 1.8
- compileKotlin {
- kotlinOptions.jvmTarget = JVM_TARGET
- }
- compileTestKotlin {
- kotlinOptions.jvmTarget = JVM_TARGET
- }
- tasks.withType(JavaCompile) {
- options.encoding = "UTF-8"
- }
- dependencies {
- implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
- testCompile group: 'junit', name: 'junit', version: '4.12'
-
- compile group: "org.jetbrains.kotlin", name: "kotlin-stdlib-jdk8", version: KOTLIN_VERSION
- compile group: "org.jetbrains.kotlin", name: "kotlin-reflect", version: KOTLIN_VERSION
-
-
- compile group: "org.springframework.boot", name: "spring-boot-starter-freemarker", version: SPRING_BOOT_VERSION
-
- compile(group: "org.springframework.boot", name: "spring-boot-starter-web", version: SPRING_BOOT_VERSION){
- exclude group: 'org.apache.logging.log4j',module:'log4j-api'
- exclude group: 'org.springframework.boot',module:'spring-boot-starter-tomcat'
- exclude group: 'org.apache.tomcat.embed',module:'tomcat-embed-core'
- exclude group: 'org.apache.tomcat.embed',module:'tomcat-embed-el'
- exclude group: 'org.apache.tomcat.embed',module:'tomcat-embed-websocket'
- }
- compile group: "org.springframework.boot", name: "spring-boot-starter-tomcat", version: '2.6.10'
- compile(group: "org.apache.tomcat.embed", name: "tomcat-embed-core", version: '9.0.65'){exclude group:'org.apache.tomcat',module:'tomcat-annotations-api'}
- compile group: "org.apache.tomcat.embed", name: "tomcat-embed-el", version: '9.0.65'
- compile(group: "org.apache.tomcat.embed", name: "tomcat-embed-websocket", version: '9.0.65'){exclude group:'org.apache.tomcat',module:'tomcat-annotations-api'}
- compile group: "org.apache.logging.log4j", name: "log4j-api", version: LOG4J_VERSION
- compile group: "org.springframework.boot", name: "spring-boot-configuration-processor", version: SPRING_BOOT_VERSION
- compile group: "org.springframework.boot", name: "spring-boot-starter-actuator", version: SPRING_BOOT_VERSION
- compile group: "org.springframework.boot", name: "spring-boot-starter-logging", version: SPRING_BOOT_VERSION
-
-
- providedCompile group: "org.springframework.boot", name:"spring-boot-starter-tomcat", version: SPRING_BOOT_VERSION
-
- compile group:"org.springframework.boot", name:"spring-boot-starter-cache", version: SPRING_BOOT_VERSION
-
-
-
-
-
-
-
-
- compile group: "io.springfox", name: "springfox-swagger-ui", version: SWAGGER_VERSION
- compile group: "io.springfox", name: "springfox-swagger2", version: SWAGGER_VERSION
-
-
- compile group: "cn.sagacloud", name: "saga-kotlin-base", version: SYBOTAN_KOTLIN_VERSION
- compile group: "cn.sagacloud", name: "saga-kotlin-database", version: SYBOTAN_KOTLIN_VERSION
- compile(group: "cn.sagacloud", name: "saga-kotlin-mybatis", version: SYBOTAN_KOTLIN_VERSION) {exclude group: 'org.mybatis',module:'mybatis'}
- compile group: "org.mybatis", name: "mybatis", version: MYBATIS_CORE_VERSION
- compile group: "cn.sagacloud", name: "saga-kotlin-mysql", version: SYBOTAN_KOTLIN_VERSION
- compile(group: "cn.sagacloud", name: "saga-service-base", version: SYBOTAN_SERVICE_VERSION) {exclude group: 'com.alibaba',module:'fastjson'}
- compile group: "cn.sagacloud", name: "saga-service-mybatis", version: SYBOTAN_SERVICE_VERSION
- compile group: "cn.sagacloud", name: "saga-service-mysql", version: SYBOTAN_SERVICE_VERSION
-
-
- compile project(":old-data-core")
-
-
- compile group: 'io.netty', name: 'netty-all', version: NETTY_VERSION
-
-
-
- compile group: 'org.mybatis', name: 'mybatis-guice', version: '3.10'
-
- compile group: 'org.yaml', name: 'snakeyaml', version: '1.24'
-
- compile group: 'com.google.inject', name: 'guice', version: '4.2.2'
-
- compile group: 'log4j', name: 'log4j', version: '1.2.17'
-
- compile group: "com.alibaba", name: "fastjson", version: FAST_JSON_VERSION
- compile group: 'org.slf4j', name: 'slf4j-api', version:'1.7.25'
-
- compile group: 'com.google.protobuf', name: 'protobuf-java', version: '3.11.4'
-
-
- compile group: 'com.fasterxml.uuid', name: 'java-uuid-generator', version: '3.2.0'
- compile group: 'org.apache.skywalking', name: 'apm-toolkit-logback-1.x', version: APM_SKYWALKING_VERSION
- }
- sourceSets.main.resources.srcDirs = ['src/main/resources', 'src/main/resources-dev']
- task buildProdWar {
- doFirst {
- sourceSets.main.resources.srcDirs = ["src/main/resources", "src/main/resources-prod"]
- test.onlyIf {
- project.hasProperty("needTest")
- }
- }
- finalizedBy(build)
- }
- task buildDevWar {
- doFirst {
- sourceSets.main.resources.srcDirs = ['src/main/resources', 'src/main/resources-dev']
- test.onlyIf {
- project.hasProperty("needTest")
- }
- }
- finalizedBy(build)
- }
- task buildTestWar {
- doFirst {
- sourceSets.main.resources.srcDirs = ["src/main/resources", "src/main/resources-test"]
- test.onlyIf {
- project.hasProperty("needTest")
- }
- }
- finalizedBy(build)
- }
- task buildProdJar {
- doFirst {
- sourceSets.main.resources.srcDirs = ["src/main/resources", "src/main/resources-prod"]
- test.onlyIf {
- project.hasProperty("needTest")
- }
- }
- finalizedBy(bootJar)
- }
- task buildDevJar {
- doFirst {
- sourceSets.main.resources.srcDirs = ['src/main/resources', 'src/main/resources-dev']
- test.onlyIf {
- project.hasProperty("needTest")
- }
- }
- finalizedBy(bootJar)
- }
|