blob: 9e08338e8cc3895256d3903a3117ffd18923b1d8 [file] [log] [blame]
Tang Chengdc148412019-07-08 09:15:47 +08001plugins {
Tang Chengbc96b232019-07-08 16:20:11 +08002 id 'java-library'
Tang Cheng5b48e7b2019-07-08 15:56:05 +08003 id 'maven-publish'
Tang Chengef730842019-07-08 16:35:42 +08004 id 'org.springframework.boot' version '2.1.6.RELEASE'
5 id "com.palantir.git-version" version "0.12.0-rc2"
Tang Chengdc148412019-07-08 09:15:47 +08006}
7
8
9apply plugin: 'io.spring.dependency-management'
10
Tang Chengbc96b232019-07-08 16:20:11 +080011def sdkVersion = gitVersion()
Tang Cheng5b48e7b2019-07-08 15:56:05 +080012
13publishing {
14 publications {
15 mavenJava(MavenPublication) {
16 groupId = project.group
17 artifactId = 'payapi-sdk'
18 version = sdkVersion
19 from components.java
20 }
21 }
22 repositories {
23 maven {
24 // change URLs to point to your repos, e.g. http://my.org/repo
25 def releasesRepoUrl = "http://ykt-nx.supwisdom.com/repository/ecard-repo/"
26 def snapshotsRepoUrl = "http://ykt-nx.supwisdom.com/repository/ecard-repo/snapshot/"
27 url = version.endsWith('dirty') ? snapshotsRepoUrl : releasesRepoUrl
28 credentials(PasswordCredentials) {
29 username = nxUser
30 password = nxPassword
31 }
32 }
33 }
34}
35
Tang Chengef730842019-07-08 16:35:42 +080036bootJar {
37 enabled = false
38}
39
Tang Cheng5b48e7b2019-07-08 15:56:05 +080040jar {
Tang Chengef730842019-07-08 16:35:42 +080041 enabled = true
Tang Chengbc96b232019-07-08 16:20:11 +080042 baseName = "payapi-sdk"
Tang Cheng5b48e7b2019-07-08 15:56:05 +080043 manifest {
44 attributes('Payapi-SDK-Version': sdkVersion)
45 }
46}
47
Tang Chengdc148412019-07-08 09:15:47 +080048dependencies {
49 implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
50 implementation 'org.springframework.boot:spring-boot-starter-data-redis'
51
Tang Cheng800e49b2019-07-08 13:12:50 +080052 implementation project(':common')
53
Tang Chengdc148412019-07-08 09:15:47 +080054 implementation 'org.springframework.cloud:spring-cloud-dependencies:Finchley.SR3'
55 implementation 'org.springframework.cloud:spring-cloud-starter-openfeign:2.1.2.RELEASE'
Tang Cheng5b48e7b2019-07-08 15:56:05 +080056
57 implementation 'javax.servlet:javax.servlet-api:4.0.1'
58
59 testImplementation 'org.springframework:spring-test'
60 testImplementation 'org.springframework.boot:spring-boot-test'
61 testImplementation 'junit:junit:4.12'
62 testImplementation project(':common')
63
Tang Chengdc148412019-07-08 09:15:47 +080064}