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) |
| 23 | writeTo(project.buildDir + "/classes/MATE-INF.MF") |
| 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' |
| 29 | implementation 'org.springframework.boot:spring-boot-starter-web' |
Tang Cheng | a8bc91e | 2019-04-15 22:30:15 +0800 | [diff] [blame] | 30 | implementation 'org.springframework.boot:spring-boot-starter-security' |
Tang Cheng | 0a0e465 | 2019-04-16 11:16:12 +0800 | [diff] [blame^] | 31 | implementation 'org.springframework.security:spring-security-oauth2-client' |
| 32 | implementation 'org.springframework.security:spring-security-oauth2-jose' |
Xia Kaixiang | 04f7b5b | 2019-04-08 17:56:29 +0800 | [diff] [blame] | 33 | implementation 'com.fasterxml.jackson.module:jackson-module-kotlin' |
| 34 | implementation 'org.jetbrains.kotlin:kotlin-reflect' |
| 35 | implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk8' |
Xia Kaixiang | 04f7b5b | 2019-04-08 17:56:29 +0800 | [diff] [blame] | 36 | |
Tang Cheng | 0a0e465 | 2019-04-16 11:16:12 +0800 | [diff] [blame^] | 37 | implementation 'org.postgresql:postgresql:42.2.5' |
| 38 | implementation 'com.jcabi:jcabi-manifests:1.1' |
| 39 | implementation group: 'com.google.code.gson', name: 'gson', version: '2.8.5' |
| 40 | implementation group: 'com.sun.jersey', name: 'jersey-client', version: '1.19' |
Tang Cheng | 495e4aa | 2019-04-14 14:08:44 +0800 | [diff] [blame] | 41 | implementation group: 'javax.servlet', name: 'jstl', version: '1.2' |
| 42 | implementation group: 'taglibs', name: 'standard', version: '1.1.2' |
| 43 | implementation group: 'javax.servlet.jsp', name: 'jsp-api', version: '2.1' |
| 44 | implementation group: 'log4j', name: 'log4j', version: '1.2.16' |
Tang Cheng | 0a0e465 | 2019-04-16 11:16:12 +0800 | [diff] [blame^] | 45 | implementation files('libs/ojdbc6.jar') |
qiaowei | 44c6bd7 | 2019-04-09 16:32:03 +0800 | [diff] [blame] | 46 | |
Tang Cheng | 0a0e465 | 2019-04-16 11:16:12 +0800 | [diff] [blame^] | 47 | |
| 48 | providedRuntime 'org.springframework.boot:spring-boot-starter-tomcat' |
| 49 | testImplementation 'org.springframework.boot:spring-boot-starter-test' |
Xia Kaixiang | 04f7b5b | 2019-04-08 17:56:29 +0800 | [diff] [blame] | 50 | } |
| 51 | |
| 52 | compileKotlin { |
| 53 | kotlinOptions { |
| 54 | freeCompilerArgs = ['-Xjsr305=strict'] |
Tang Cheng | 6427f00 | 2019-04-09 13:10:47 +0800 | [diff] [blame] | 55 | jvmTarget = jdkVersion |
Xia Kaixiang | 04f7b5b | 2019-04-08 17:56:29 +0800 | [diff] [blame] | 56 | } |
| 57 | } |
| 58 | |
| 59 | compileTestKotlin { |
| 60 | kotlinOptions { |
| 61 | freeCompilerArgs = ['-Xjsr305=strict'] |
Tang Cheng | 6427f00 | 2019-04-09 13:10:47 +0800 | [diff] [blame] | 62 | jvmTarget = jdkVersion |
Xia Kaixiang | 04f7b5b | 2019-04-08 17:56:29 +0800 | [diff] [blame] | 63 | } |
| 64 | } |