-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
52 lines (42 loc) · 1.28 KB
/
build.gradle
File metadata and controls
52 lines (42 loc) · 1.28 KB
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
apply plugin: 'java-library'
apply plugin : 'maven'
apply plugin: 'jacoco'
sourceCompatibility = 1.8
group 'object.diff'
version = '1.0-SNAPSHOT'
jar {
manifest {
attributes 'Implementation-Title': 'object-diff', 'Implementation-Version': version
}
}
repositories {
mavenCentral()
}
test {
useTestNG() {
useDefaultListeners = true
}
}
jacocoTestReport {
group = "Reporting"
description = "Generate Jacoco coverage reports after running tests."
additionalSourceDirs = files(sourceSets.main.allJava.srcDirs)
}
dependencies {
compile group: 'org.apache.commons', name: 'commons-lang3', version: '3.0'
testCompile group: 'org.testng', name: 'testng', version: '6.11'
testCompile group: 'org.hamcrest', name: 'hamcrest-all', version: '1.3'
testCompile group: 'org.mockito', name: 'mockito-all', version: '1.8.4'
}
uploadArchives {
repositories {
mavenDeployer {
repository(url: 'http://10.16.32.50:8081/repository/maven-releases/') {
authentication(userName: 'admin', password: 'admin123');
}
snapshotRepository(url: 'http://10.16.32.50:8081/repository/maven-snapshots/') {
authentication(userName: 'admin', password: 'admin123');
}
}
}
}