Xia Kaixiang | 04f7b5b | 2019-04-08 17:56:29 +0800 | [diff] [blame^] | 1 | plugins { |
| 2 | id 'org.jetbrains.kotlin.plugin.jpa' version '1.2.41' |
| 3 | id 'org.springframework.boot' version '2.1.3.RELEASE' |
| 4 | id 'war' |
| 5 | id 'org.jetbrains.kotlin.jvm' version '1.2.41' |
| 6 | id 'org.jetbrains.kotlin.plugin.spring' version '1.2.41' |
| 7 | } |
| 8 | |
| 9 | apply plugin: 'io.spring.dependency-management' |
| 10 | |
| 11 | group = 'com.supwisdom' |
| 12 | version = '0.0.1-SNAPSHOT' |
| 13 | sourceCompatibility = '1.8' |
| 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 | |
| 28 | compile group: 'javax.servlet', name: 'jstl', version: '1.2' |
| 29 | compile group: 'taglibs', name: 'standard', version: '1.1.2' |
| 30 | compile group: 'javax.servlet.jsp', name: 'jsp-api', version: '2.1' |
| 31 | compile group: 'log4j', name: 'log4j', version: '1.2.16' |
| 32 | compile files ('libs/ojdbc6.jar') |
| 33 | } |
| 34 | |
| 35 | compileKotlin { |
| 36 | kotlinOptions { |
| 37 | freeCompilerArgs = ['-Xjsr305=strict'] |
| 38 | jvmTarget = '1.8' |
| 39 | } |
| 40 | } |
| 41 | |
| 42 | compileTestKotlin { |
| 43 | kotlinOptions { |
| 44 | freeCompilerArgs = ['-Xjsr305=strict'] |
| 45 | jvmTarget = '1.8' |
| 46 | } |
| 47 | } |