-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
125 lines (106 loc) · 2.8 KB
/
build.gradle
File metadata and controls
125 lines (106 loc) · 2.8 KB
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
115
116
117
118
119
120
121
122
123
124
125
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.github.ben-manes:gradle-versions-plugin:0.13.0'
classpath 'info.solidsoft.gradle.pitest:gradle-pitest-plugin:1.1.9'
}
}
plugins {
id 'nebula.optional-base' version '3.1.0'
id "com.jfrog.bintray" version "1.7.1"
id 'net.researchgate.release' version '2.4.0'
}
apply plugin: 'java'
apply plugin: 'maven'
apply plugin: "jacoco"
apply plugin: "maven-publish"
apply plugin: 'nebula.optional-base'
apply plugin: 'com.github.ben-manes.versions'
apply plugin: "info.solidsoft.pitest"
apply plugin: 'com.jfrog.bintray'
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
repositories {
jcenter()
}
dependencies {
// Utils
compile 'com.google.guava:guava:21.0'
compile 'com.googlecode.gentyref:gentyref:1.2.0'
compile 'org.apache.commons:commons-lang3:3.5'
compile 'org.assertj:assertj-core:3.6.1'
// Annotation processors
compile 'org.projectlombok:lombok:1.16.12', optional
compile 'com.google.code.findbugs:jsr305:3.0.1', optional
testCompile 'junit:junit:4.12'
}
gradle.projectsEvaluated {
tasks.withType(JavaCompile) {
options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation"
}
}
pitest {
threads = 4
outputFormats = ['HTML']
mutateStaticInits = true
timestampedReports = false
}
jacocoTestReport {
group = "report"
reports {
xml.enabled true
csv.enabled false
html.enabled false
}
}
test {
testLogging {
exceptionFormat = 'full'
}
}
bintray {
user = findProperty('bintrayUser') ?: System.getenv('BINTRAY_USER')
key = findProperty('bintrayApiKey') ?: System.getenv('BINTRAY_API_KEY')
publications = ['maven']
pkg {
repo = 'maven'
name = project.name
userOrg = 'nginate'
licenses = ['WTFPL']
vcsUrl = 'https://github.com/nginate/commons-testing.git'
version {
name = project.version
desc = "${project.name} $project.version"
released = new Date().format("yyyy-MM-dd'T'HH:mm:ss.SSSZZ")
vcsTag = project.version
}
}
}
bintrayUpload.dependsOn ':generatePomFileForMavenPublication', ':assemble'
build.dependsOn install
task sourceJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
artifacts {
archives sourceJar
archives javadocJar
}
publishing {
publications {
maven(MavenPublication) {
from components.java
artifact sourceJar
artifact javadocJar
}
}
}
task wrapper(type: Wrapper) {
gradleVersion = '3.3'
}