blob: 4132b5540d37b1456c4f7a03bc3cd670b5ef3710 [file] [log] [blame]
Xia Kaixiang80f1e9d2020-02-18 17:40:20 +08001plugins {
2 id 'java'
3 id 'maven-publish'
4 id "com.palantir.git-version"
kaixiang.xiaee5d5d82020-07-08 14:57:37 +08005 id "org.springframework.boot"
Xia Kaixiang80f1e9d2020-02-18 17:40:20 +08006}
7
8group = rootProject.group
9
10def sdkVersion = gitVersion()
11sourceCompatibility = 1.8
12targetCompatibility = 1.8
13
14publishing {
15 publications {
16 mavenJava(MavenPublication) {
17 groupId = project.group
18 artifactId = 'bus-qrcode'
19 version = sdkVersion
20 from components.java
21 }
22 }
23 repositories {
24 maven {
25 // change URLs to point to your repos, e.g. http://my.org/repo
26 def releasesRepoUrl = "http://ykt-nx.supwisdom.com/repository/ecard-repo/"
27 def snapshotsRepoUrl = "http://ykt-nx.supwisdom.com/repository/ecard-repo/snapshot/"
28 url = version.endsWith('dirty') ? snapshotsRepoUrl : releasesRepoUrl
29 credentials(PasswordCredentials) {
30 username = nxUser
31 password = nxPassword
32 }
33 }
34 }
35}
36
37dependencies {
38 implementation "org.apache.commons:commons-lang3:3.7"
39 implementation 'com.eatthepath:java-otp:0.1.0'
40 implementation 'org.slf4j:slf4j-api:1.7.25'
41 implementation 'commons-codec:commons-codec:1.9'
42 runtime 'org.slf4j:slf4j-parent:1.7.25'
43 runtime 'org.slf4j:slf4j-simple:1.7.25'
44 testImplementation 'junit:junit:4.12'
45}
46
47jar {
48 enabled = true
49 baseName = "bus-qrcode"
50 manifest {
51 attributes('Bus-QRcode-Version': sdkVersion)
52 }
53}
54
55publish.dependsOn(jar)
binquan.qiuu6cf8c4f2020-07-08 11:17:48 +080056
57tasks.withType(JavaCompile) {
58 options.encoding = "UTF-8"
59}