blob: 3c7b3e13ece8bf15ee4c551d66195591977eab26 [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 {
Tang Cheng6650b9e2019-07-06 11:59:14 +080046 name 'harbor.supwisdom.com/dali/door:' + 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'
68
Tang Cheng0a0e4652019-04-16 11:16:12 +080069 implementation 'org.postgresql:postgresql:42.2.5'
Tang Cheng5fc59772019-05-13 21:17:08 +080070 implementation 'com.fasterxml.jackson.module:jackson-module-kotlin'
Tang Cheng0a0e4652019-04-16 11:16:12 +080071 implementation 'com.jcabi:jcabi-manifests:1.1'
Tang Chengd52ce952019-04-16 11:27:14 +080072 implementation 'org.bitbucket.b_c:jose4j:0.6.3'
Tang Cheng150b7402019-04-23 09:14:01 +080073 implementation 'io.github.microutils:kotlin-logging:1.6.26'
Tang Cheng5fc59772019-05-13 21:17:08 +080074 implementation 'org.slf4j:slf4j-parent:1.7.26'
Tang Cheng01a86722019-07-04 10:07:51 +080075 implementation 'redis.clients:jedis:2.9.3'
yang.liu72abb842019-07-24 16:01:06 +080076 implementation 'net.sourceforge.jexcelapi:jxl:2.6.12'
yang.liu4e2060e2019-06-13 16:08:51 +080077 implementation group: 'commons-lang', name:'commons-lang',version: '2.5'
Tang Cheng0a0e4652019-04-16 11:16:12 +080078 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 Cheng495e4aa2019-04-14 14:08:44 +080080 implementation group: 'javax.servlet', name: 'jstl', version: '1.2'
81 implementation group: 'taglibs', name: 'standard', version: '1.1.2'
yang.liu5ede4c72019-08-20 14:44:53 +080082 implementation group: 'commons-codec', name: 'commons-codec', version: '1.13'
Tang Cheng0a0e4652019-04-16 11:16:12 +080083 implementation files('libs/ojdbc6.jar')
qiaowei44c6bd72019-04-09 16:32:03 +080084
yang.liub5022f32019-06-18 10:54:17 +080085 implementation 'cn.afterturn:easypoi-web:3.0.3'
86 implementation 'cn.afterturn:easypoi-base:3.0.3'
87
yang.liudeb3c462019-07-10 16:56:06 +080088 implementation 'com.github.penggle:kaptcha:2.3.2'
89
Tang Cheng0a0e4652019-04-16 11:16:12 +080090
Tang Cheng628f7162019-04-16 22:59:02 +080091 annotationProcessor "org.springframework.boot:spring-boot-configuration-processor"
yang.liu5ede4c72019-08-20 14:44:53 +080092 annotationProcessor 'org.projectlombok:lombok:1.18.8'
93 compileOnly 'org.projectlombok:lombok:1.18.8'
Tang Cheng628f7162019-04-16 22:59:02 +080094
yang.liu85109012019-12-06 15:58:48 +080095 compile 'com.supwisdom:payapi-sdk:1.0.10'
yang.liudeb3c462019-07-10 16:56:06 +080096
Tang Cheng0a0e4652019-04-16 11:16:12 +080097 testImplementation 'org.springframework.boot:spring-boot-starter-test'
Tang Cheng9171ea92019-04-24 11:55:35 +080098 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 Kaixiang04f7b5b2019-04-08 17:56:29 +0800101}
102
103compileKotlin {
104 kotlinOptions {
105 freeCompilerArgs = ['-Xjsr305=strict']
Tang Cheng6427f002019-04-09 13:10:47 +0800106 jvmTarget = jdkVersion
Xia Kaixiang04f7b5b2019-04-08 17:56:29 +0800107 }
108}
109
110compileTestKotlin {
111 kotlinOptions {
112 freeCompilerArgs = ['-Xjsr305=strict']
Tang Cheng6427f002019-04-09 13:10:47 +0800113 jvmTarget = jdkVersion
Xia Kaixiang04f7b5b2019-04-08 17:56:29 +0800114 }
115}