blob: fa8028be15305f13825531a3d818772ae35c9f2b [file] [log] [blame]
Xia Kaixiang04f7b5b2019-04-08 17:56:29 +08001plugins {
Tang Cheng01a86722019-07-04 10:07:51 +08002 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.liu8edd1122019-07-03 16:12:20 +08007 id 'com.palantir.docker' version '0.22.1'
Xia Kaixiang04f7b5b2019-04-08 17:56:29 +08008}
9
10apply plugin: 'io.spring.dependency-management'
Tang Cheng01a86722019-07-04 10:07:51 +080011apply plugin: 'java'
Xia Kaixiang04f7b5b2019-04-08 17:56:29 +080012
13group = 'com.supwisdom'
Tang Cheng01a86722019-07-04 10:07:51 +080014version = '1.0'
Tang Cheng6427f002019-04-09 13:10:47 +080015sourceCompatibility = jdkVersion
Xia Kaixiang04f7b5b2019-04-08 17:56:29 +080016
Tang Cheng01a86722019-07-04 10:07:51 +080017doorVersion = gitVersion()
Xia Kaixiang04f7b5b2019-04-08 17:56:29 +080018repositories {
19 mavenCentral()
yang.liudeb3c462019-07-10 16:56:06 +080020
21 maven {
22 url "http://ykt-nx.supwisdom.com/repository/ecard-repo/"
23 credentials {
24 username 'ecard'
25 password 'Ecard4SUP'
26 }
27 }
Xia Kaixiang04f7b5b2019-04-08 17:56:29 +080028}
29
yang.liu8edd1122019-07-03 16:12:20 +080030def startClass = 'com.supwisdom.dlpay.DoorApplicationKt'
31
Tang Cheng01a86722019-07-04 10:07:51 +080032println("Build version: $doorVersion")
yang.liu8edd1122019-07-03 16:12:20 +080033
34bootJar {
yang.liu8edd1122019-07-03 16:12:20 +080035 mainClassName = startClass
Tang Cheng0a0e4652019-04-16 11:16:12 +080036 manifest {
Tang Cheng01a86722019-07-04 10:07:51 +080037 attributes('Door-Version': doorVersion)
Tang Cheng0a0e4652019-04-16 11:16:12 +080038 }
39}
40
Tang Chenge9837b12019-07-05 10:19:42 +080041jar {
42 baseName = "door"
43}
44
yang.liu8edd1122019-07-03 16:12:20 +080045docker {
yu.song4f2e8b02020-05-13 16:19:34 +080046 name 'harbor.supwisdom.com/dali/conference:' + version
yang.liu8edd1122019-07-03 16:12:20 +080047 println(jar.archivePath)
48 files jar.archivePath
49}
50
Tang Chenge9837b12019-07-05 10:19:42 +080051docker.dependsOn(jar)
52
Xia Kaixiang04f7b5b2019-04-08 17:56:29 +080053dependencies {
54 implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
Tang Cheng628f7162019-04-16 22:59:02 +080055 implementation 'org.springframework.boot:spring-boot-starter-data-redis'
Xia Kaixiang04f7b5b2019-04-08 17:56:29 +080056 implementation 'org.springframework.boot:spring-boot-starter-web'
Tang Cheng981f3552019-07-03 16:47:40 +080057 implementation 'org.springframework.boot:spring-boot-autoconfigure'
Tang Chenga8bc91e2019-04-15 22:30:15 +080058 implementation 'org.springframework.boot:spring-boot-starter-security'
Tang Cheng9a8551c2019-05-24 20:34:07 +080059 implementation 'org.springframework.security.oauth.boot:spring-security-oauth2-autoconfigure:2.0.1.RELEASE'
Xia Kaixiangbb33d9b2019-04-16 17:58:56 +080060 implementation 'org.springframework.boot:spring-boot-starter-thymeleaf'
Tang Cheng5fc59772019-05-13 21:17:08 +080061 implementation 'org.springframework.session:spring-session-data-redis'
Tang Cheng786af612019-05-28 10:16:40 +080062 implementation 'org.springframework.boot:spring-boot-starter-cache'
Tang Cheng5fc59772019-05-13 21:17:08 +080063 implementation 'org.springframework.social:spring-social-web:1.1.6.RELEASE'
Xia Kaixiang04f7b5b2019-04-08 17:56:29 +080064 implementation 'org.jetbrains.kotlin:kotlin-reflect'
65 implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk8'
Xia Kaixiang04f7b5b2019-04-08 17:56:29 +080066
Tang Cheng5fc59772019-05-13 21:17:08 +080067 implementation 'org.thymeleaf.extras:thymeleaf-extras-springsecurity5'
haiwang.yangfed47b72020-04-07 18:23:59 +080068 compile group: 'org.apache.httpcomponents', name: 'httpclient', version: '4.5.12'
Tang Cheng5fc59772019-05-13 21:17:08 +080069
Tang Cheng0a0e4652019-04-16 11:16:12 +080070 implementation 'org.postgresql:postgresql:42.2.5'
Tang Cheng5fc59772019-05-13 21:17:08 +080071 implementation 'com.fasterxml.jackson.module:jackson-module-kotlin'
Tang Cheng0a0e4652019-04-16 11:16:12 +080072 implementation 'com.jcabi:jcabi-manifests:1.1'
Tang Chengd52ce952019-04-16 11:27:14 +080073 implementation 'org.bitbucket.b_c:jose4j:0.6.3'
Tang Cheng150b7402019-04-23 09:14:01 +080074 implementation 'io.github.microutils:kotlin-logging:1.6.26'
Tang Cheng5fc59772019-05-13 21:17:08 +080075 implementation 'org.slf4j:slf4j-parent:1.7.26'
Tang Cheng01a86722019-07-04 10:07:51 +080076 implementation 'redis.clients:jedis:2.9.3'
yang.liu72abb842019-07-24 16:01:06 +080077 implementation 'net.sourceforge.jexcelapi:jxl:2.6.12'
yang.liu4e2060e2019-06-13 16:08:51 +080078 implementation group: 'commons-lang', name:'commons-lang',version: '2.5'
Tang Cheng0a0e4652019-04-16 11:16:12 +080079 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 Cheng495e4aa2019-04-14 14:08:44 +080081 implementation group: 'javax.servlet', name: 'jstl', version: '1.2'
82 implementation group: 'taglibs', name: 'standard', version: '1.1.2'
yang.liu5ede4c72019-08-20 14:44:53 +080083 implementation group: 'commons-codec', name: 'commons-codec', version: '1.13'
Tang Cheng0a0e4652019-04-16 11:16:12 +080084 implementation files('libs/ojdbc6.jar')
binquan.qiu7c649252020-04-01 10:51:31 +080085 implementation group: 'com.google.zxing', name: 'core', version: '3.3.3'
yang.liub5022f32019-06-18 10:54:17 +080086 implementation 'cn.afterturn:easypoi-web:3.0.3'
87 implementation 'cn.afterturn:easypoi-base:3.0.3'
88
yang.liudeb3c462019-07-10 16:56:06 +080089 implementation 'com.github.penggle:kaptcha:2.3.2'
90
Tang Cheng0a0e4652019-04-16 11:16:12 +080091
Tang Cheng628f7162019-04-16 22:59:02 +080092 annotationProcessor "org.springframework.boot:spring-boot-configuration-processor"
yang.liu5ede4c72019-08-20 14:44:53 +080093 annotationProcessor 'org.projectlombok:lombok:1.18.8'
94 compileOnly 'org.projectlombok:lombok:1.18.8'
Tang Cheng628f7162019-04-16 22:59:02 +080095
yang.liu85109012019-12-06 15:58:48 +080096 compile 'com.supwisdom:payapi-sdk:1.0.10'
binquan.qiu7c649252020-04-01 10:51:31 +080097
Tang Cheng0a0e4652019-04-16 11:16:12 +080098 testImplementation 'org.springframework.boot:spring-boot-starter-test'
Tang Cheng9171ea92019-04-24 11:55:35 +080099 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 Kaixiang04f7b5b2019-04-08 17:56:29 +0800102}
103
104compileKotlin {
105 kotlinOptions {
106 freeCompilerArgs = ['-Xjsr305=strict']
Tang Cheng6427f002019-04-09 13:10:47 +0800107 jvmTarget = jdkVersion
Xia Kaixiang04f7b5b2019-04-08 17:56:29 +0800108 }
109}
110
111compileTestKotlin {
112 kotlinOptions {
113 freeCompilerArgs = ['-Xjsr305=strict']
Tang Cheng6427f002019-04-09 13:10:47 +0800114 jvmTarget = jdkVersion
Xia Kaixiang04f7b5b2019-04-08 17:56:29 +0800115 }
116}