3 Star 0 Fork 0

mirrors_DataDog/glob-library-java

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
build.gradle.kts 1.49 KB
一键复制 编辑 原始数据 按行查看 历史
Joshua Gerth 提交于 2019-12-27 01:23 +08:00 . Figured out publishing to maven repo
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"
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mirrors_DataDog/glob-library-java.git
git@gitee.com:mirrors_DataDog/glob-library-java.git
mirrors_DataDog
glob-library-java
glob-library-java
master

搜索帮助