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 | |
| 19 | dependencies { |
| 20 | implementation 'org.springframework.boot:spring-boot-starter-data-jpa' |
| 21 | implementation 'org.springframework.boot:spring-boot-starter-web' |
Tang Cheng | a8bc91e | 2019-04-15 22:30:15 +0800 | [diff] [blame^] | 22 | implementation 'org.springframework.boot:spring-boot-starter-security' |
Xia Kaixiang | 04f7b5b | 2019-04-08 17:56:29 +0800 | [diff] [blame] | 23 | implementation 'com.fasterxml.jackson.module:jackson-module-kotlin' |
| 24 | implementation 'org.jetbrains.kotlin:kotlin-reflect' |
| 25 | implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk8' |
| 26 | providedRuntime 'org.springframework.boot:spring-boot-starter-tomcat' |
| 27 | testImplementation 'org.springframework.boot:spring-boot-starter-test' |
| 28 | |
Tang Cheng | 495e4aa | 2019-04-14 14:08:44 +0800 | [diff] [blame] | 29 | implementation group: 'com.sun.jersey', name: 'jersey-client', version:'1.19' |
| 30 | implementation group: 'javax.servlet', name: 'jstl', version: '1.2' |
| 31 | implementation group: 'taglibs', name: 'standard', version: '1.1.2' |
| 32 | implementation group: 'javax.servlet.jsp', name: 'jsp-api', version: '2.1' |
| 33 | implementation group: 'log4j', name: 'log4j', version: '1.2.16' |
| 34 | implementation files ('libs/ojdbc6.jar') |
qiaowei | 44c6bd7 | 2019-04-09 16:32:03 +0800 | [diff] [blame] | 35 | |
Tang Cheng | 495e4aa | 2019-04-14 14:08:44 +0800 | [diff] [blame] | 36 | implementation group: 'com.google.code.gson', name: 'gson', version: '2.8.5' |
Xia Kaixiang | 04f7b5b | 2019-04-08 17:56:29 +0800 | [diff] [blame] | 37 | } |
| 38 | |
| 39 | compileKotlin { |
| 40 | kotlinOptions { |
| 41 | freeCompilerArgs = ['-Xjsr305=strict'] |
Tang Cheng | 6427f00 | 2019-04-09 13:10:47 +0800 | [diff] [blame] | 42 | jvmTarget = jdkVersion |
Xia Kaixiang | 04f7b5b | 2019-04-08 17:56:29 +0800 | [diff] [blame] | 43 | } |
| 44 | } |
| 45 | |
| 46 | compileTestKotlin { |
| 47 | kotlinOptions { |
| 48 | freeCompilerArgs = ['-Xjsr305=strict'] |
Tang Cheng | 6427f00 | 2019-04-09 13:10:47 +0800 | [diff] [blame] | 49 | jvmTarget = jdkVersion |
Xia Kaixiang | 04f7b5b | 2019-04-08 17:56:29 +0800 | [diff] [blame] | 50 | } |
| 51 | } |