Tang Cheng | 94cf0bb | 2019-07-08 13:12:50 +0800 | [diff] [blame] | 1 | plugins { |
Tang Cheng | 73e2cad | 2019-07-10 09:30:23 +0800 | [diff] [blame^] | 2 | id 'java-library' |
| 3 | id 'maven-publish' |
| 4 | id "com.palantir.git-version" version "0.12.0-rc2" |
| 5 | } |
| 6 | |
| 7 | group = rootProject.group |
| 8 | version = gitVersion() |
| 9 | |
| 10 | publishing { |
| 11 | publications { |
| 12 | mavenJava(MavenPublication) { |
| 13 | groupId = project.group |
| 14 | artifactId = project.name |
| 15 | version = version |
| 16 | from components.java |
| 17 | } |
| 18 | } |
| 19 | repositories { |
| 20 | maven { |
| 21 | // change URLs to point to your repos, e.g. http://my.org/repo |
| 22 | def releasesRepoUrl = "http://ykt-nx.supwisdom.com/repository/ecard-repo/" |
| 23 | def snapshotsRepoUrl = "http://ykt-nx.supwisdom.com/repository/ecard-repo/snapshot/" |
| 24 | url = version.endsWith('dirty') ? snapshotsRepoUrl : releasesRepoUrl |
| 25 | credentials(PasswordCredentials) { |
| 26 | username = nxUser |
| 27 | password = nxPassword |
| 28 | } |
| 29 | } |
| 30 | } |
Tang Cheng | 94cf0bb | 2019-07-08 13:12:50 +0800 | [diff] [blame] | 31 | } |
| 32 | |
| 33 | dependencies { |
| 34 | implementation 'org.slf4j:slf4j-parent:1.7.26' |
| 35 | implementation 'org.slf4j:slf4j-api:1.7.26' |
| 36 | implementation 'javax.validation:validation-api:2.0.1.Final' |
Tang Cheng | f0c4bd8 | 2019-07-08 15:56:05 +0800 | [diff] [blame] | 37 | implementation 'javax.servlet:javax.servlet-api:4.0.1' |
Tang Cheng | e1c76d4 | 2019-07-09 11:03:04 +0800 | [diff] [blame] | 38 | implementation 'commons-beanutils:commons-beanutils:1.9.3' |
Tang Cheng | d2c0a86 | 2019-07-09 16:30:30 +0800 | [diff] [blame] | 39 | implementation('org.springframework.boot:spring-boot-starter-validation:2.1.6.RELEASE') |
| 40 | |
| 41 | implementation 'org.hibernate:hibernate-validator:6.0.2.Final' |
| 42 | compile 'javax.el:javax.el-api:3.0.0' |
| 43 | compile 'org.glassfish.web:javax.el:2.2.6' |
Tang Cheng | 94cf0bb | 2019-07-08 13:12:50 +0800 | [diff] [blame] | 44 | |
| 45 | compileOnly 'org.projectlombok:lombok:1.18.8' |
| 46 | annotationProcessor 'org.projectlombok:lombok:1.18.8' |
| 47 | |
| 48 | implementation 'org.apache.commons:commons-lang3:3.9' |
Tang Cheng | d2c0a86 | 2019-07-09 16:30:30 +0800 | [diff] [blame] | 49 | |
| 50 | testImplementation 'junit:junit:4.12' |
Tang Cheng | 94cf0bb | 2019-07-08 13:12:50 +0800 | [diff] [blame] | 51 | } |