forked from noconnor/JUnitPerf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
114 lines (93 loc) · 3.05 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'maven-publish'
apply plugin: 'signing'
apply plugin: 'jacoco'
group = 'com.github.noconnor'
sourceCompatibility = 1.8
// http://semver.org/
version = '1.11.0'
repositories {
mavenCentral()
jcenter()
}
dependencies {
compile "org.apache.commons:commons-lang3:3.4"
compile "ch.qos.logback:logback-classic:1.1.3"
compile "com.google.guava:guava:19.0"
compile "commons-collections:commons-collections:3.2.2"
compile 'junit:junit:4.12'
compile 'org.apache.commons:commons-math3:3.6.1'
// Reporting
compile "org.jtwig:jtwig-core:5.86.1.RELEASE"
compileOnly "org.projectlombok:lombok:1.16.18"
testCompile 'org.mockito:mockito-core:2.11.0'
testCompile "org.hamcrest:hamcrest-junit:2.0.0.0"
}
jar {
baseName "junitperf"
duplicatesStrategy "exclude"
}
task javadocJar(type: Jar) {
from javadoc.destinationDir
classifier = 'javadoc'
}
task sourcesJar(type: Jar) {
classifier = 'sources'
from sourceSets.main.allSource
}
artifacts {
archives sourcesJar
archives javadocJar
}
// http://blog.sonatype.com/2010/01/how-to-generate-pgp-signatures-with-maven/
signing {
sign configurations.archives
}
// http://central.sonatype.org/pages/gradle.html
uploadArchives {
repositories {
mavenDeployer {
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }
repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2/") {
authentication(userName: findProperty('ossrhUsername'), password: findProperty('ossrhPassword'))
}
snapshotRepository(url: "https://oss.sonatype.org/content/repositories/snapshots/") {
authentication(userName: findProperty('ossrhUsername'), password: findProperty('ossrhPassword'))
}
pom.project {
name 'junitperf'
artifactId 'junitperf'
packaging 'jar'
// optionally artifactId can be defined here
description 'API performance testing framework built using JUnit'
url 'https://github.com/noconnor/JUnitPerf'
licenses {
license {
name 'The Apache License, Version 2.0'
url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
}
}
scm {
connection 'scm:[email protected]:noconnor/JUnitPerf.git'
developerConnection 'scm:[email protected]:noconnor/JUnitPerf.git'
url '[email protected]:noconnor/JUnitPerf.git'
}
developers {
developer {
id 'noconnor'
name 'noconnor'
email '[email protected]'
}
}
}
}
}
}
jacocoTestReport {
reports {
xml.enabled true
html.enabled false
}
}
check.dependsOn jacocoTestReport