-
Notifications
You must be signed in to change notification settings - Fork 49
/
build.gradle
81 lines (69 loc) · 1.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
plugins {
id 'java'
id "com.eriwen.gradle.js" version "2.14.1"
id "com.eriwen.gradle.css" version "2.14.0"
}
repositories {
mavenCentral()
}
dependencies {
testCompile 'org.concordion:concordion:2.1.0',
'org.concordion:concordion-screenshot-extension:1.2.0',
'org.seleniumhq.selenium:selenium-java:3.+',
'io.github.bonigarcia:webdrivermanager:1.7.1'
}
// Declare your sources
javascript.source {
prod {
js {
srcDir 'web/js'
include "*.js"
}
}
}
task jshintjs(type: com.eriwen.gradle.js.tasks.JsHintTask) {
source = javascript.source.prod.js.files
dest = file("${buildDir}/js/hint/jshint.xml")
reporter = 'checkstyle'
jshint.options = [expr: "true", unused: "false"]
}
task jsdocjs(type: com.eriwen.gradle.js.tasks.JsDocTask) {
source = javascript.source.prod.js.files
destinationDir = "${buildDir}/js/doc"
}
css.source {
prod {
css {
srcDir "web/styles"
include "*.css"
}
}
}
csslint {
source = css.source.prod.css.files
dest = "${buildDir}/css/lint/csslint.xml"
format = 'checkstyle-xml'
}
sourceSets {
test {
java {
srcDir 'spec'
}
resources {
srcDir 'spec'
}
}
main {
resources {
srcDir 'web'
}
}
}
test {
systemProperties['concordion.output.dir'] = "$reporting.baseDir/spec"
include 'CricketSpec.*'
}
task wrapper(type: Wrapper) {
gradleVersion = '4.0'
}
test.dependsOn cleanTest