-
Notifications
You must be signed in to change notification settings - Fork 16
/
build.gradle
82 lines (70 loc) · 1.62 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
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.2.0',
'org.concordion:concordion-screenshot-extension:1.3.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.*'
testLogging.showStandardStreams = true
}
task wrapper(type: Wrapper) {
gradleVersion = '4.0'
}
test.dependsOn cleanTest