-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
103 lines (89 loc) · 2.57 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
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: 'pmd'
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 group: "com.github.aap", name: "processor-tools", version: "0.0.5-SNAPSHOT", changing: true
compile 'org.reactivestreams:reactive-streams:1.0.0'
compile 'com.google.guava:guava:21.0'
compile 'com.google.code.findbugs:jsr305:3.0.1'
compile 'net.jodah:failsafe:1.0.3'
compile 'org.slf4j:slf4j-api:1.7.21'
compile 'javax.inject:javax.inject:1'
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"
}
pmd {
ruleSetConfig = resources.text.fromFile(rootProject.file("config/pmd/pmd.xml"))
consoleOutput = true
ignoreFailures = false
ruleSets = []
}
jacocoTestReport {
reports {
xml.enabled = true
html.enabled = true
}
}
tasks.withType(Pmd) {
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
task wrapper(type: Wrapper) {
gradleVersion = '2.14.1'
distributionUrl = "https://services.gradle.org/distributions/gradle-${gradleVersion}-all.zip"
}