blob: 3c9b8817748f6638895a2b23a984614342be4462 [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()
20}
21
yang.liu8edd1122019-07-03 16:12:20 +080022def startClass = 'com.supwisdom.dlpay.DoorApplicationKt'
23
Tang Cheng01a86722019-07-04 10:07:51 +080024println("Build version: $doorVersion")
yang.liu8edd1122019-07-03 16:12:20 +080025
26bootJar {
yang.liu8edd1122019-07-03 16:12:20 +080027 mainClassName = startClass
Tang Cheng0a0e4652019-04-16 11:16:12 +080028 manifest {
Tang Cheng01a86722019-07-04 10:07:51 +080029 attributes('Door-Version': doorVersion)
Tang Cheng0a0e4652019-04-16 11:16:12 +080030 }
31}
32
Tang Chenge9837b12019-07-05 10:19:42 +080033jar {
34 baseName = "door"
35}
36
yang.liu8edd1122019-07-03 16:12:20 +080037docker {
38 name '172.28.201.70:5000/dali/door:' + version
39 println(jar.archivePath)
40 files jar.archivePath
41}
42
Tang Chenge9837b12019-07-05 10:19:42 +080043docker.dependsOn(jar)
44
Xia Kaixiang04f7b5b2019-04-08 17:56:29 +080045dependencies {
46 implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
Tang Cheng628f7162019-04-16 22:59:02 +080047 implementation 'org.springframework.boot:spring-boot-starter-data-redis'
Xia Kaixiang04f7b5b2019-04-08 17:56:29 +080048 implementation 'org.springframework.boot:spring-boot-starter-web'
Tang Cheng981f3552019-07-03 16:47:40 +080049 implementation 'org.springframework.boot:spring-boot-autoconfigure'
Tang Chenga8bc91e2019-04-15 22:30:15 +080050 implementation 'org.springframework.boot:spring-boot-starter-security'
Tang Cheng9a8551c2019-05-24 20:34:07 +080051 implementation 'org.springframework.security.oauth.boot:spring-security-oauth2-autoconfigure:2.0.1.RELEASE'
Xia Kaixiangbb33d9b2019-04-16 17:58:56 +080052 implementation 'org.springframework.boot:spring-boot-starter-thymeleaf'
Tang Cheng5fc59772019-05-13 21:17:08 +080053 implementation 'org.springframework.session:spring-session-data-redis'
Tang Cheng786af612019-05-28 10:16:40 +080054 implementation 'org.springframework.boot:spring-boot-starter-cache'
Tang Cheng5fc59772019-05-13 21:17:08 +080055 implementation 'org.springframework.social:spring-social-web:1.1.6.RELEASE'
Xia Kaixiang04f7b5b2019-04-08 17:56:29 +080056 implementation 'org.jetbrains.kotlin:kotlin-reflect'
57 implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk8'
Xia Kaixiang04f7b5b2019-04-08 17:56:29 +080058
Tang Cheng5fc59772019-05-13 21:17:08 +080059 implementation 'org.thymeleaf.extras:thymeleaf-extras-springsecurity5'
60
Tang Cheng0a0e4652019-04-16 11:16:12 +080061 implementation 'org.postgresql:postgresql:42.2.5'
Tang Cheng5fc59772019-05-13 21:17:08 +080062 implementation 'com.fasterxml.jackson.module:jackson-module-kotlin'
Tang Cheng0a0e4652019-04-16 11:16:12 +080063 implementation 'com.jcabi:jcabi-manifests:1.1'
Tang Chengd52ce952019-04-16 11:27:14 +080064 implementation 'org.bitbucket.b_c:jose4j:0.6.3'
Tang Cheng150b7402019-04-23 09:14:01 +080065 implementation 'io.github.microutils:kotlin-logging:1.6.26'
Tang Cheng5fc59772019-05-13 21:17:08 +080066 implementation 'org.slf4j:slf4j-parent:1.7.26'
Tang Cheng01a86722019-07-04 10:07:51 +080067 implementation 'redis.clients:jedis:2.9.3'
yang.liu4e2060e2019-06-13 16:08:51 +080068 implementation group: 'commons-lang', name:'commons-lang',version: '2.5'
Tang Cheng0a0e4652019-04-16 11:16:12 +080069 implementation group: 'com.google.code.gson', name: 'gson', version: '2.8.5'
70 implementation group: 'com.sun.jersey', name: 'jersey-client', version: '1.19'
Tang Cheng495e4aa2019-04-14 14:08:44 +080071 implementation group: 'javax.servlet', name: 'jstl', version: '1.2'
72 implementation group: 'taglibs', name: 'standard', version: '1.1.2'
Xia Kaixiange0a9bf82019-04-18 13:52:36 +080073 implementation group: 'commons-codec', name: 'commons-codec', version: '1.6'
Tang Cheng0a0e4652019-04-16 11:16:12 +080074 implementation files('libs/ojdbc6.jar')
qiaowei44c6bd72019-04-09 16:32:03 +080075
yang.liub5022f32019-06-18 10:54:17 +080076 implementation 'cn.afterturn:easypoi-web:3.0.3'
77 implementation 'cn.afterturn:easypoi-base:3.0.3'
78
Tang Cheng0a0e4652019-04-16 11:16:12 +080079
Tang Cheng628f7162019-04-16 22:59:02 +080080 annotationProcessor "org.springframework.boot:spring-boot-configuration-processor"
81
Tang Cheng0a0e4652019-04-16 11:16:12 +080082 testImplementation 'org.springframework.boot:spring-boot-starter-test'
Tang Cheng9171ea92019-04-24 11:55:35 +080083 testImplementation 'io.rest-assured:rest-assured:3.3.0'
84 testImplementation 'io.rest-assured:spring-mock-mvc:3.3.0'
85 testImplementation 'org.hamcrest:hamcrest:2.1'
Xia Kaixiang04f7b5b2019-04-08 17:56:29 +080086}
87
88compileKotlin {
89 kotlinOptions {
90 freeCompilerArgs = ['-Xjsr305=strict']
Tang Cheng6427f002019-04-09 13:10:47 +080091 jvmTarget = jdkVersion
Xia Kaixiang04f7b5b2019-04-08 17:56:29 +080092 }
93}
94
95compileTestKotlin {
96 kotlinOptions {
97 freeCompilerArgs = ['-Xjsr305=strict']
Tang Cheng6427f002019-04-09 13:10:47 +080098 jvmTarget = jdkVersion
Xia Kaixiang04f7b5b2019-04-08 17:56:29 +080099 }
100}