-
Notifications
You must be signed in to change notification settings - Fork 274
/
Copy pathbuild.gradle
60 lines (49 loc) · 1.09 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
plugins {
id 'java'
id 'checkstyle'
id 'findbugs'
id 'jacoco'
id 'war'
}
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
group = 'jp.gihyo.jenkinsbook'
version = '1.0.0'
ext {
artifactId = 'sampleproject'
}
repositories {
mavenCentral()
}
dependencies {
providedCompile 'javax.servlet:javax.servlet-api:3.1.0',
'javax.servlet.jsp:javax.servlet.jsp-api:2.3.1'
testCompile 'junit:junit:4.12',
'org.easymock:easymock:3.4'
checkstyle 'com.puppycrawl.tools:checkstyle:6.11.2'
findbugs 'com.google.code.findbugs:findbugs:3.0.1'
}
checkstyleMain {
configFile = file('./config/checkstyle/sun_checks.xml')
ignoreFailures = true
}
checkstyleTest {
configFile = file('./config/checkstyle/sun_checks.xml')
excludes = ['**/*']
}
findbugsMain {
ignoreFailures = true
}
findbugsTest {
ignoreFailures = true
}
test {
ignoreFailures = true
}
war {
dependsOn check
baseName = project.ext.artifactId
}
task wrapper(type: Wrapper) {
gradleVersion = '3.5'
}