-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
76 lines (65 loc) · 2.19 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
group 'com.myunidays'
version '1.0-SNAPSHOT'
apply plugin: 'java-library'
apply plugin: 'maven-publish'
sourceCompatibility = 1.8
ext {
repoPassword = project.hasProperty('repoPassword') ? project.getProperty('repoPassword') : ''
}
repositories {
mavenCentral()
}
dependencies {
testCompile group: 'junit', name: 'junit', version: '4.12'
testCompile group: 'org.mockito', name: 'mockito-core', version: '2.+'
compile group: 'commons-codec', name: 'commons-codec', version: '1.11'
compile group: 'org.apache.httpcomponents', name: 'httpasyncclient', version: '4.1.4'
}
task sourceJar(type: Jar) {
from sourceSets.main.allJava
classifier "sources"
}
task javadocJar(type: Jar) {
from javadoc
classifier = 'javadoc'
}
publishing {
publications {
maven(MavenPublication) {
from components.java
artifact sourceJar
artifact javadocJar
pom {
name = "UNiDAYS Tracking API client"
description = "UNiDAYS Tracking API client"
licenses {
license {
name = "MIT"
url = "https://github.com/MyUNiDAYS/unidays-java/blob/master/LICENSE"
}
}
developers {
developer {
name = 'Unidays Developer'
email = '[email protected]'
}
}
scm {
url = "https://github.com/MyUNiDAYS/unidays-java"
connection = 'scm:git:https://github.com/MyUNiDAYS/unidays-java.git'
}
}
}
}
repositories {
maven {
def releasesRepoUrl = 'https://oss.sonatype.org/content/repositories/releases/'
def snapshotsRepoUrl = 'https://oss.sonatype.org/content/repositories/snapshots/'
url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl
credentials {
username 'mg67Hpyo'
password project.repoPassword
}
}
}
}