Xia Kaixiang | 04f7b5b | 2019-04-08 17:56:29 +0800 | [diff] [blame] | 1 | plugins { |
Xia Kaixiang | 04f7b5b | 2019-04-08 17:56:29 +0800 | [diff] [blame] | 2 | id 'war' |
Tang Cheng | 6427f00 | 2019-04-09 13:10:47 +0800 | [diff] [blame] | 3 | id 'org.springframework.boot' |
| 4 | id 'org.jetbrains.kotlin.jvm' |
| 5 | id 'org.jetbrains.kotlin.plugin.jpa' |
| 6 | id 'org.jetbrains.kotlin.plugin.spring' |
yang.liu | 8edd112 | 2019-07-03 16:12:20 +0800 | [diff] [blame^] | 7 | id 'com.palantir.docker' version '0.22.1' |
Xia Kaixiang | 04f7b5b | 2019-04-08 17:56:29 +0800 | [diff] [blame] | 8 | } |
| 9 | |
| 10 | apply plugin: 'io.spring.dependency-management' |
| 11 | |
| 12 | group = 'com.supwisdom' |
yang.liu | 8edd112 | 2019-07-03 16:12:20 +0800 | [diff] [blame^] | 13 | version = doorVersion |
Tang Cheng | 6427f00 | 2019-04-09 13:10:47 +0800 | [diff] [blame] | 14 | sourceCompatibility = jdkVersion |
Xia Kaixiang | 04f7b5b | 2019-04-08 17:56:29 +0800 | [diff] [blame] | 15 | |
| 16 | repositories { |
| 17 | mavenCentral() |
| 18 | } |
| 19 | |
yang.liu | 8edd112 | 2019-07-03 16:12:20 +0800 | [diff] [blame^] | 20 | def startClass = 'com.supwisdom.dlpay.DoorApplicationKt' |
| 21 | |
| 22 | println("Build version: $version") |
| 23 | repositories { |
| 24 | mavenCentral() |
| 25 | } |
| 26 | |
| 27 | springBoot { |
| 28 | mainClassName = startClass |
| 29 | } |
| 30 | |
| 31 | |
| 32 | bootJar { |
| 33 | launchScript() |
| 34 | mainClassName = startClass |
| 35 | } |
| 36 | |
| 37 | jar { |
Tang Cheng | 0a0e465 | 2019-04-16 11:16:12 +0800 | [diff] [blame] | 38 | manifest { |
yang.liu | 8edd112 | 2019-07-03 16:12:20 +0800 | [diff] [blame^] | 39 | attributes('Payapi-Version': version) |
Tang Cheng | 0a0e465 | 2019-04-16 11:16:12 +0800 | [diff] [blame] | 40 | } |
| 41 | } |
| 42 | |
yang.liu | 8edd112 | 2019-07-03 16:12:20 +0800 | [diff] [blame^] | 43 | docker { |
| 44 | name '172.28.201.70:5000/dali/door:' + version |
| 45 | println(jar.archivePath) |
| 46 | files jar.archivePath |
| 47 | } |
| 48 | |
Xia Kaixiang | 04f7b5b | 2019-04-08 17:56:29 +0800 | [diff] [blame] | 49 | dependencies { |
| 50 | implementation 'org.springframework.boot:spring-boot-starter-data-jpa' |
Tang Cheng | 628f716 | 2019-04-16 22:59:02 +0800 | [diff] [blame] | 51 | implementation 'org.springframework.boot:spring-boot-starter-data-redis' |
Xia Kaixiang | 04f7b5b | 2019-04-08 17:56:29 +0800 | [diff] [blame] | 52 | implementation 'org.springframework.boot:spring-boot-starter-web' |
Tang Cheng | a8bc91e | 2019-04-15 22:30:15 +0800 | [diff] [blame] | 53 | implementation 'org.springframework.boot:spring-boot-starter-security' |
Tang Cheng | 9a8551c | 2019-05-24 20:34:07 +0800 | [diff] [blame] | 54 | implementation 'org.springframework.security.oauth.boot:spring-security-oauth2-autoconfigure:2.0.1.RELEASE' |
| 55 | // implementation 'org.springframework.security.oauth:spring-security-oauth2' |
Xia Kaixiang | bb33d9b | 2019-04-16 17:58:56 +0800 | [diff] [blame] | 56 | implementation 'org.springframework.boot:spring-boot-starter-thymeleaf' |
Tang Cheng | 5fc5977 | 2019-05-13 21:17:08 +0800 | [diff] [blame] | 57 | implementation 'org.springframework.session:spring-session-data-redis' |
Tang Cheng | 786af61 | 2019-05-28 10:16:40 +0800 | [diff] [blame] | 58 | implementation 'org.springframework.boot:spring-boot-starter-cache' |
Tang Cheng | 5fc5977 | 2019-05-13 21:17:08 +0800 | [diff] [blame] | 59 | implementation 'org.springframework.social:spring-social-web:1.1.6.RELEASE' |
Xia Kaixiang | 04f7b5b | 2019-04-08 17:56:29 +0800 | [diff] [blame] | 60 | implementation 'org.jetbrains.kotlin:kotlin-reflect' |
| 61 | implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk8' |
Xia Kaixiang | 04f7b5b | 2019-04-08 17:56:29 +0800 | [diff] [blame] | 62 | |
Tang Cheng | 5fc5977 | 2019-05-13 21:17:08 +0800 | [diff] [blame] | 63 | implementation 'org.thymeleaf.extras:thymeleaf-extras-springsecurity5' |
| 64 | |
Tang Cheng | 92b22ea | 2019-05-21 13:03:36 +0800 | [diff] [blame] | 65 | implementation 'com.github.chenhaiyangs:rpc-tcc-transaction-spring:1.2.0' |
| 66 | implementation 'com.github.chenhaiyangs:rpc-tcc-transaction-api:1.1.0' |
| 67 | implementation 'com.github.chenhaiyangs:rpc-tcc-transaction-core:1.2.0' |
Tang Cheng | 0a0e465 | 2019-04-16 11:16:12 +0800 | [diff] [blame] | 68 | implementation 'org.postgresql:postgresql:42.2.5' |
Tang Cheng | 5fc5977 | 2019-05-13 21:17:08 +0800 | [diff] [blame] | 69 | implementation 'com.fasterxml.jackson.module:jackson-module-kotlin' |
Tang Cheng | 0a0e465 | 2019-04-16 11:16:12 +0800 | [diff] [blame] | 70 | implementation 'com.jcabi:jcabi-manifests:1.1' |
Tang Cheng | d52ce95 | 2019-04-16 11:27:14 +0800 | [diff] [blame] | 71 | implementation 'org.bitbucket.b_c:jose4j:0.6.3' |
Tang Cheng | 150b740 | 2019-04-23 09:14:01 +0800 | [diff] [blame] | 72 | implementation 'io.github.microutils:kotlin-logging:1.6.26' |
Tang Cheng | 5fc5977 | 2019-05-13 21:17:08 +0800 | [diff] [blame] | 73 | implementation 'org.slf4j:slf4j-parent:1.7.26' |
yang.liu | 4e2060e | 2019-06-13 16:08:51 +0800 | [diff] [blame] | 74 | implementation group: 'commons-lang', name:'commons-lang',version: '2.5' |
Tang Cheng | 0a0e465 | 2019-04-16 11:16:12 +0800 | [diff] [blame] | 75 | implementation group: 'com.google.code.gson', name: 'gson', version: '2.8.5' |
| 76 | implementation group: 'com.sun.jersey', name: 'jersey-client', version: '1.19' |
Tang Cheng | 495e4aa | 2019-04-14 14:08:44 +0800 | [diff] [blame] | 77 | implementation group: 'javax.servlet', name: 'jstl', version: '1.2' |
| 78 | implementation group: 'taglibs', name: 'standard', version: '1.1.2' |
Xia Kaixiang | e0a9bf8 | 2019-04-18 13:52:36 +0800 | [diff] [blame] | 79 | implementation group: 'commons-codec', name: 'commons-codec', version: '1.6' |
Tang Cheng | 0a0e465 | 2019-04-16 11:16:12 +0800 | [diff] [blame] | 80 | implementation files('libs/ojdbc6.jar') |
qiaowei | 44c6bd7 | 2019-04-09 16:32:03 +0800 | [diff] [blame] | 81 | |
yang.liu | b5022f3 | 2019-06-18 10:54:17 +0800 | [diff] [blame] | 82 | implementation 'cn.afterturn:easypoi-web:3.0.3' |
| 83 | implementation 'cn.afterturn:easypoi-base:3.0.3' |
| 84 | |
Tang Cheng | 0a0e465 | 2019-04-16 11:16:12 +0800 | [diff] [blame] | 85 | |
yang.liu | 8edd112 | 2019-07-03 16:12:20 +0800 | [diff] [blame^] | 86 | implementation 'org.springframework.boot:spring-boot-autoconfigure:2.1.6.RELEASE' |
| 87 | |
| 88 | |
Tang Cheng | 628f716 | 2019-04-16 22:59:02 +0800 | [diff] [blame] | 89 | annotationProcessor "org.springframework.boot:spring-boot-configuration-processor" |
| 90 | |
Tang Cheng | 0a0e465 | 2019-04-16 11:16:12 +0800 | [diff] [blame] | 91 | providedRuntime 'org.springframework.boot:spring-boot-starter-tomcat' |
| 92 | testImplementation 'org.springframework.boot:spring-boot-starter-test' |
Tang Cheng | 9171ea9 | 2019-04-24 11:55:35 +0800 | [diff] [blame] | 93 | testImplementation 'io.rest-assured:rest-assured:3.3.0' |
| 94 | testImplementation 'io.rest-assured:spring-mock-mvc:3.3.0' |
| 95 | testImplementation 'org.hamcrest:hamcrest:2.1' |
Xia Kaixiang | 04f7b5b | 2019-04-08 17:56:29 +0800 | [diff] [blame] | 96 | } |
| 97 | |
| 98 | compileKotlin { |
| 99 | kotlinOptions { |
| 100 | freeCompilerArgs = ['-Xjsr305=strict'] |
Tang Cheng | 6427f00 | 2019-04-09 13:10:47 +0800 | [diff] [blame] | 101 | jvmTarget = jdkVersion |
Xia Kaixiang | 04f7b5b | 2019-04-08 17:56:29 +0800 | [diff] [blame] | 102 | } |
| 103 | } |
| 104 | |
| 105 | compileTestKotlin { |
| 106 | kotlinOptions { |
| 107 | freeCompilerArgs = ['-Xjsr305=strict'] |
Tang Cheng | 6427f00 | 2019-04-09 13:10:47 +0800 | [diff] [blame] | 108 | jvmTarget = jdkVersion |
Xia Kaixiang | 04f7b5b | 2019-04-08 17:56:29 +0800 | [diff] [blame] | 109 | } |
| 110 | } |