Fakultas Ilmu Komputer UI

build.gradle 1.45 KB
Newer Older
1
2
3
4
// Apply the application plugin to add support for building a CLI application in Java.
apply plugin: "application"
apply plugin: "jacoco"

hazlazuardi's avatar
hazlazuardi committed
5
mainClassName = "sijadwal.Main"
6
7


hazlazuardi's avatar
hazlazuardi committed
8
group = 'Softeng.Group3'
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
version = '1.0-SNAPSHOT'

repositories {
    // Use Maven Central for resolving dependencies.
    mavenCentral()
}

dependencies {
    implementation 'org.junit.jupiter:junit-jupiter:5.4.2'

    // Use JUnit Jupiter API for testing.
    testImplementation 'org.junit.jupiter:junit-jupiter-api:5.7.1'

    // Use JUnit Jupiter Engine for testing.
    testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine'

    // This dependency is used by the application.
    implementation 'com.google.guava:guava:30.0-jre'
}

run {
    standardInput = System.in
}

test {
hazlazuardi's avatar
hazlazuardi committed
34
    useJUnitPlatform()
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
    finalizedBy("jacocoTestReport") // report is always generated after tests run
}
jacoco {
    toolVersion = "0.8.6"
}

jacocoTestReport {
    dependsOn test // tests are required to run before generating the report
    reports {
        csv.enabled true
        csv.destination file("${buildDir}/jacocoCsv")
        html.destination layout.buildDirectory.dir('jacocoHtml').get().asFile
    }
    afterEvaluate {
        classDirectories.setFrom(files(classDirectories.files.collect {
hazlazuardi's avatar
hazlazuardi committed
50
            fileTree(dir: it, exclude:['**/Main*', "**/CSV*", "**/Student*", "**/Admin*",
51
                                       "**/TeachingAssistant*", "**/Role*", "**/utility/*", ]
52
53
54
55
            )
        }))
    }
}