代码拉取完成,页面将自动刷新
plugins {
`java-library`
`maven-publish`
signing
jacoco
id("me.champeau.gradle.jmh") version "0.5.0"
id("com.vanniktech.maven.publish") version "0.8.0"
}
repositories {
mavenCentral()
}
configurations {
implementation {
resolutionStrategy.failOnVersionConflict()
}
}
// No compile time dependencies for the main artifact.
dependencies {
testImplementation(group = "org.junit.jupiter", name = "junit-jupiter", version = "5.5.2")
jmh(group = "org.openjdk.jmh", name = "jmh-core", version = "1.22")
jmh(group = "org.openjdk.jmh", name = "jmh-generator-annprocess", version = "1.22")
}
tasks.test {
useJUnitPlatform()
testLogging {
events("passed", "skipped", "failed")
}
}
tasks.jacocoTestReport {
reports {
xml.isEnabled = false
csv.isEnabled = false
html.isEnabled = true
html.destination = file("$buildDir/reports/coverage")
}
}
// Require 100% test coverage
tasks.jacocoTestCoverageVerification {
violationRules {
rule {
limit {
minimum = "1.0".toBigDecimal()
}
}
}
}
// Bind the check task to running jacoco to keep us honest.
tasks.check {
dependsOn("jacocoTestCoverageVerification")
}
jmh {
duplicateClassesStrategy = DuplicatesStrategy.WARN
iterations = 10
warmupIterations = 1
batchSize = 1
threads = 1
fork = 1
operationsPerInvocation = 1
profilers = listOf("gc")
jmhVersion = "1.22"
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。