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