-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
92 lines (73 loc) · 1.84 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
buildscript {
repositories {
jcenter()
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.4'
}
}
plugins {
id 'org.sonarqube' version '2.6.2'
}
group = 'com.github.yaroslav-orel'
version = '1.1.2'
description 'Convenient TestNG Listeners'
ext {
gradleScriptDir = "${rootProject.projectDir}/gradle"
projectUrl = "https://github.com/yaroslav-orel/ExtendNG"
}
apply plugin: 'java'
apply plugin: "jacoco"
apply plugin: 'maven'
apply plugin: 'maven-publish'
apply from: "${gradleScriptDir}/bintray.gradle"
apply from: "${gradleScriptDir}/maven-publish.gradle"
sourceCompatibility = 1.8
repositories {
jcenter()
}
dependencies {
compile 'org.testng:testng:6.14.3'
compile 'com.google.guava:guava:26.0-jre'
compile 'org.apache.commons:commons-lang3:3.8'
compile 'com.github.wmacevoy:kiss:1.0'
compile 'org.projectlombok:lombok:1.18.2'
compile 'one.util:streamex:0.6.7'
compile 'io.vavr:vavr:0.9.2'
compile 'com.google.inject:guice:4.2.0:no_aop'
testCompile 'org.mockito:mockito-core:2.21.0'
testCompile 'org.assertj:assertj-core:3.11.1'
}
jacoco {
toolVersion = '0.8.2'
}
sonarqube {
properties {
property "sonar.junit.reportPaths" , "${project.buildDir}/test-results/test"
property "sonar.jacoco.reportPaths", "${project.buildDir}/jacoco/test.exec"
}
}
test{
useTestNG()
filter{
includeTestsMatching 'unit.*'
includeTestsMatching 'end.to.end.*'
}
}
task wrapper(type: Wrapper) {
gradleVersion = '4.10'
}
task javadocJar(type: Jar) {
classifier = 'javadoc'
from javadoc
}
task sourcesJar(type: Jar) {
classifier = 'sources'
from sourceSets.main.allSource
}
artifacts {
archives javadocJar, sourcesJar
}