1 Star 0 Fork 0

阳贤文/micrometer

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
build.gradle 2.71 KB
一键复制 编辑 原始数据 按行查看 历史
Johnny Lim 提交于 2019-03-22 13:34 +08:00 . Upgrade to Checkstyle 8.18 (#1307)
buildscript {
repositories {
jcenter()
maven { url 'https://plugins.gradle.org/m2/' }
mavenLocal()
}
dependencies {
classpath 'org.ow2.asm:asm:5.0.3'
classpath 'io.spring.gradle:spring-release-plugin:0.20.1'
classpath 'com.netflix.nebula:gradle-extra-configurations-plugin:3.2.0'
classpath 'me.champeau.gradle:jmh-gradle-plugin:0.4.4'
classpath 'com.netflix.nebula:nebula-project-plugin:3.4.0'
classpath "gradle.plugin.com.dorongold.plugins:task-tree:1.3"
}
configurations.classpath.resolutionStrategy.cacheDynamicVersionsFor 0, 'minutes'
}
apply plugin: 'io.spring.release'
allprojects {
apply plugin: 'io.spring.license'
apply plugin: 'com.dorongold.task-tree'
afterEvaluate { project ->
println "I'm building $project.name with version $project.version"
}
group = 'io.micrometer'
}
subprojects {
apply plugin: 'java'
apply plugin: 'checkstyle'
dependencyLocking {
lockAllConfigurations()
}
task resolveAndLockAll {
doFirst {
assert gradle.startParameter.writeDependencyLocks
}
doLast {
def skip = ['annotationProcessor', 'apt', 'testAnnotationProcessor', 'checkstyle',
'shadow', 'testApt', 'archives', 'junitPlatform']
configurations.each {
if (it.canBeResolved && !skip.contains(it.name)) {
it.resolve()
}
}
}
}
compileJava.options.encoding = 'UTF-8'
compileTestJava.options.encoding = 'UTF-8'
if (!project.name.contains('samples')) {
apply plugin: 'io.spring.publishing'
contacts {
'jschneider@pivotal.io' {
moniker 'Jon Schneider'
github 'jkschneider'
}
}
if (project.extensions.findByName('bintray')) {
bintray.labels = ['micrometer', 'atlas', 'metrics', 'prometheus', 'spectator', 'influx', 'new-relic', 'signalfx', 'wavefront']
}
}
description = 'Application monitoring instrumentation facade'
repositories {
mavenCentral()
}
checkstyle {
toolVersion = '8.18'
configFile = rootProject.file('config/checkstyle/checkstyle.xml')
}
def check = tasks.findByName('check')
if (check) project.rootProject.tasks.releaseCheck.dependsOn check
//noinspection GroovyAssignabilityCheck
test {
// set heap size for the test JVM(s)
maxHeapSize = "1500m"
useJUnitPlatform()
}
license {
ext.year = Calendar.getInstance().get(Calendar.YEAR)
skipExistingHeaders = true
}
}
wrapper {
gradleVersion = '4.10.2'
}
defaultTasks 'build'
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/hierarch_yang/micrometer.git
git@gitee.com:hierarch_yang/micrometer.git
hierarch_yang
micrometer
micrometer
1.0.x

搜索帮助