Xia Kaixiang | 95e8848 | 2019-04-08 17:56:29 +0800 | [diff] [blame] | 1 | plugins { |
Tang Cheng | 49b3128 | 2019-07-04 10:07:51 +0800 | [diff] [blame] | 2 | id "org.springframework.boot" version "2.1.6.RELEASE" |
| 3 | id 'org.jetbrains.kotlin.jvm' version '1.3.31' |
| 4 | id 'org.jetbrains.kotlin.plugin.jpa' version '1.3.31' |
| 5 | id 'org.jetbrains.kotlin.plugin.spring' version '1.3.31' |
| 6 | id "com.palantir.git-version" version "0.12.0-rc2" |
yang.liu | ad64f17 | 2019-07-03 16:12:20 +0800 | [diff] [blame] | 7 | id 'com.palantir.docker' version '0.22.1' |
Xia Kaixiang | 95e8848 | 2019-04-08 17:56:29 +0800 | [diff] [blame] | 8 | } |
| 9 | |
| 10 | apply plugin: 'io.spring.dependency-management' |
Tang Cheng | 49b3128 | 2019-07-04 10:07:51 +0800 | [diff] [blame] | 11 | apply plugin: 'java' |
Xia Kaixiang | 95e8848 | 2019-04-08 17:56:29 +0800 | [diff] [blame] | 12 | |
| 13 | group = 'com.supwisdom' |
Tang Cheng | 49b3128 | 2019-07-04 10:07:51 +0800 | [diff] [blame] | 14 | version = '1.0' |
Tang Cheng | e4dd088 | 2019-04-09 13:10:47 +0800 | [diff] [blame] | 15 | sourceCompatibility = jdkVersion |
Xia Kaixiang | 95e8848 | 2019-04-08 17:56:29 +0800 | [diff] [blame] | 16 | |
Tang Cheng | 49b3128 | 2019-07-04 10:07:51 +0800 | [diff] [blame] | 17 | doorVersion = gitVersion() |
Xia Kaixiang | 95e8848 | 2019-04-08 17:56:29 +0800 | [diff] [blame] | 18 | repositories { |
| 19 | mavenCentral() |
yang.liu | 8cea0b3 | 2019-07-10 16:56:06 +0800 | [diff] [blame] | 20 | |
| 21 | maven { |
| 22 | url "http://ykt-nx.supwisdom.com/repository/ecard-repo/" |
| 23 | credentials { |
| 24 | username 'ecard' |
| 25 | password 'Ecard4SUP' |
| 26 | } |
| 27 | } |
Xia Kaixiang | 95e8848 | 2019-04-08 17:56:29 +0800 | [diff] [blame] | 28 | } |
| 29 | |
yang.liu | ad64f17 | 2019-07-03 16:12:20 +0800 | [diff] [blame] | 30 | def startClass = 'com.supwisdom.dlpay.DoorApplicationKt' |
| 31 | |
Tang Cheng | 49b3128 | 2019-07-04 10:07:51 +0800 | [diff] [blame] | 32 | println("Build version: $doorVersion") |
yang.liu | ad64f17 | 2019-07-03 16:12:20 +0800 | [diff] [blame] | 33 | |
| 34 | bootJar { |
yang.liu | ad64f17 | 2019-07-03 16:12:20 +0800 | [diff] [blame] | 35 | mainClassName = startClass |
Tang Cheng | 67cf630 | 2019-04-16 11:16:12 +0800 | [diff] [blame] | 36 | manifest { |
Tang Cheng | 49b3128 | 2019-07-04 10:07:51 +0800 | [diff] [blame] | 37 | attributes('Door-Version': doorVersion) |
Tang Cheng | 67cf630 | 2019-04-16 11:16:12 +0800 | [diff] [blame] | 38 | } |
| 39 | } |
| 40 | |
Tang Cheng | 5b58142 | 2019-07-05 10:19:42 +0800 | [diff] [blame] | 41 | jar { |
| 42 | baseName = "door" |
| 43 | } |
| 44 | |
yang.liu | ad64f17 | 2019-07-03 16:12:20 +0800 | [diff] [blame] | 45 | docker { |
Tang Cheng | 6526827 | 2019-07-06 11:59:14 +0800 | [diff] [blame] | 46 | name 'harbor.supwisdom.com/dali/door:' + version |
yang.liu | ad64f17 | 2019-07-03 16:12:20 +0800 | [diff] [blame] | 47 | println(jar.archivePath) |
| 48 | files jar.archivePath |
| 49 | } |
| 50 | |
Tang Cheng | 5b58142 | 2019-07-05 10:19:42 +0800 | [diff] [blame] | 51 | docker.dependsOn(jar) |
| 52 | |
Xia Kaixiang | 95e8848 | 2019-04-08 17:56:29 +0800 | [diff] [blame] | 53 | dependencies { |
| 54 | implementation 'org.springframework.boot:spring-boot-starter-data-jpa' |
Tang Cheng | 1475eb2 | 2019-04-16 22:59:02 +0800 | [diff] [blame] | 55 | implementation 'org.springframework.boot:spring-boot-starter-data-redis' |
Xia Kaixiang | 95e8848 | 2019-04-08 17:56:29 +0800 | [diff] [blame] | 56 | implementation 'org.springframework.boot:spring-boot-starter-web' |
Tang Cheng | 9f60784 | 2019-07-03 16:47:40 +0800 | [diff] [blame] | 57 | implementation 'org.springframework.boot:spring-boot-autoconfigure' |
Tang Cheng | 4939a45 | 2019-04-15 22:30:15 +0800 | [diff] [blame] | 58 | implementation 'org.springframework.boot:spring-boot-starter-security' |
Tang Cheng | cb61aed | 2019-05-24 20:34:07 +0800 | [diff] [blame] | 59 | implementation 'org.springframework.security.oauth.boot:spring-security-oauth2-autoconfigure:2.0.1.RELEASE' |
Xia Kaixiang | 2d3a1ce | 2019-04-16 17:58:56 +0800 | [diff] [blame] | 60 | implementation 'org.springframework.boot:spring-boot-starter-thymeleaf' |
Tang Cheng | ec8a86b | 2019-05-13 21:17:08 +0800 | [diff] [blame] | 61 | implementation 'org.springframework.session:spring-session-data-redis' |
Tang Cheng | 6956679 | 2019-05-28 10:16:40 +0800 | [diff] [blame] | 62 | implementation 'org.springframework.boot:spring-boot-starter-cache' |
Tang Cheng | ec8a86b | 2019-05-13 21:17:08 +0800 | [diff] [blame] | 63 | implementation 'org.springframework.social:spring-social-web:1.1.6.RELEASE' |
Xia Kaixiang | 95e8848 | 2019-04-08 17:56:29 +0800 | [diff] [blame] | 64 | implementation 'org.jetbrains.kotlin:kotlin-reflect' |
| 65 | implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk8' |
Xia Kaixiang | 95e8848 | 2019-04-08 17:56:29 +0800 | [diff] [blame] | 66 | |
Tang Cheng | ec8a86b | 2019-05-13 21:17:08 +0800 | [diff] [blame] | 67 | implementation 'org.thymeleaf.extras:thymeleaf-extras-springsecurity5' |
| 68 | |
Tang Cheng | 67cf630 | 2019-04-16 11:16:12 +0800 | [diff] [blame] | 69 | implementation 'org.postgresql:postgresql:42.2.5' |
Tang Cheng | ec8a86b | 2019-05-13 21:17:08 +0800 | [diff] [blame] | 70 | implementation 'com.fasterxml.jackson.module:jackson-module-kotlin' |
Tang Cheng | 67cf630 | 2019-04-16 11:16:12 +0800 | [diff] [blame] | 71 | implementation 'com.jcabi:jcabi-manifests:1.1' |
Tang Cheng | 1caa64e | 2019-04-16 11:27:14 +0800 | [diff] [blame] | 72 | implementation 'org.bitbucket.b_c:jose4j:0.6.3' |
Tang Cheng | 6664325 | 2019-04-23 09:14:01 +0800 | [diff] [blame] | 73 | implementation 'io.github.microutils:kotlin-logging:1.6.26' |
Tang Cheng | ec8a86b | 2019-05-13 21:17:08 +0800 | [diff] [blame] | 74 | implementation 'org.slf4j:slf4j-parent:1.7.26' |
Tang Cheng | 49b3128 | 2019-07-04 10:07:51 +0800 | [diff] [blame] | 75 | implementation 'redis.clients:jedis:2.9.3' |
yang.liu | e0d8438 | 2019-07-24 16:01:06 +0800 | [diff] [blame] | 76 | implementation 'net.sourceforge.jexcelapi:jxl:2.6.12' |
yang.liu | fc10e34 | 2019-06-13 16:08:51 +0800 | [diff] [blame] | 77 | implementation group: 'commons-lang', name:'commons-lang',version: '2.5' |
Tang Cheng | 67cf630 | 2019-04-16 11:16:12 +0800 | [diff] [blame] | 78 | implementation group: 'com.google.code.gson', name: 'gson', version: '2.8.5' |
| 79 | implementation group: 'com.sun.jersey', name: 'jersey-client', version: '1.19' |
Tang Cheng | 0ef385d | 2019-04-14 14:08:44 +0800 | [diff] [blame] | 80 | implementation group: 'javax.servlet', name: 'jstl', version: '1.2' |
| 81 | implementation group: 'taglibs', name: 'standard', version: '1.1.2' |
yang.liu | 43077ef | 2019-08-20 14:44:53 +0800 | [diff] [blame] | 82 | implementation group: 'commons-codec', name: 'commons-codec', version: '1.13' |
Tang Cheng | 67cf630 | 2019-04-16 11:16:12 +0800 | [diff] [blame] | 83 | implementation files('libs/ojdbc6.jar') |
qiaowei | 1026aa1 | 2019-04-09 16:32:03 +0800 | [diff] [blame] | 84 | |
yang.liu | 255615b | 2019-06-18 10:54:17 +0800 | [diff] [blame] | 85 | implementation 'cn.afterturn:easypoi-web:3.0.3' |
| 86 | implementation 'cn.afterturn:easypoi-base:3.0.3' |
| 87 | |
yang.liu | 8cea0b3 | 2019-07-10 16:56:06 +0800 | [diff] [blame] | 88 | implementation 'com.github.penggle:kaptcha:2.3.2' |
| 89 | |
Tang Cheng | 67cf630 | 2019-04-16 11:16:12 +0800 | [diff] [blame] | 90 | |
Tang Cheng | 1475eb2 | 2019-04-16 22:59:02 +0800 | [diff] [blame] | 91 | annotationProcessor "org.springframework.boot:spring-boot-configuration-processor" |
yang.liu | 43077ef | 2019-08-20 14:44:53 +0800 | [diff] [blame] | 92 | annotationProcessor 'org.projectlombok:lombok:1.18.8' |
| 93 | compileOnly 'org.projectlombok:lombok:1.18.8' |
Tang Cheng | 1475eb2 | 2019-04-16 22:59:02 +0800 | [diff] [blame] | 94 | |
yang.liu | 0817abd | 2019-09-09 17:36:08 +0800 | [diff] [blame] | 95 | compile 'com.supwisdom:payapi-sdk:55725ca' |
yang.liu | 8cea0b3 | 2019-07-10 16:56:06 +0800 | [diff] [blame] | 96 | |
Tang Cheng | 67cf630 | 2019-04-16 11:16:12 +0800 | [diff] [blame] | 97 | testImplementation 'org.springframework.boot:spring-boot-starter-test' |
Tang Cheng | 173e3b4 | 2019-04-24 11:55:35 +0800 | [diff] [blame] | 98 | testImplementation 'io.rest-assured:rest-assured:3.3.0' |
| 99 | testImplementation 'io.rest-assured:spring-mock-mvc:3.3.0' |
| 100 | testImplementation 'org.hamcrest:hamcrest:2.1' |
Xia Kaixiang | 95e8848 | 2019-04-08 17:56:29 +0800 | [diff] [blame] | 101 | } |
| 102 | |
| 103 | compileKotlin { |
| 104 | kotlinOptions { |
| 105 | freeCompilerArgs = ['-Xjsr305=strict'] |
Tang Cheng | e4dd088 | 2019-04-09 13:10:47 +0800 | [diff] [blame] | 106 | jvmTarget = jdkVersion |
Xia Kaixiang | 95e8848 | 2019-04-08 17:56:29 +0800 | [diff] [blame] | 107 | } |
| 108 | } |
| 109 | |
| 110 | compileTestKotlin { |
| 111 | kotlinOptions { |
| 112 | freeCompilerArgs = ['-Xjsr305=strict'] |
Tang Cheng | e4dd088 | 2019-04-09 13:10:47 +0800 | [diff] [blame] | 113 | jvmTarget = jdkVersion |
Xia Kaixiang | 95e8848 | 2019-04-08 17:56:29 +0800 | [diff] [blame] | 114 | } |
| 115 | } |