Tang Cheng | e7d3a0e | 2019-07-08 16:27:33 +0800 | [diff] [blame] | 1 | plugins { |
| 2 | id 'java' |
Tang Cheng | 2273131 | 2019-07-12 11:19:30 +0800 | [diff] [blame] | 3 | id 'org.springframework.boot' |
| 4 | id 'org.jetbrains.kotlin.jvm' |
Tang Cheng | e7d3a0e | 2019-07-08 16:27:33 +0800 | [diff] [blame] | 5 | id 'org.jetbrains.kotlin.plugin.jpa' version '1.3.31' |
Tang Cheng | 2273131 | 2019-07-12 11:19:30 +0800 | [diff] [blame] | 6 | id 'org.jetbrains.kotlin.plugin.spring' |
| 7 | id "com.palantir.git-version" |
| 8 | id 'com.palantir.docker' |
Tang Cheng | e7d3a0e | 2019-07-08 16:27:33 +0800 | [diff] [blame] | 9 | } |
| 10 | |
| 11 | apply plugin: 'java' |
| 12 | apply plugin: 'io.spring.dependency-management' |
| 13 | |
| 14 | payapiVersion = gitVersion() |
| 15 | |
Tang Cheng | 40993e1 | 2019-07-08 16:38:51 +0800 | [diff] [blame] | 16 | group = rootProject.group |
Tang Cheng | e7d3a0e | 2019-07-08 16:27:33 +0800 | [diff] [blame] | 17 | version = '1' |
| 18 | sourceCompatibility = jdkVersion |
Tang Cheng | 8beabcd | 2019-07-12 11:48:01 +0800 | [diff] [blame] | 19 | def payapiStartClass = 'com.supwisdom.dlpay.PayApiApplicationKt' |
Tang Cheng | e7d3a0e | 2019-07-08 16:27:33 +0800 | [diff] [blame] | 20 | |
| 21 | println("Build version: $payapiVersion") |
Tang Cheng | e7d3a0e | 2019-07-08 16:27:33 +0800 | [diff] [blame] | 22 | |
| 23 | bootJar { |
Tang Cheng | 8beabcd | 2019-07-12 11:48:01 +0800 | [diff] [blame] | 24 | mainClassName = payapiStartClass |
Tang Cheng | e7d3a0e | 2019-07-08 16:27:33 +0800 | [diff] [blame] | 25 | manifest { |
| 26 | attributes('Payapi-Version': payapiVersion) |
| 27 | } |
| 28 | } |
| 29 | |
| 30 | jar { |
| 31 | baseName = 'payapi' |
| 32 | } |
| 33 | |
| 34 | docker { |
| 35 | name 'harbor.supwisdom.com/dali/payapi:' + version |
| 36 | println(jar.archivePath) |
| 37 | files jar.archivePath |
| 38 | } |
| 39 | |
| 40 | docker.dependsOn(jar) |
| 41 | |
| 42 | dependencies { |
| 43 | implementation 'org.springframework.boot:spring-boot-starter-data-jpa' |
| 44 | implementation 'org.springframework.boot:spring-boot-starter-data-redis' |
| 45 | implementation 'org.springframework.boot:spring-boot-starter-web' |
| 46 | implementation 'org.springframework.boot:spring-boot-starter-security' |
| 47 | implementation 'org.springframework.boot:spring-boot-starter-cache' |
| 48 | implementation 'org.springframework.boot:spring-boot-autoconfigure' |
| 49 | implementation 'org.springframework.security:spring-security-oauth2-jose' |
| 50 | implementation 'org.springframework.security:spring-security-oauth2-client' |
| 51 | implementation 'org.springframework.security:spring-security-oauth2-jose' |
| 52 | implementation 'org.springframework.security.oauth.boot:spring-security-oauth2-autoconfigure:2.1.5.RELEASE' |
| 53 | implementation 'org.springframework.boot:spring-boot-starter-thymeleaf' |
| 54 | implementation 'org.springframework.session:spring-session-data-redis' |
| 55 | implementation 'org.springframework.boot:spring-boot-starter-cache' |
| 56 | implementation 'org.springframework.social:spring-social-web:1.1.6.RELEASE' |
| 57 | implementation 'org.jetbrains.kotlin:kotlin-reflect' |
| 58 | implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk8' |
| 59 | implementation 'commons-codec:commons-codec:1.12' |
Tang Cheng | e743634 | 2019-07-11 16:04:58 +0800 | [diff] [blame] | 60 | implementation 'org.apache.commons:commons-lang3:3.9' |
Tang Cheng | acb93a6 | 2019-07-18 22:04:48 +0800 | [diff] [blame] | 61 | implementation 'net.javacrumbs.shedlock:shedlock-spring:2.5.0' |
| 62 | implementation 'net.javacrumbs.shedlock:shedlock-provider-redis-spring:2.5.0' |
Tang Cheng | e7d3a0e | 2019-07-08 16:27:33 +0800 | [diff] [blame] | 63 | |
| 64 | implementation 'org.springframework.cloud:spring-cloud-starter-consul-discovery:2.1.2.RELEASE' |
| 65 | |
| 66 | implementation 'org.thymeleaf.extras:thymeleaf-extras-springsecurity5' |
| 67 | |
| 68 | runtime("org.springframework.boot:spring-boot-devtools") |
| 69 | |
| 70 | implementation 'org.postgresql:postgresql:42.2.5' |
| 71 | implementation 'com.fasterxml.jackson.module:jackson-module-kotlin' |
| 72 | implementation 'com.jcabi:jcabi-manifests:1.1' |
Tang Cheng | e0537a7 | 2019-07-13 12:52:07 +0800 | [diff] [blame] | 73 | implementation 'org.bitbucket.b_c:jose4j:0.6.5' |
Tang Cheng | e7d3a0e | 2019-07-08 16:27:33 +0800 | [diff] [blame] | 74 | implementation 'io.github.microutils:kotlin-logging:1.6.26' |
| 75 | implementation 'org.slf4j:slf4j-parent:1.7.26' |
| 76 | implementation 'com.github.penggle:kaptcha:2.3.2' |
| 77 | implementation group: 'com.google.code.gson', name: 'gson', version: '2.8.5' |
| 78 | implementation group: 'com.sun.jersey', name: 'jersey-client', version: '1.19' |
| 79 | implementation group: 'javax.servlet', name: 'jstl', version: '1.2' |
| 80 | implementation group: 'taglibs', name: 'standard', version: '1.1.2' |
| 81 | implementation group: 'commons-codec', name: 'commons-codec', version: '1.6' |
Tang Cheng | e0537a7 | 2019-07-13 12:52:07 +0800 | [diff] [blame] | 82 | // implementation files('libs/ojdbc6.jar') |
Tang Cheng | e7d3a0e | 2019-07-08 16:27:33 +0800 | [diff] [blame] | 83 | implementation 'commons-dbcp:commons-dbcp:1.4' |
| 84 | |
Tang Cheng | 13911f9 | 2019-07-10 09:38:32 +0800 | [diff] [blame] | 85 | implementation project(':payapi-common') |
qiaowei | 1657eef | 2019-07-22 17:50:33 +0800 | [diff] [blame] | 86 | /*支付宝SDK*/ |
| 87 | implementation group: 'com.alipay.sdk', name: 'alipay-sdk-java', version: '3.7.110.ALL' |
Tang Cheng | e7d3a0e | 2019-07-08 16:27:33 +0800 | [diff] [blame] | 88 | |
| 89 | annotationProcessor "org.springframework.boot:spring-boot-configuration-processor" |
| 90 | annotationProcessor 'org.projectlombok:lombok:1.18.8' |
| 91 | compileOnly 'org.projectlombok:lombok:1.18.8' |
| 92 | |
| 93 | // providedRuntime 'org.springframework.boot:spring-boot-starter-tomcat' |
| 94 | testImplementation 'org.springframework.boot:spring-boot-starter-test' |
| 95 | testImplementation 'io.rest-assured:rest-assured:3.3.0' |
| 96 | testImplementation 'io.rest-assured:spring-mock-mvc:3.3.0' |
| 97 | testImplementation 'org.hamcrest:hamcrest:2.1' |
| 98 | } |
| 99 | |
| 100 | compileKotlin { |
| 101 | kotlinOptions { |
| 102 | freeCompilerArgs = ['-Xjsr305=strict'] |
| 103 | jvmTarget = jdkVersion |
| 104 | } |
| 105 | } |
| 106 | |
| 107 | compileTestKotlin { |
| 108 | kotlinOptions { |
| 109 | freeCompilerArgs = ['-Xjsr305=strict'] |
| 110 | jvmTarget = jdkVersion |
| 111 | } |
| 112 | } |