Xia Kaixiang | d15331b | 2019-05-13 16:09:09 +0800 | [diff] [blame] | 1 | plugins { |
Tang Cheng | 468364f | 2019-07-10 14:22:26 +0800 | [diff] [blame] | 2 | id 'java' |
Xia Kaixiang | d15331b | 2019-05-13 16:09:09 +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' |
Tang Cheng | 468364f | 2019-07-10 14:22:26 +0800 | [diff] [blame] | 7 | id "com.palantir.git-version" version "0.12.0-rc2" |
| 8 | id 'com.palantir.docker' version '0.22.1' |
Xia Kaixiang | d15331b | 2019-05-13 16:09:09 +0800 | [diff] [blame] | 9 | } |
| 10 | |
binquan.qiu | 02c6503 | 2019-07-03 16:01:57 +0800 | [diff] [blame] | 11 | |
Xia Kaixiang | d15331b | 2019-05-13 16:09:09 +0800 | [diff] [blame] | 12 | apply plugin: 'io.spring.dependency-management' |
| 13 | |
| 14 | group = 'com.supwisdom' |
Tang Cheng | 468364f | 2019-07-10 14:22:26 +0800 | [diff] [blame] | 15 | version = restaurantVersion |
Xia Kaixiang | d15331b | 2019-05-13 16:09:09 +0800 | [diff] [blame] | 16 | sourceCompatibility = jdkVersion |
| 17 | |
Tang Cheng | 468364f | 2019-07-10 14:22:26 +0800 | [diff] [blame] | 18 | restaurantVersion = gitVersion() |
Xia Kaixiang | d15331b | 2019-05-13 16:09:09 +0800 | [diff] [blame] | 19 | |
Tang Cheng | 468364f | 2019-07-10 14:22:26 +0800 | [diff] [blame] | 20 | def startClass = 'com.supwisdom.dlpay.RestaurantApplicationKt' |
| 21 | |
| 22 | bootJar { |
| 23 | mainClassName = startClass |
Xia Kaixiang | d15331b | 2019-05-13 16:09:09 +0800 | [diff] [blame] | 24 | manifest { |
Tang Cheng | 468364f | 2019-07-10 14:22:26 +0800 | [diff] [blame] | 25 | attributes('Restaurant-Version': restaurantVersion) |
Xia Kaixiang | d15331b | 2019-05-13 16:09:09 +0800 | [diff] [blame] | 26 | } |
| 27 | } |
| 28 | |
Tang Cheng | 468364f | 2019-07-10 14:22:26 +0800 | [diff] [blame] | 29 | jar { |
| 30 | baseName = 'restaurant' |
| 31 | } |
| 32 | |
| 33 | docker { |
| 34 | name 'harbor.supwisdom.com/dali/restaurant:' + version |
| 35 | println(jar.archivePath) |
| 36 | files jar.archivePath |
| 37 | } |
| 38 | |
binquan.qiu | 8cad185 | 2019-07-10 14:11:22 +0800 | [diff] [blame] | 39 | repositories { |
| 40 | mavenCentral() |
| 41 | maven { |
| 42 | url "http://ykt-nx.supwisdom.com/repository/ecard-repo/" |
| 43 | credentials { |
| 44 | username 'ecard' |
| 45 | password 'Ecard4SUP' |
| 46 | } |
| 47 | } |
| 48 | } |
| 49 | |
| 50 | |
Xia Kaixiang | d15331b | 2019-05-13 16:09:09 +0800 | [diff] [blame] | 51 | dependencies { |
| 52 | implementation 'org.springframework.boot:spring-boot-starter-data-jpa' |
binquan.qiu | ddba9ec | 2019-06-21 13:42:04 +0800 | [diff] [blame] | 53 | compile group: 'org.apache.poi', name: 'poi', version: '3.10.1' |
| 54 | compile group: 'org.apache.poi', name: 'poi-examples', version: '3.10.1' |
| 55 | compile group: 'org.apache.poi', name: 'poi-excelant', version: '3.10.1' |
Tang Cheng | 468364f | 2019-07-10 14:22:26 +0800 | [diff] [blame] | 56 | compile group: 'org.apache.poi', name: 'poi-ooxml', version: '3.10.1' |
| 57 | compile group: 'org.apache.poi', name: 'poi-ooxml-schemas', version: '3.10.1' |
| 58 | compile group: 'org.apache.poi', name: 'poi-scratchpad', version: '3.10.1' |
binquan.qiu | 8cad185 | 2019-07-10 14:11:22 +0800 | [diff] [blame] | 59 | compile 'com.supwisdom:payapi-sdk:e4bf762' |
binquan.qiu | ddba9ec | 2019-06-21 13:42:04 +0800 | [diff] [blame] | 60 | |
binquan.qiu | dbaa57f | 2019-07-09 11:27:24 +0800 | [diff] [blame] | 61 | implementation 'org.springframework.boot:spring-boot-devtools' |
binquan.qiu | 0ac0bdb | 2019-06-04 15:26:36 +0800 | [diff] [blame] | 62 | implementation 'org.springframework.boot:spring-boot-starter-tomcat' |
Xia Kaixiang | d15331b | 2019-05-13 16:09:09 +0800 | [diff] [blame] | 63 | implementation 'org.springframework.boot:spring-boot-starter-data-redis' |
| 64 | implementation 'org.springframework.boot:spring-boot-starter-web' |
| 65 | implementation 'org.springframework.boot:spring-boot-starter-security' |
| 66 | implementation 'org.springframework.security:spring-security-oauth2-client' |
| 67 | implementation 'org.springframework.security:spring-security-oauth2-jose' |
Tang Cheng | c694dfe | 2019-07-11 12:13:45 +0800 | [diff] [blame] | 68 | implementation 'com.fasterxml.jackson.module:jackson-module-kotlin:2.9.9' |
Tang Cheng | 840d286 | 2019-07-11 13:49:44 +0800 | [diff] [blame^] | 69 | implementation 'org.springframework.boot:spring-boot-autoconfigure' |
Xia Kaixiang | d15331b | 2019-05-13 16:09:09 +0800 | [diff] [blame] | 70 | implementation 'org.springframework.boot:spring-boot-starter-thymeleaf' |
| 71 | implementation 'org.springframework.session:spring-session-data-redis:2.0.10.RELEASE' |
| 72 | implementation 'org.jetbrains.kotlin:kotlin-reflect' |
| 73 | implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk8' |
| 74 | |
| 75 | implementation 'org.postgresql:postgresql:42.2.5' |
| 76 | implementation 'com.jcabi:jcabi-manifests:1.1' |
| 77 | implementation 'org.bitbucket.b_c:jose4j:0.6.3' |
| 78 | implementation 'org.thymeleaf.extras:thymeleaf-extras-springsecurity5' |
| 79 | implementation 'org.springframework.social:spring-social-web:1.1.6.RELEASE' |
| 80 | implementation 'io.github.microutils:kotlin-logging:1.6.26' |
| 81 | implementation group: 'com.google.code.gson', name: 'gson', version: '2.8.5' |
| 82 | implementation group: 'com.sun.jersey', name: 'jersey-client', version: '1.19' |
| 83 | implementation group: 'javax.servlet', name: 'jstl', version: '1.2' |
| 84 | implementation group: 'taglibs', name: 'standard', version: '1.1.2' |
| 85 | implementation group: 'commons-codec', name: 'commons-codec', version: '1.6' |
Xia Kaixiang | 9019e96 | 2019-06-26 18:32:09 +0800 | [diff] [blame] | 86 | implementation 'org.apache.commons:commons-lang3:3.9' |
Xia Kaixiang | d15331b | 2019-05-13 16:09:09 +0800 | [diff] [blame] | 87 | implementation files('libs/ojdbc6.jar') |
| 88 | |
| 89 | |
| 90 | annotationProcessor "org.springframework.boot:spring-boot-configuration-processor" |
| 91 | |
Xia Kaixiang | d15331b | 2019-05-13 16:09:09 +0800 | [diff] [blame] | 92 | testImplementation 'org.springframework.boot:spring-boot-starter-test' |
| 93 | testImplementation 'io.rest-assured:rest-assured:3.3.0' |
| 94 | testImplementation 'io.rest-assured:spring-mock-mvc:3.3.0' |
| 95 | testImplementation 'org.hamcrest:hamcrest:2.1' |
| 96 | } |
| 97 | |
| 98 | compileKotlin { |
| 99 | kotlinOptions { |
| 100 | freeCompilerArgs = ['-Xjsr305=strict'] |
| 101 | jvmTarget = jdkVersion |
| 102 | } |
| 103 | } |
Tang Cheng | 468364f | 2019-07-10 14:22:26 +0800 | [diff] [blame] | 104 | |
Xia Kaixiang | d15331b | 2019-05-13 16:09:09 +0800 | [diff] [blame] | 105 | compileTestKotlin { |
| 106 | kotlinOptions { |
| 107 | freeCompilerArgs = ['-Xjsr305=strict'] |
| 108 | jvmTarget = jdkVersion |
| 109 | } |
Tang Cheng | 468364f | 2019-07-10 14:22:26 +0800 | [diff] [blame] | 110 | } |