forked from micrometer-metrics/micrometer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
98 lines (79 loc) · 2.64 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
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 'org.junit.platform:junit-platform-gradle-plugin:1.0.0'
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') && !project.name.contains('benchmarks')) {
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', 'elastic', 'dynatrace']
}
}
description = 'Application monitoring instrumentation facade'
repositories {
mavenCentral()
}
checkstyle {
toolVersion = '8.4'
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"
}
}
wrapper {
gradleVersion = '4.9'
}
defaultTasks 'build'