blob: c97349eb57bc967a51c5a5e38c35311a69bf214d [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'
sijun.li37502292019-06-10 16:00:24 +080012version = waterManagerVersion
Tang Cheng6427f002019-04-09 13:10:47 +080013sourceCompatibility = 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 {
sijun.li37502292019-06-10 16:00:24 +080021 attributes('WaterManager-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 Cheng9a8551c2019-05-24 20:34:07 +080031 implementation 'org.springframework.security.oauth.boot:spring-security-oauth2-autoconfigure:2.0.1.RELEASE'
32// implementation 'org.springframework.security.oauth:spring-security-oauth2'
Xia Kaixiangbb33d9b2019-04-16 17:58:56 +080033 implementation 'org.springframework.boot:spring-boot-starter-thymeleaf'
Tang Cheng5fc59772019-05-13 21:17:08 +080034 implementation 'org.springframework.session:spring-session-data-redis'
Tang Cheng786af612019-05-28 10:16:40 +080035 implementation 'org.springframework.boot:spring-boot-starter-cache'
Tang Cheng5fc59772019-05-13 21:17:08 +080036 implementation 'org.springframework.social:spring-social-web:1.1.6.RELEASE'
Xia Kaixiang04f7b5b2019-04-08 17:56:29 +080037 implementation 'org.jetbrains.kotlin:kotlin-reflect'
38 implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk8'
Xia Kaixiang04f7b5b2019-04-08 17:56:29 +080039
Tang Cheng5fc59772019-05-13 21:17:08 +080040 implementation 'org.thymeleaf.extras:thymeleaf-extras-springsecurity5'
41
Tang Cheng92b22ea2019-05-21 13:03:36 +080042 implementation 'com.github.chenhaiyangs:rpc-tcc-transaction-spring:1.2.0'
43 implementation 'com.github.chenhaiyangs:rpc-tcc-transaction-api:1.1.0'
44 implementation 'com.github.chenhaiyangs:rpc-tcc-transaction-core:1.2.0'
Tang Cheng0a0e4652019-04-16 11:16:12 +080045 implementation 'org.postgresql:postgresql:42.2.5'
Tang Cheng5fc59772019-05-13 21:17:08 +080046 implementation 'com.fasterxml.jackson.module:jackson-module-kotlin'
Tang Cheng0a0e4652019-04-16 11:16:12 +080047 implementation 'com.jcabi:jcabi-manifests:1.1'
Tang Chengd52ce952019-04-16 11:27:14 +080048 implementation 'org.bitbucket.b_c:jose4j:0.6.3'
Tang Cheng150b7402019-04-23 09:14:01 +080049 implementation 'io.github.microutils:kotlin-logging:1.6.26'
Tang Cheng5fc59772019-05-13 21:17:08 +080050 implementation 'org.slf4j:slf4j-parent:1.7.26'
yang.liu4e2060e2019-06-13 16:08:51 +080051 implementation group: 'commons-lang', name:'commons-lang',version: '2.5'
Tang Cheng0a0e4652019-04-16 11:16:12 +080052 implementation group: 'com.google.code.gson', name: 'gson', version: '2.8.5'
53 implementation group: 'com.sun.jersey', name: 'jersey-client', version: '1.19'
Tang Cheng495e4aa2019-04-14 14:08:44 +080054 implementation group: 'javax.servlet', name: 'jstl', version: '1.2'
55 implementation group: 'taglibs', name: 'standard', version: '1.1.2'
Xia Kaixiange0a9bf82019-04-18 13:52:36 +080056 implementation group: 'commons-codec', name: 'commons-codec', version: '1.6'
Tang Cheng0a0e4652019-04-16 11:16:12 +080057 implementation files('libs/ojdbc6.jar')
qiaowei44c6bd72019-04-09 16:32:03 +080058
Tang Cheng0a0e4652019-04-16 11:16:12 +080059
Tang Cheng628f7162019-04-16 22:59:02 +080060 annotationProcessor "org.springframework.boot:spring-boot-configuration-processor"
61
Tang Cheng0a0e4652019-04-16 11:16:12 +080062 providedRuntime 'org.springframework.boot:spring-boot-starter-tomcat'
63 testImplementation 'org.springframework.boot:spring-boot-starter-test'
Tang Cheng9171ea92019-04-24 11:55:35 +080064 testImplementation 'io.rest-assured:rest-assured:3.3.0'
65 testImplementation 'io.rest-assured:spring-mock-mvc:3.3.0'
66 testImplementation 'org.hamcrest:hamcrest:2.1'
Xia Kaixiang04f7b5b2019-04-08 17:56:29 +080067}
68
69compileKotlin {
70 kotlinOptions {
71 freeCompilerArgs = ['-Xjsr305=strict']
Tang Cheng6427f002019-04-09 13:10:47 +080072 jvmTarget = jdkVersion
Xia Kaixiang04f7b5b2019-04-08 17:56:29 +080073 }
74}
75
76compileTestKotlin {
77 kotlinOptions {
78 freeCompilerArgs = ['-Xjsr305=strict']
Tang Cheng6427f002019-04-09 13:10:47 +080079 jvmTarget = jdkVersion
Xia Kaixiang04f7b5b2019-04-08 17:56:29 +080080 }
81}