-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
92 lines (76 loc) · 1.83 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
plugins {
id "org.sonarqube" version "1.0"
}
apply plugin : 'java'
apply plugin : 'jacoco'
apply plugin : 'maven'
group = 'com.github.rexVictor'
sourceCompatibility = 1.8
targetCompatibility = 1.8
jacoco {
toolVersion = "0.7.5.201505241946"
}
sonarqube {
properties {
property "sonar.jdbc.username", "sonarqube"
property "sonar.jdbc.password", "sonarqube"
property "sonar.jdbc.url","jdbc:postgresql://rexis-server/sonarqube"
property "sonar.jacoco.reportPath", "$buildDir/jacoco/jacocoTest.exec"
property "sonar.host.url", "http://regina:9000"
}
}
tasks.sonarqube.dependsOn = []
repositories {
mavenCentral()
maven { url "https://jitpack.io" }
}
dependencies {
testCompile "org.testng:testng:+"
testCompile "com.github.rexVictor:testHelp:-SNAPSHOT"
}
test {
useTestNG() {
}
jacoco {
destinationFile = file("$buildDir/jacoco/jacocoTest.exec")
}
}
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
task developerDoc(type: Javadoc) {
source = sourceSets.main.allJava
options.memberLevel = JavadocMemberLevel.PRIVATE
classpath = configurations.compile
destinationDir = file("devDoc/")
}
clean {
delete "doc"
delete "devDoc"
}
javadoc {
destinationDir = file("doc/")
}
artifacts {
archives sourcesJar
archives javadocJar
}
install {
repositories.mavenInstaller {
pom.project {
licenses {
license {
name 'The GNU General Public License, Version 3.0'
url 'http://www.gnu.org/licenses/gpl-3.0.txt'
distribution 'repo'
}
}
}
}
}
// vim:set shiftwidth=4 softtabstop=4 expandtab: