blob: 350290f9b878bb0897e637fa0b0f390e9113bcb4 [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'
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'
35 implementation 'org.springframework.social:spring-social-web:1.1.6.RELEASE'
Xia Kaixiang04f7b5b2019-04-08 17:56:29 +080036 implementation 'org.jetbrains.kotlin:kotlin-reflect'
37 implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk8'
Xia Kaixiang04f7b5b2019-04-08 17:56:29 +080038
Tang Cheng5fc59772019-05-13 21:17:08 +080039 implementation 'org.thymeleaf.extras:thymeleaf-extras-springsecurity5'
40
Tang Cheng0a0e4652019-04-16 11:16:12 +080041 implementation 'org.postgresql:postgresql:42.2.5'
Tang Cheng5fc59772019-05-13 21:17:08 +080042 implementation 'com.fasterxml.jackson.module:jackson-module-kotlin'
Tang Cheng0a0e4652019-04-16 11:16:12 +080043 implementation 'com.jcabi:jcabi-manifests:1.1'
Tang Chengd52ce952019-04-16 11:27:14 +080044 implementation 'org.bitbucket.b_c:jose4j:0.6.3'
Tang Cheng150b7402019-04-23 09:14:01 +080045 implementation 'io.github.microutils:kotlin-logging:1.6.26'
Tang Cheng5fc59772019-05-13 21:17:08 +080046 implementation 'org.slf4j:slf4j-parent:1.7.26'
Tang Cheng0a0e4652019-04-16 11:16:12 +080047 implementation group: 'com.google.code.gson', name: 'gson', version: '2.8.5'
48 implementation group: 'com.sun.jersey', name: 'jersey-client', version: '1.19'
Tang Cheng495e4aa2019-04-14 14:08:44 +080049 implementation group: 'javax.servlet', name: 'jstl', version: '1.2'
50 implementation group: 'taglibs', name: 'standard', version: '1.1.2'
Xia Kaixiange0a9bf82019-04-18 13:52:36 +080051 implementation group: 'commons-codec', name: 'commons-codec', version: '1.6'
Tang Cheng376c9b52019-04-24 14:41:34 +080052 implementation 'org.flywaydb:flyway-core'
Tang Cheng0a0e4652019-04-16 11:16:12 +080053 implementation files('libs/ojdbc6.jar')
qiaowei44c6bd72019-04-09 16:32:03 +080054
Tang Cheng0a0e4652019-04-16 11:16:12 +080055
Tang Cheng628f7162019-04-16 22:59:02 +080056 annotationProcessor "org.springframework.boot:spring-boot-configuration-processor"
57
Tang Cheng0a0e4652019-04-16 11:16:12 +080058 providedRuntime 'org.springframework.boot:spring-boot-starter-tomcat'
59 testImplementation 'org.springframework.boot:spring-boot-starter-test'
Tang Cheng9171ea92019-04-24 11:55:35 +080060 testImplementation 'io.rest-assured:rest-assured:3.3.0'
61 testImplementation 'io.rest-assured:spring-mock-mvc:3.3.0'
62 testImplementation 'org.hamcrest:hamcrest:2.1'
Xia Kaixiang04f7b5b2019-04-08 17:56:29 +080063}
64
65compileKotlin {
66 kotlinOptions {
67 freeCompilerArgs = ['-Xjsr305=strict']
Tang Cheng6427f002019-04-09 13:10:47 +080068 jvmTarget = jdkVersion
Xia Kaixiang04f7b5b2019-04-08 17:56:29 +080069 }
70}
71
72compileTestKotlin {
73 kotlinOptions {
74 freeCompilerArgs = ['-Xjsr305=strict']
Tang Cheng6427f002019-04-09 13:10:47 +080075 jvmTarget = jdkVersion
Xia Kaixiang04f7b5b2019-04-08 17:56:29 +080076 }
77}