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' |
Xia Kaixiang | 04f7b5b | 2019-04-08 17:56:29 +0800 | [diff] [blame] | 7 | } |
| 8 | |
| 9 | apply plugin: 'io.spring.dependency-management' |
| 10 | |
| 11 | group = 'com.supwisdom' |
Tang Cheng | 6427f00 | 2019-04-09 13:10:47 +0800 | [diff] [blame] | 12 | version = payapiVersion |
| 13 | sourceCompatibility = jdkVersion |
Xia Kaixiang | 04f7b5b | 2019-04-08 17:56:29 +0800 | [diff] [blame] | 14 | |
| 15 | repositories { |
| 16 | mavenCentral() |
| 17 | } |
| 18 | |
Tang Cheng | 0a0e465 | 2019-04-16 11:16:12 +0800 | [diff] [blame] | 19 | war { |
| 20 | baseName = "payapi-service" |
| 21 | manifest { |
| 22 | attributes('Payapi-Version': rootProject.version) |
Tang Cheng | d52ce95 | 2019-04-16 11:27:14 +0800 | [diff] [blame] | 23 | writeTo(project.buildDir.toString() + "/classes/MATE-INF.MF") |
Tang Cheng | 0a0e465 | 2019-04-16 11:16:12 +0800 | [diff] [blame] | 24 | } |
| 25 | } |
| 26 | |
Xia Kaixiang | 04f7b5b | 2019-04-08 17:56:29 +0800 | [diff] [blame] | 27 | dependencies { |
| 28 | implementation 'org.springframework.boot:spring-boot-starter-data-jpa' |
Tang Cheng | 628f716 | 2019-04-16 22:59:02 +0800 | [diff] [blame] | 29 | implementation 'org.springframework.boot:spring-boot-starter-data-redis' |
Xia Kaixiang | 04f7b5b | 2019-04-08 17:56:29 +0800 | [diff] [blame] | 30 | implementation 'org.springframework.boot:spring-boot-starter-web' |
Tang Cheng | a8bc91e | 2019-04-15 22:30:15 +0800 | [diff] [blame] | 31 | implementation 'org.springframework.boot:spring-boot-starter-security' |
Tang Cheng | 0a0e465 | 2019-04-16 11:16:12 +0800 | [diff] [blame] | 32 | implementation 'org.springframework.security:spring-security-oauth2-client' |
| 33 | implementation 'org.springframework.security:spring-security-oauth2-jose' |
Xia Kaixiang | 04f7b5b | 2019-04-08 17:56:29 +0800 | [diff] [blame] | 34 | implementation 'com.fasterxml.jackson.module:jackson-module-kotlin' |
Xia Kaixiang | bb33d9b | 2019-04-16 17:58:56 +0800 | [diff] [blame] | 35 | implementation 'org.springframework.boot:spring-boot-starter-thymeleaf' |
Tang Cheng | c7087b3 | 2019-04-18 08:38:35 +0800 | [diff] [blame] | 36 | implementation 'org.springframework.session:spring-session-data-redis:2.0.10.RELEASE' |
Xia Kaixiang | 04f7b5b | 2019-04-08 17:56:29 +0800 | [diff] [blame] | 37 | implementation 'org.jetbrains.kotlin:kotlin-reflect' |
| 38 | implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk8' |
Xia Kaixiang | 04f7b5b | 2019-04-08 17:56:29 +0800 | [diff] [blame] | 39 | |
Tang Cheng | 0a0e465 | 2019-04-16 11:16:12 +0800 | [diff] [blame] | 40 | implementation 'org.postgresql:postgresql:42.2.5' |
| 41 | implementation 'com.jcabi:jcabi-manifests:1.1' |
Tang Cheng | d52ce95 | 2019-04-16 11:27:14 +0800 | [diff] [blame] | 42 | implementation 'org.bitbucket.b_c:jose4j:0.6.3' |
Tang Cheng | 541796b | 2019-04-22 13:07:00 +0800 | [diff] [blame] | 43 | implementation 'org.thymeleaf.extras:thymeleaf-extras-springsecurity5' |
Xia Kaixiang | 10942e5 | 2019-04-19 14:07:09 +0800 | [diff] [blame] | 44 | implementation 'org.springframework.social:spring-social-web:1.1.6.RELEASE' |
Tang Cheng | 150b740 | 2019-04-23 09:14:01 +0800 | [diff] [blame] | 45 | implementation 'io.github.microutils:kotlin-logging:1.6.26' |
Tang Cheng | 0a0e465 | 2019-04-16 11:16:12 +0800 | [diff] [blame] | 46 | implementation group: 'com.google.code.gson', name: 'gson', version: '2.8.5' |
| 47 | implementation group: 'com.sun.jersey', name: 'jersey-client', version: '1.19' |
Tang Cheng | 495e4aa | 2019-04-14 14:08:44 +0800 | [diff] [blame] | 48 | implementation group: 'javax.servlet', name: 'jstl', version: '1.2' |
| 49 | implementation group: 'taglibs', name: 'standard', version: '1.1.2' |
Xia Kaixiang | e0a9bf8 | 2019-04-18 13:52:36 +0800 | [diff] [blame] | 50 | implementation group: 'commons-codec', name: 'commons-codec', version: '1.6' |
Xia Kaixiang | bb33d9b | 2019-04-16 17:58:56 +0800 | [diff] [blame] | 51 | // implementation group: 'javax.servlet.jsp', name: 'jsp-api', version: '2.1' |
Tang Cheng | 495e4aa | 2019-04-14 14:08:44 +0800 | [diff] [blame] | 52 | implementation group: 'log4j', name: 'log4j', version: '1.2.16' |
Tang Cheng | 0a0e465 | 2019-04-16 11:16:12 +0800 | [diff] [blame] | 53 | implementation files('libs/ojdbc6.jar') |
qiaowei | 44c6bd7 | 2019-04-09 16:32:03 +0800 | [diff] [blame] | 54 | |
Tang Cheng | 0a0e465 | 2019-04-16 11:16:12 +0800 | [diff] [blame] | 55 | |
Tang Cheng | 628f716 | 2019-04-16 22:59:02 +0800 | [diff] [blame] | 56 | annotationProcessor "org.springframework.boot:spring-boot-configuration-processor" |
| 57 | |
Tang Cheng | 0a0e465 | 2019-04-16 11:16:12 +0800 | [diff] [blame] | 58 | providedRuntime 'org.springframework.boot:spring-boot-starter-tomcat' |
| 59 | testImplementation 'org.springframework.boot:spring-boot-starter-test' |
Tang Cheng | 9171ea9 | 2019-04-24 11:55:35 +0800 | [diff] [blame^] | 60 | 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 Kaixiang | 04f7b5b | 2019-04-08 17:56:29 +0800 | [diff] [blame] | 63 | } |
| 64 | |
| 65 | compileKotlin { |
| 66 | kotlinOptions { |
| 67 | freeCompilerArgs = ['-Xjsr305=strict'] |
Tang Cheng | 6427f00 | 2019-04-09 13:10:47 +0800 | [diff] [blame] | 68 | jvmTarget = jdkVersion |
Xia Kaixiang | 04f7b5b | 2019-04-08 17:56:29 +0800 | [diff] [blame] | 69 | } |
| 70 | } |
| 71 | |
| 72 | compileTestKotlin { |
| 73 | kotlinOptions { |
| 74 | freeCompilerArgs = ['-Xjsr305=strict'] |
Tang Cheng | 6427f00 | 2019-04-09 13:10:47 +0800 | [diff] [blame] | 75 | jvmTarget = jdkVersion |
Xia Kaixiang | 04f7b5b | 2019-04-08 17:56:29 +0800 | [diff] [blame] | 76 | } |
| 77 | } |