/* * Copyright (c) DuxTechnica * * Licensed under the DuxTechnica Limited Use Source Code License Agreement (DT-LUSCL); you may not * use this file except in compliance with the License. You may obtain a copy of the License by * contacting: * * Dux Technica, contact@duxtechnica.com * * This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, * either express or implied. See the License for the specific language governing permissions and * limitations under the License. */ plugins { id "java" id "jacoco" } version = "v1-SNAPSHOT" repositories { mavenLocal() mavenCentral() maven { url "https://maven.indroneel.co/repo/snapshots" } } dependencies { implementation "dxt.scanpath:dxt.scanpath:v1-SNAPSHOT" implementation "org.junit.jupiter:junit-jupiter:5.10.2" implementation "org.junit.platform:junit-platform-launcher:1.10.2" implementation "org.slf4j:jul-to-slf4j:2.0.7" implementation "ch.qos.logback:logback-classic:1.4.6" implementation "org.codehaus.janino:janino:3.1.9" } tasks.named("test", Test) { useJUnitPlatform() systemProperty "junit.jupiter.extensions.autodetection.enabled", "true" /* filter { includeTestsMatching("fully.qualified.package.*") } */ testLogging { events "started", "passed", "failed", "skipped" showStandardStreams = true displayGranularity 2 reports finalizedBy jacocoTestReport } } jacocoTestReport { dependsOn test reports { xml.required = true csv.required = false //html.outputLocation = layout.buildDirectory.dir('jacocoHtml') } afterEvaluate { def classDir = file("${projectDir}/../scanpath-v1/target/classes") def sourceDir = file("${projectDir}/../scanpath-v1/src/main/java") sourceDirectories.setFrom(files(sourceDir)) classDirectories.setFrom(files( fileTree(dir: classDir) )) } }