-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
99 lines (84 loc) · 1.82 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
plugins {
id 'java'
id 'maven'
id 'maven-publish'
id 'checkstyle'
id 'pmd'
id 'jacoco'
id 'com.github.kt3k.coveralls' version '2.8.2'
}
group = 'com.github.takemikami'
version = '0.0.3'
def digdagVersion = '0.10.0'
repositories {
mavenCentral()
jcenter()
maven {
url 'https://dl.bintray.com/digdag/maven'
}
}
configurations {
provided
}
dependencies {
provided 'io.digdag:digdag-spi:' + digdagVersion
provided 'io.digdag:digdag-plugin-utils:' + digdagVersion
testCompile 'junit:junit:4.+'
}
sourceSets {
main {
compileClasspath += configurations.provided
test.compileClasspath += configurations.provided
test.runtimeClasspath += configurations.provided
}
}
publishing {
publications {
mavenJava(MavenPublication) {
// artifactId 'project1-sample'
from components.java
}
}
repositories {
maven {
url "$buildDir/repo"
}
}
}
sourceCompatibility = 1.8
targetCompatibility = 1.8
compileJava.options.encoding = 'UTF-8'
compileTestJava.options.encoding = 'UTF-8'
tasks.withType(JavaCompile) {
options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation"
}
javadoc {
options {
locale = 'en_US'
encoding = 'UTF-8'
}
}
checkstyle {
toolVersion '8.40'
}
pmd {
toolVersion '6.31.0'
sourceSets = [sourceSets.main]
ruleSets = [
"category/java/bestpractices.xml",
"category/java/multithreading.xml",
"category/java/security.xml"
]
}
jacocoTestReport {
reports {
xml.enabled = true // coveralls plugin depends on xml format report
html.enabled = true
}
}
tasks.withType(Checkstyle) {
reports {
xml.enabled = false
html.enabled = true
}
}