Xia Kaixiang | 04f7b5b | 2019-04-08 17:56:29 +0800 | [diff] [blame] | 1 | plugins { |
Tang Cheng | 01a8672 | 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 | 8edd112 | 2019-07-03 16:12:20 +0800 | [diff] [blame] | 7 | id 'com.palantir.docker' version '0.22.1' |
Xia Kaixiang | 04f7b5b | 2019-04-08 17:56:29 +0800 | [diff] [blame] | 8 | } |
| 9 | |
| 10 | apply plugin: 'io.spring.dependency-management' |
Tang Cheng | 01a8672 | 2019-07-04 10:07:51 +0800 | [diff] [blame] | 11 | apply plugin: 'java' |
Xia Kaixiang | 04f7b5b | 2019-04-08 17:56:29 +0800 | [diff] [blame] | 12 | |
| 13 | group = 'com.supwisdom' |
Tang Cheng | 01a8672 | 2019-07-04 10:07:51 +0800 | [diff] [blame] | 14 | version = '1.0' |
Tang Cheng | 6427f00 | 2019-04-09 13:10:47 +0800 | [diff] [blame] | 15 | sourceCompatibility = jdkVersion |
Xia Kaixiang | 04f7b5b | 2019-04-08 17:56:29 +0800 | [diff] [blame] | 16 | |
Tang Cheng | 01a8672 | 2019-07-04 10:07:51 +0800 | [diff] [blame] | 17 | doorVersion = gitVersion() |
Xia Kaixiang | 04f7b5b | 2019-04-08 17:56:29 +0800 | [diff] [blame] | 18 | repositories { |
| 19 | mavenCentral() |
yang.liu | deb3c46 | 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 | 04f7b5b | 2019-04-08 17:56:29 +0800 | [diff] [blame] | 28 | } |
| 29 | |
yang.liu | 8edd112 | 2019-07-03 16:12:20 +0800 | [diff] [blame] | 30 | def startClass = 'com.supwisdom.dlpay.DoorApplicationKt' |
| 31 | |
Tang Cheng | 01a8672 | 2019-07-04 10:07:51 +0800 | [diff] [blame] | 32 | println("Build version: $doorVersion") |
yang.liu | 8edd112 | 2019-07-03 16:12:20 +0800 | [diff] [blame] | 33 | |
| 34 | bootJar { |
yang.liu | 8edd112 | 2019-07-03 16:12:20 +0800 | [diff] [blame] | 35 | mainClassName = startClass |
Tang Cheng | 0a0e465 | 2019-04-16 11:16:12 +0800 | [diff] [blame] | 36 | manifest { |
Tang Cheng | 01a8672 | 2019-07-04 10:07:51 +0800 | [diff] [blame] | 37 | attributes('Door-Version': doorVersion) |
Tang Cheng | 0a0e465 | 2019-04-16 11:16:12 +0800 | [diff] [blame] | 38 | } |
| 39 | } |
| 40 | |
Tang Cheng | e9837b1 | 2019-07-05 10:19:42 +0800 | [diff] [blame] | 41 | jar { |
| 42 | baseName = "door" |
| 43 | } |
| 44 | |
yang.liu | 8edd112 | 2019-07-03 16:12:20 +0800 | [diff] [blame] | 45 | docker { |
Xia Kaixiang | 4f9223d | 2020-04-28 09:58:35 +0800 | [diff] [blame] | 46 | name 'harbor.supwisdom.com/dali/conference:' + version |
yang.liu | 8edd112 | 2019-07-03 16:12:20 +0800 | [diff] [blame] | 47 | println(jar.archivePath) |
| 48 | files jar.archivePath |
| 49 | } |
| 50 | |
Tang Cheng | e9837b1 | 2019-07-05 10:19:42 +0800 | [diff] [blame] | 51 | docker.dependsOn(jar) |
| 52 | |
Xia Kaixiang | 04f7b5b | 2019-04-08 17:56:29 +0800 | [diff] [blame] | 53 | dependencies { |
| 54 | implementation 'org.springframework.boot:spring-boot-starter-data-jpa' |
Tang Cheng | 628f716 | 2019-04-16 22:59:02 +0800 | [diff] [blame] | 55 | implementation 'org.springframework.boot:spring-boot-starter-data-redis' |
Xia Kaixiang | 04f7b5b | 2019-04-08 17:56:29 +0800 | [diff] [blame] | 56 | implementation 'org.springframework.boot:spring-boot-starter-web' |
Tang Cheng | 981f355 | 2019-07-03 16:47:40 +0800 | [diff] [blame] | 57 | implementation 'org.springframework.boot:spring-boot-autoconfigure' |
Tang Cheng | a8bc91e | 2019-04-15 22:30:15 +0800 | [diff] [blame] | 58 | implementation 'org.springframework.boot:spring-boot-starter-security' |
Tang Cheng | 9a8551c | 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 | bb33d9b | 2019-04-16 17:58:56 +0800 | [diff] [blame] | 60 | implementation 'org.springframework.boot:spring-boot-starter-thymeleaf' |
Tang Cheng | 5fc5977 | 2019-05-13 21:17:08 +0800 | [diff] [blame] | 61 | implementation 'org.springframework.session:spring-session-data-redis' |
Tang Cheng | 786af61 | 2019-05-28 10:16:40 +0800 | [diff] [blame] | 62 | implementation 'org.springframework.boot:spring-boot-starter-cache' |
Tang Cheng | 5fc5977 | 2019-05-13 21:17:08 +0800 | [diff] [blame] | 63 | implementation 'org.springframework.social:spring-social-web:1.1.6.RELEASE' |
Xia Kaixiang | 04f7b5b | 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 | 04f7b5b | 2019-04-08 17:56:29 +0800 | [diff] [blame] | 66 | |
Tang Cheng | 5fc5977 | 2019-05-13 21:17:08 +0800 | [diff] [blame] | 67 | implementation 'org.thymeleaf.extras:thymeleaf-extras-springsecurity5' |
haiwang.yang | fed47b7 | 2020-04-07 18:23:59 +0800 | [diff] [blame] | 68 | compile group: 'org.apache.httpcomponents', name: 'httpclient', version: '4.5.12' |
Tang Cheng | 5fc5977 | 2019-05-13 21:17:08 +0800 | [diff] [blame] | 69 | |
Tang Cheng | 0a0e465 | 2019-04-16 11:16:12 +0800 | [diff] [blame] | 70 | implementation 'org.postgresql:postgresql:42.2.5' |
Tang Cheng | 5fc5977 | 2019-05-13 21:17:08 +0800 | [diff] [blame] | 71 | implementation 'com.fasterxml.jackson.module:jackson-module-kotlin' |
Tang Cheng | 0a0e465 | 2019-04-16 11:16:12 +0800 | [diff] [blame] | 72 | implementation 'com.jcabi:jcabi-manifests:1.1' |
Tang Cheng | d52ce95 | 2019-04-16 11:27:14 +0800 | [diff] [blame] | 73 | implementation 'org.bitbucket.b_c:jose4j:0.6.3' |
Tang Cheng | 150b740 | 2019-04-23 09:14:01 +0800 | [diff] [blame] | 74 | implementation 'io.github.microutils:kotlin-logging:1.6.26' |
Tang Cheng | 5fc5977 | 2019-05-13 21:17:08 +0800 | [diff] [blame] | 75 | implementation 'org.slf4j:slf4j-parent:1.7.26' |
Tang Cheng | 01a8672 | 2019-07-04 10:07:51 +0800 | [diff] [blame] | 76 | implementation 'redis.clients:jedis:2.9.3' |
yang.liu | 72abb84 | 2019-07-24 16:01:06 +0800 | [diff] [blame] | 77 | implementation 'net.sourceforge.jexcelapi:jxl:2.6.12' |
yang.liu | 4e2060e | 2019-06-13 16:08:51 +0800 | [diff] [blame] | 78 | implementation group: 'commons-lang', name:'commons-lang',version: '2.5' |
Tang Cheng | 0a0e465 | 2019-04-16 11:16:12 +0800 | [diff] [blame] | 79 | implementation group: 'com.google.code.gson', name: 'gson', version: '2.8.5' |
| 80 | implementation group: 'com.sun.jersey', name: 'jersey-client', version: '1.19' |
Tang Cheng | 495e4aa | 2019-04-14 14:08:44 +0800 | [diff] [blame] | 81 | implementation group: 'javax.servlet', name: 'jstl', version: '1.2' |
| 82 | implementation group: 'taglibs', name: 'standard', version: '1.1.2' |
yang.liu | 5ede4c7 | 2019-08-20 14:44:53 +0800 | [diff] [blame] | 83 | implementation group: 'commons-codec', name: 'commons-codec', version: '1.13' |
Tang Cheng | 0a0e465 | 2019-04-16 11:16:12 +0800 | [diff] [blame] | 84 | implementation files('libs/ojdbc6.jar') |
binquan.qiu | 7c64925 | 2020-04-01 10:51:31 +0800 | [diff] [blame] | 85 | implementation group: 'com.google.zxing', name: 'core', version: '3.3.3' |
yang.liu | b5022f3 | 2019-06-18 10:54:17 +0800 | [diff] [blame] | 86 | implementation 'cn.afterturn:easypoi-web:3.0.3' |
| 87 | implementation 'cn.afterturn:easypoi-base:3.0.3' |
| 88 | |
yang.liu | deb3c46 | 2019-07-10 16:56:06 +0800 | [diff] [blame] | 89 | implementation 'com.github.penggle:kaptcha:2.3.2' |
| 90 | |
Tang Cheng | 0a0e465 | 2019-04-16 11:16:12 +0800 | [diff] [blame] | 91 | |
Tang Cheng | 628f716 | 2019-04-16 22:59:02 +0800 | [diff] [blame] | 92 | annotationProcessor "org.springframework.boot:spring-boot-configuration-processor" |
yang.liu | 5ede4c7 | 2019-08-20 14:44:53 +0800 | [diff] [blame] | 93 | annotationProcessor 'org.projectlombok:lombok:1.18.8' |
| 94 | compileOnly 'org.projectlombok:lombok:1.18.8' |
Tang Cheng | 628f716 | 2019-04-16 22:59:02 +0800 | [diff] [blame] | 95 | |
yang.liu | 8510901 | 2019-12-06 15:58:48 +0800 | [diff] [blame] | 96 | compile 'com.supwisdom:payapi-sdk:1.0.10' |
binquan.qiu | 7c64925 | 2020-04-01 10:51:31 +0800 | [diff] [blame] | 97 | |
Tang Cheng | 0a0e465 | 2019-04-16 11:16:12 +0800 | [diff] [blame] | 98 | testImplementation 'org.springframework.boot:spring-boot-starter-test' |
Tang Cheng | 9171ea9 | 2019-04-24 11:55:35 +0800 | [diff] [blame] | 99 | testImplementation 'io.rest-assured:rest-assured:3.3.0' |
| 100 | testImplementation 'io.rest-assured:spring-mock-mvc:3.3.0' |
| 101 | testImplementation 'org.hamcrest:hamcrest:2.1' |
Xia Kaixiang | 04f7b5b | 2019-04-08 17:56:29 +0800 | [diff] [blame] | 102 | } |
| 103 | |
| 104 | compileKotlin { |
| 105 | kotlinOptions { |
| 106 | freeCompilerArgs = ['-Xjsr305=strict'] |
Tang Cheng | 6427f00 | 2019-04-09 13:10:47 +0800 | [diff] [blame] | 107 | jvmTarget = jdkVersion |
Xia Kaixiang | 04f7b5b | 2019-04-08 17:56:29 +0800 | [diff] [blame] | 108 | } |
| 109 | } |
| 110 | |
| 111 | compileTestKotlin { |
| 112 | kotlinOptions { |
| 113 | freeCompilerArgs = ['-Xjsr305=strict'] |
Tang Cheng | 6427f00 | 2019-04-09 13:10:47 +0800 | [diff] [blame] | 114 | jvmTarget = jdkVersion |
Xia Kaixiang | 04f7b5b | 2019-04-08 17:56:29 +0800 | [diff] [blame] | 115 | } |
| 116 | } |