sijun.li | 9646230 | 2020-07-24 10:08:05 +0800 | [diff] [blame] | 1 | plugins { |
| 2 | id 'java' |
| 3 | id 'org.springframework.boot' |
| 4 | id 'org.jetbrains.kotlin.jvm' |
| 5 | id 'org.jetbrains.kotlin.plugin.spring' |
| 6 | id 'org.jetbrains.kotlin.plugin.jpa' version '1.3.31' |
| 7 | id 'io.spring.dependency-management' |
sijun.li | 7531fd1 | 2020-09-10 14:37:35 +0800 | [diff] [blame] | 8 | id 'com.palantir.docker' version '0.22.1' |
sijun.li | 9646230 | 2020-07-24 10:08:05 +0800 | [diff] [blame] | 9 | } |
| 10 | |
sijun.li | 7531fd1 | 2020-09-10 14:37:35 +0800 | [diff] [blame] | 11 | docker { |
| 12 | name 'harbor.supwisdom.com/dali/portal:' + version |
| 13 | println(jar.archivePath) |
| 14 | files jar.archivePath |
| 15 | } |
| 16 | |
| 17 | docker.dependsOn(jar) |
| 18 | |
| 19 | archivesBaseName = 'portal' |
sijun.li | 9646230 | 2020-07-24 10:08:05 +0800 | [diff] [blame] | 20 | group 'com.supwisdom.dlpay' |
sijun.li | 7531fd1 | 2020-09-10 14:37:35 +0800 | [diff] [blame] | 21 | version '1.0' |
sijun.li | 9646230 | 2020-07-24 10:08:05 +0800 | [diff] [blame] | 22 | |
| 23 | sourceCompatibility = 1.8 |
| 24 | |
| 25 | repositories { |
| 26 | mavenCentral() |
| 27 | } |
| 28 | |
| 29 | ext { |
| 30 | set('springCloudVersion', "Greenwich.SR2") |
| 31 | } |
| 32 | |
| 33 | dependencies { |
| 34 | implementation 'org.springframework.boot:spring-boot-starter-data-jpa' |
| 35 | implementation 'org.springframework.boot:spring-boot-starter-data-redis' |
| 36 | implementation 'org.springframework.boot:spring-boot-starter-web' |
| 37 | implementation 'org.springframework.boot:spring-boot-starter-security' |
| 38 | implementation 'org.springframework.boot:spring-boot-starter-cache' |
| 39 | implementation 'org.springframework.boot:spring-boot-autoconfigure' |
| 40 | implementation 'org.springframework.security:spring-security-oauth2-jose' |
| 41 | implementation 'org.springframework.security:spring-security-oauth2-client' |
| 42 | implementation 'org.springframework.security:spring-security-oauth2-jose' |
| 43 | implementation 'org.springframework.security.oauth.boot:spring-security-oauth2-autoconfigure:2.1.5.RELEASE' |
| 44 | implementation 'org.springframework.session:spring-session-data-redis' |
| 45 | implementation 'org.springframework.boot:spring-boot-starter-cache' |
| 46 | implementation 'org.springframework.kafka:spring-kafka' |
| 47 | implementation 'org.springframework.social:spring-social-web:1.1.6.RELEASE' |
| 48 | implementation 'org.springframework.kafka:spring-kafka:2.2.8.RELEASE' |
| 49 | implementation 'org.jetbrains.kotlin:kotlin-reflect' |
| 50 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8" |
| 51 | implementation 'net.javacrumbs.shedlock:shedlock-spring:2.5.0' |
| 52 | implementation 'net.javacrumbs.shedlock:shedlock-provider-redis-spring:2.5.0' |
| 53 | |
| 54 | implementation 'org.postgresql:postgresql:42.2.5' |
| 55 | |
| 56 | implementation 'org.springframework.cloud:spring-cloud-starter' |
| 57 | implementation 'org.springframework.cloud:spring-cloud-starter-consul-discovery' |
| 58 | implementation 'org.springframework.cloud:spring-cloud-starter-netflix-hystrix' |
| 59 | implementation 'org.springframework.cloud:spring-cloud-starter-netflix-hystrix-dashboard' |
| 60 | |
| 61 | implementation 'org.bitbucket.b_c:jose4j:0.6.5' |
| 62 | implementation 'io.github.microutils:kotlin-logging:1.6.26' |
| 63 | implementation files('libs/masmgc.sdk.sms-0.0.1-SNAPSHOT.jar') |
| 64 | implementation 'commons-beanutils:commons-beanutils:1.9.3' |
| 65 | |
| 66 | implementation 'com.alibaba:fastjson:1.2.60' |
| 67 | |
| 68 | implementation 'com.github.penggle:kaptcha:2.3.2' |
| 69 | |
| 70 | testCompile group: 'junit', name: 'junit', version: '4.12' |
sijun.li | bc77762 | 2020-08-28 18:08:54 +0800 | [diff] [blame] | 71 | |
| 72 | compile group: 'net.coobird', name: 'thumbnailator', version: '0.4.8' |
| 73 | compile group: 'com.sun.jersey.contribs', name: 'jersey-multipart', version: '1.19.3' |
| 74 | compile group: 'org.apache.logging.log4j', name: 'log4j-core', version: '2.9.1' |
| 75 | compile group: 'log4j', name: 'log4j', version: '1.2.17' |
sijun.li | f6e508e | 2020-09-18 17:47:59 +0800 | [diff] [blame] | 76 | |
sijun.li | 607d7ec | 2021-01-27 15:38:56 +0800 | [diff] [blame] | 77 | compile group: 'com.supwisdom', name: 'payapi-sdk', version: '1.0.30-1-g0f6aba8' |
sijun.li | f6e508e | 2020-09-18 17:47:59 +0800 | [diff] [blame] | 78 | |
| 79 | implementation 'org.hamcrest:hamcrest:2.1' |
sijun.li | 9646230 | 2020-07-24 10:08:05 +0800 | [diff] [blame] | 80 | } |
| 81 | |
| 82 | dependencyManagement { |
| 83 | imports { |
| 84 | mavenBom "org.springframework.cloud:spring-cloud-dependencies:${springCloudVersion}" |
| 85 | } |
| 86 | } |
| 87 | |
| 88 | compileKotlin { |
| 89 | kotlinOptions.jvmTarget = "1.8" |
| 90 | } |
| 91 | compileTestKotlin { |
| 92 | kotlinOptions.jvmTarget = "1.8" |
sijun.li | f6e508e | 2020-09-18 17:47:59 +0800 | [diff] [blame] | 93 | } |
| 94 | |
| 95 | repositories { |
| 96 | mavenCentral() |
| 97 | maven { |
| 98 | url "http://ykt-nx.supwisdom.com/repository/ecard-repo/" |
| 99 | credentials { |
| 100 | username 'ecard' |
| 101 | password 'Ecard4SUP' |
| 102 | } |
| 103 | } |
sijun.li | 9646230 | 2020-07-24 10:08:05 +0800 | [diff] [blame] | 104 | } |