-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
39 lines (33 loc) · 1.3 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
// Apply the java plugin to add support for Java
apply plugin: 'java'
// Apply jacoco plugin to add code coverage
apply plugin: 'jacoco'
// Apply the application plugin to add support for building an application
apply plugin: 'application'
// In this section you declare where to find the dependencies of your project
repositories {
// Use jcenter for resolving your dependencies.
// You can declare any Maven/Ivy/file repository here.
jcenter()
}
dependencies {
// Use JUnit test framework
testCompile 'junit:junit:4.12'
testCompile group: 'org.mockito', name: 'mockito-all', version: '1.9.5'
}
// Exclude packages and classes for which unit tests don't make sense e.g. Audio
jacocoTestReport {
afterEvaluate {
classDirectories = files(classDirectories.files.collect {
// Packages
fileTree(dir: it, exclude: ['main/java/example',
'main/java/audio',
'main/java/ui',
'main/java/networking/integration',
// Individual classes
'**/*Render**'])
})
}
}
// Define the main class for the application
mainClassName = 'GameUI'