Tang Cheng | 94cf0bb | 2019-07-08 13:12:50 +0800 | [diff] [blame] | 1 | plugins { |
Tang Cheng | 790bb84 | 2019-12-16 08:59:52 +0800 | [diff] [blame^] | 2 | id "java-library" |
| 3 | id "maven-publish" |
| 4 | id "org.springframework.boot" |
Tang Cheng | 73e2cad | 2019-07-10 09:30:23 +0800 | [diff] [blame] | 5 | } |
| 6 | |
Tang Cheng | 790bb84 | 2019-12-16 08:59:52 +0800 | [diff] [blame^] | 7 | bootJar { |
| 8 | enabled = false |
| 9 | } |
Tang Cheng | 73e2cad | 2019-07-10 09:30:23 +0800 | [diff] [blame] | 10 | |
| 11 | publishing { |
| 12 | publications { |
| 13 | mavenJava(MavenPublication) { |
| 14 | groupId = project.group |
| 15 | artifactId = project.name |
| 16 | version = version |
| 17 | from components.java |
| 18 | } |
| 19 | } |
| 20 | repositories { |
| 21 | maven { |
| 22 | // change URLs to point to your repos, e.g. http://my.org/repo |
| 23 | def releasesRepoUrl = "http://ykt-nx.supwisdom.com/repository/ecard-repo/" |
| 24 | def snapshotsRepoUrl = "http://ykt-nx.supwisdom.com/repository/ecard-repo/snapshot/" |
Tang Cheng | 790bb84 | 2019-12-16 08:59:52 +0800 | [diff] [blame^] | 25 | url = version.endsWith("dirty") ? snapshotsRepoUrl : releasesRepoUrl |
Tang Cheng | 73e2cad | 2019-07-10 09:30:23 +0800 | [diff] [blame] | 26 | credentials(PasswordCredentials) { |
| 27 | username = nxUser |
| 28 | password = nxPassword |
| 29 | } |
| 30 | } |
| 31 | } |
Tang Cheng | 94cf0bb | 2019-07-08 13:12:50 +0800 | [diff] [blame] | 32 | } |
| 33 | |
| 34 | dependencies { |
Tang Cheng | 790bb84 | 2019-12-16 08:59:52 +0800 | [diff] [blame^] | 35 | implementation "commons-beanutils:commons-beanutils:${beanutilsVersion}" |
| 36 | implementation "commons-codec:commons-codec:${codecVersion}" |
| 37 | implementation "org.apache.commons:commons-lang3:${lang3Version}" |
Tang Cheng | d2c0a86 | 2019-07-09 16:30:30 +0800 | [diff] [blame] | 38 | |
Tang Cheng | 790bb84 | 2019-12-16 08:59:52 +0800 | [diff] [blame^] | 39 | compileOnly "org.projectlombok:lombok:${lombokVersion}" |
| 40 | annotationProcessor "org.projectlombok:lombok:${lombokVersion}" |
Tang Cheng | 94cf0bb | 2019-07-08 13:12:50 +0800 | [diff] [blame] | 41 | } |