Fakultas Ilmu Komputer UI

build.gradle 805 Bytes
Newer Older
saddamonpc's avatar
saddamonpc committed
1
2
3
plugins {
    id 'groovy'
    id 'java'
4
    id 'jacoco'
saddamonpc's avatar
saddamonpc committed
5
6
}

7
8
apply plugin: "application"

saddamonpc's avatar
saddamonpc committed
9
10
11
12
13
14
15
16
17
18
19
group 'softeng.g4'
version '1.0-SNAPSHOT'

repositories {
    mavenCentral()
}

dependencies {
    testCompile group: 'junit', name: 'junit', version: '4.12'
    testImplementation 'org.junit.jupiter:junit-jupiter-api:5.6.0'
    testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine'
20
21
22
    // This dependency is used by the application.
    implementation 'com.google.guava:guava:30.0-jre'

saddamonpc's avatar
saddamonpc committed
23
24
}

25
26
27
28
29
30
java {
    toolchain {
        languageVersion.set(JavaLanguageVersion.of(14))
    }
}

saddamonpc's avatar
saddamonpc committed
31
32
test {
    useJUnitPlatform()
33
34
35
36
37
38
39
40
41
    finalizedBy("jacocoTestReport")
}

jacocoTestReport {
    reports {
        csv.enabled true
        csv.destination file("${buildDir}/jacocoCsv")
    }
    // ... Additional configuration for JaCoCo
saddamonpc's avatar
saddamonpc committed
42
}