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