-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
84 lines (72 loc) · 2.11 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
buildscript {
repositories {
mavenLocal()
jcenter()
mavenCentral()
}
dependencies {
classpath 'org.jfrog.buildinfo:build-info-extractor-gradle:3.1.1'
classpath 'com.github.jengelman.gradle.plugins:shadow:1.2.3'
}
}
apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'maven-publish'
apply plugin: 'com.jfrog.artifactory'
apply plugin: 'com.github.johnrengelman.shadow'
apply plugin: 'checkstyle'
apply plugin: 'jacoco'
apply from: "$rootDir/gradle/additional-artifacts.gradle"
apply from: "$rootDir/gradle/dependencies.gradle"
apply from: "$rootDir/gradle/documentation.gradle"
apply from: "$rootDir/gradle/publishing.gradle"
apply from: "$rootDir/gradle/release.gradle"
repositories {
mavenLocal()
jcenter()
mavenCentral()
}
dependencies {
compile 'com.google.code.findbugs:jsr305:3.0.1'
compile 'com.google.inject:guice:4.1.0'
compile 'io.github.lukehutch:fast-classpath-scanner:2.0.6'
compile 'javax.inject:javax.inject:1'
compile 'net.jodah:failsafe:1.0.0'
compile 'com.github:pipeline-processor:0.0.2-SNAPSHOT'
compile 'org.slf4j:slf4j-api:1.7.21'
testCompile ('org.testng:testng:6.8.21')
testCompile ('org.assertj:assertj-core:1.7.0')
}
ext.compatibilityVersion = '1.8'
sourceCompatibility = compatibilityVersion
targetCompatibility = compatibilityVersion
jar {
manifest {
attributes 'Implementation-Title': "${project.name}",
'Implementation-Version': version,
'Built-By': System.getProperty('user.name'),
'Built-Date': new Date(),
'Built-JDK': System.getProperty('java.version'),
'Built-Gradle': gradle.gradleVersion
}
}
checkstyle {
toolVersion = "6.13"
}
jacocoTestReport {
reports {
xml.enabled = true
html.enabled = true
}
}
tasks.withType(JavaCompile) {
options.compilerArgs += ["-Xlint:-options"]
}
tasks.withType(Test) {
useTestNG()
testLogging {
showStandardStreams = true
events 'started', 'passed', 'failed'
}
}
check.dependsOn jacocoTestReport