-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
55 lines (42 loc) · 1.24 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
// Gradle plugins
plugins {
id 'com.craigburke.karma' version '1.4.4'
}
apply plugin: 'java'
apply plugin: 'application'
// The class where our server is located
mainClassName='umm3601.Server'
// Repositories to download stuff from
repositories {
mavenCentral()
}
// External dependencies that our application utilizes
dependencies {
compile 'com.sparkjava:spark-core:2.6.0'
compile 'com.sparkjava:spark-debug-tools:0.5'
compile 'org.slf4j:slf4j-simple:1.7.25'
compile 'com.google.code.gson:gson:2.8.1'
testCompile 'junit:junit:4.12'
}
// Karma configuration for the gradle-karma plugin
karma {
basePath = '../'
colors = true
profile 'default'
browsers = ['PhantomJS']
frameworks = ['jasmine']
reporters = ['progress'] //https://github.com/craigburke/karma-gradle ; Can use JUnit as a reporter
profile('default') {
libraryBases = ['src/main/resources/public/vendor/']
libraryFiles = ['**/*.js']
sourceBases = ['src/main/resources/public/javascript/']
sourceFiles = ['*.js']
testBases = ['src/test/javascript/']
testFiles = ['*.spec.js']
}
}
task runWithTests {
group = "application"
}
runWithTests.dependsOn karmaRun
runWithTests.dependsOn test