blob: b11247b4e407de64fdfb0ab42e59aa352141a8ce [file] [log] [blame]
Xia Kaixiang04f7b5b2019-04-08 17:56:29 +08001plugins {
Xia Kaixiang04f7b5b2019-04-08 17:56:29 +08002 id 'war'
Tang Cheng6427f002019-04-09 13:10:47 +08003 id 'org.springframework.boot'
4 id 'org.jetbrains.kotlin.jvm'
5 id 'org.jetbrains.kotlin.plugin.jpa'
6 id 'org.jetbrains.kotlin.plugin.spring'
Xia Kaixiang04f7b5b2019-04-08 17:56:29 +08007}
8
9apply plugin: 'io.spring.dependency-management'
10
11group = 'com.supwisdom'
Tang Cheng6427f002019-04-09 13:10:47 +080012version = payapiVersion
13sourceCompatibility = jdkVersion
Xia Kaixiang04f7b5b2019-04-08 17:56:29 +080014
15repositories {
16 mavenCentral()
17}
18
Tang Cheng0a0e4652019-04-16 11:16:12 +080019war {
Tang Cheng0a0e4652019-04-16 11:16:12 +080020 manifest {
21 attributes('Payapi-Version': rootProject.version)
Tang Chengd52ce952019-04-16 11:27:14 +080022 writeTo(project.buildDir.toString() + "/classes/MATE-INF.MF")
Tang Cheng0a0e4652019-04-16 11:16:12 +080023 }
24}
25
Xia Kaixiang04f7b5b2019-04-08 17:56:29 +080026dependencies {
27 implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
Tang Cheng628f7162019-04-16 22:59:02 +080028 implementation 'org.springframework.boot:spring-boot-starter-data-redis'
Xia Kaixiang04f7b5b2019-04-08 17:56:29 +080029 implementation 'org.springframework.boot:spring-boot-starter-web'
Tang Chenga8bc91e2019-04-15 22:30:15 +080030 implementation 'org.springframework.boot:spring-boot-starter-security'
Tang Cheng0a0e4652019-04-16 11:16:12 +080031 implementation 'org.springframework.security:spring-security-oauth2-client'
32 implementation 'org.springframework.security:spring-security-oauth2-jose'
Tang Cheng9a8551c2019-05-24 20:34:07 +080033 implementation 'org.springframework.security.oauth.boot:spring-security-oauth2-autoconfigure:2.0.1.RELEASE'
34// implementation 'org.springframework.security.oauth:spring-security-oauth2'
Xia Kaixiangbb33d9b2019-04-16 17:58:56 +080035 implementation 'org.springframework.boot:spring-boot-starter-thymeleaf'
Tang Cheng5fc59772019-05-13 21:17:08 +080036 implementation 'org.springframework.session:spring-session-data-redis'
Tang Cheng786af612019-05-28 10:16:40 +080037 implementation 'org.springframework.boot:spring-boot-starter-cache'
Tang Cheng5fc59772019-05-13 21:17:08 +080038 implementation 'org.springframework.social:spring-social-web:1.1.6.RELEASE'
Xia Kaixiang04f7b5b2019-04-08 17:56:29 +080039 implementation 'org.jetbrains.kotlin:kotlin-reflect'
40 implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk8'
Xia Kaixiang04f7b5b2019-04-08 17:56:29 +080041
Tang Cheng5fc59772019-05-13 21:17:08 +080042 implementation 'org.thymeleaf.extras:thymeleaf-extras-springsecurity5'
43
Tang Cheng92b22ea2019-05-21 13:03:36 +080044 implementation 'com.github.chenhaiyangs:rpc-tcc-transaction-spring:1.2.0'
45 implementation 'com.github.chenhaiyangs:rpc-tcc-transaction-api:1.1.0'
46 implementation 'com.github.chenhaiyangs:rpc-tcc-transaction-core:1.2.0'
Tang Cheng0a0e4652019-04-16 11:16:12 +080047 implementation 'org.postgresql:postgresql:42.2.5'
Tang Cheng5fc59772019-05-13 21:17:08 +080048 implementation 'com.fasterxml.jackson.module:jackson-module-kotlin'
Tang Cheng0a0e4652019-04-16 11:16:12 +080049 implementation 'com.jcabi:jcabi-manifests:1.1'
Tang Chengd52ce952019-04-16 11:27:14 +080050 implementation 'org.bitbucket.b_c:jose4j:0.6.3'
Tang Cheng150b7402019-04-23 09:14:01 +080051 implementation 'io.github.microutils:kotlin-logging:1.6.26'
Tang Cheng5fc59772019-05-13 21:17:08 +080052 implementation 'org.slf4j:slf4j-parent:1.7.26'
Tang Cheng0a0e4652019-04-16 11:16:12 +080053 implementation group: 'com.google.code.gson', name: 'gson', version: '2.8.5'
54 implementation group: 'com.sun.jersey', name: 'jersey-client', version: '1.19'
Tang Cheng495e4aa2019-04-14 14:08:44 +080055 implementation group: 'javax.servlet', name: 'jstl', version: '1.2'
56 implementation group: 'taglibs', name: 'standard', version: '1.1.2'
Xia Kaixiange0a9bf82019-04-18 13:52:36 +080057 implementation group: 'commons-codec', name: 'commons-codec', version: '1.6'
Tang Cheng376c9b52019-04-24 14:41:34 +080058 implementation 'org.flywaydb:flyway-core'
Tang Cheng0a0e4652019-04-16 11:16:12 +080059 implementation files('libs/ojdbc6.jar')
qiaowei44c6bd72019-04-09 16:32:03 +080060
Tang Cheng0a0e4652019-04-16 11:16:12 +080061
Tang Cheng628f7162019-04-16 22:59:02 +080062 annotationProcessor "org.springframework.boot:spring-boot-configuration-processor"
63
Tang Cheng0a0e4652019-04-16 11:16:12 +080064 providedRuntime 'org.springframework.boot:spring-boot-starter-tomcat'
65 testImplementation 'org.springframework.boot:spring-boot-starter-test'
Tang Cheng9171ea92019-04-24 11:55:35 +080066 testImplementation 'io.rest-assured:rest-assured:3.3.0'
67 testImplementation 'io.rest-assured:spring-mock-mvc:3.3.0'
68 testImplementation 'org.hamcrest:hamcrest:2.1'
Xia Kaixiang04f7b5b2019-04-08 17:56:29 +080069}
70
71compileKotlin {
72 kotlinOptions {
73 freeCompilerArgs = ['-Xjsr305=strict']
Tang Cheng6427f002019-04-09 13:10:47 +080074 jvmTarget = jdkVersion
Xia Kaixiang04f7b5b2019-04-08 17:56:29 +080075 }
76}
77
78compileTestKotlin {
79 kotlinOptions {
80 freeCompilerArgs = ['-Xjsr305=strict']
Tang Cheng6427f002019-04-09 13:10:47 +080081 jvmTarget = jdkVersion
Xia Kaixiang04f7b5b2019-04-08 17:56:29 +080082 }
83}