Untitled
unknown
plain_text
4 years ago
2.0 kB
11
Indexable
plugins {
id 'java'
id 'jacoco'
}
group = 'com.example'
version = '1.0'
sourceCompatibility = 1.8
targetCompatibility = 1.8
jacoco { //Please do not change this
toolVersion = "0.8.4"
reportsDir = file("$buildDir/jacoco")
}
jacocoTestReport { //Please do not change this
reports {
xml.enabled true
csv.enabled false
html.enabled false
xml.destination file("./jacoco.xml")
}
}
jar {
archiveBaseName = 'geektrust' //Please do not change this final artifact name
version = null //Please do not change this final artifact version
manifest {
attributes 'Main-Class' : 'com.example.geektrust.Runner' //Change this to the main class of your program which will be executed
}
// To create a single jar with all dependencies.
from {
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
} {
exclude "META-INF/*.SF"
exclude "META-INF/*.DSA"
exclude "META-INF/*.RSA"
}
}
test { ///Please do not change this
useJUnitPlatform()
testLogging {
events "PASSED", "SKIPPED", "FAILED", "STANDARD_ERROR"
}
finalizedBy jacocoTestReport // report is always generated after tests run
afterSuite { desc, result ->
if (!desc.parent)
println("${result.resultType} " +
"(${result.testCount} tests, " +
"${result.successfulTestCount} successes, " +
"${result.failedTestCount} failures, " +
"${result.skippedTestCount} skipped)")
}
}
repositories {
mavenCentral()
}
//Add your dependencies here
dependencies {
implementation 'com.fasterxml.jackson.core:jackson-databind:2.8.9'
implementation group: 'org.json', name: 'json', version: '20090211'
testImplementation group: 'junit', name: 'junit', version: '4.4'
}Editor is loading...