Skip to content
Snippets Groups Projects
build.gradle.kts 681 B
Newer Older
  • Learn to ignore specific revisions
  • Arnaud LABOUREL's avatar
    Arnaud LABOUREL committed
    plugins {
        id("java")
    
        id("jacoco")
    
    Arnaud LABOUREL's avatar
    Arnaud LABOUREL committed
    }
    
    group = "fr.univ_amu.m1info"
    version = "1.0-SNAPSHOT"
    
    repositories {
        mavenCentral()
    }
    
    dependencies {
        testImplementation("org.junit.jupiter:junit-jupiter-api:5.11.4")
        testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.11.4")
        testRuntimeOnly("org.junit.platform:junit-platform-launcher")
        testImplementation("org.assertj:assertj-core:3.27.0")
    }
    
    
    Arnaud LABOUREL's avatar
    Arnaud LABOUREL committed
    tasks.test {
        useJUnitPlatform()
    }
    
    
    
    
    tasks.test {
        finalizedBy(tasks.jacocoTestReport) // report is always generated after tests run
    }
    tasks.jacocoTestReport {
        dependsOn(tasks.test) // tests are required to run before generating the report
    }