forked from micrometer-metrics/micrometer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
111 lines (89 loc) · 4.29 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
99
100
101
102
103
104
105
106
107
108
109
110
111
buildscript {
repositories {
mavenLocal()
}
dependencies {
classpath 'org.junit.platform:junit-platform-gradle-plugin:1.0.0-M4'
}
}
plugins {
id 'me.champeau.gradle.jmh' version '0.3.1'
id 'nebula.integtest' version '3.3.0'
id 'nebula.optional-base' version '3.1.0'
id 'io.spring.release' version '0.2.0'
}
apply plugin: 'org.junit.platform.gradle.plugin'
repositories {
maven { url 'https://repo.spring.io/libs-milestone' }
maven { url 'https://repo.spring.io/libs-snapshot' }
}
ext {
springBootVersion = findProperty('springBootVersion') ?: '2.0.0.BUILD-SNAPSHOT'
springVersion = findProperty('springVersion') ?: '5.0.0.BUILD-SNAPSHOT'
}
group = 'org.springframework.metrics'
description = 'Application monitoring metrics for Spring applications'
contacts {
moniker 'Jon Schneider'
github 'jkschneider'
}
}
dependencies {
compile "org.springframework:spring-beans:$project.springBootVersion", optional
compile "org.springframework.boot:spring-boot:$project.springBootVersion", optional
compile "org.springframework.boot:spring-boot-actuator:$project.springBootVersion", optional
compile "org.springframework.boot:spring-boot-starter-aop:$project.springBootVersion", optional
compile "org.springframework:spring-webmvc:$project.springVersion", optional
compile "org.springframework:spring-webflux:$project.springVersion", optional
compile "org.springframework:spring-web:$project.springVersion", optional
compile 'javax.servlet:javax.servlet-api:3.1.0', optional
compile 'org.aspectj:aspectjweaver:1.8.+', optional
// collector options
compile 'com.netflix.spectator:spectator-api:latest.release', optional
compile 'io.prometheus:simpleclient:latest.release', optional
compile 'io.prometheus:simpleclient_pushgateway:latest.release', optional
compile 'com.datadoghq:java-dogstatsd-client:latest.release', optional
compile 'io.dropwizard.metrics:metrics-core:latest.release', optional
// cache monitoring
compile 'com.google.guava:guava:21.0', optional
// log monitoring
compile 'ch.qos.logback:logback-classic:latest.release', optional
// JUnit 5
testCompile 'org.junit.platform:junit-platform-launcher:1.0.0-M4' // see https://github.com/junit-team/junit5/issues/586 for why this is necessary
testCompile 'org.junit.jupiter:junit-jupiter-api:5.0.0-M4'
testCompile 'org.junit.jupiter:junit-jupiter-params:5.0.0-M4'
testRuntime 'org.junit.jupiter:junit-jupiter-engine:5.0.0-M4'
testCompile 'org.assertj:assertj-core:3.+'
testCompile("org.springframework.boot:spring-boot-starter-web:$project.springBootVersion") {
// snapshots of boot-starter-web can depend on RC's of spring-web(mvc), pulling the versions down
exclude module: 'spring-webmvc'
exclude module: 'spring-web'
}
testCompile "org.springframework.boot:spring-boot-actuator:$project.springBootVersion"
testCompile "org.springframework.boot:spring-boot-starter-test:$project.springBootVersion"
testCompile 'org.springframework:spring-test:5.0.0.BUILD-SNAPSHOT' // earlier versions did not contain JUnit 5 support
testCompile 'io.projectreactor.addons:reactor-test:3.1.0.BUILD-SNAPSHOT'
testCompile 'io.projectreactor.ipc:reactor-netty:latest.release'
testRuntime 'org.apache.httpcomponents:httpclient:4.4+'
integTestCompile 'com.netflix.spectator:spectator-reg-metrics3:latest.release'
integTestCompile 'com.netflix.spectator:spectator-reg-servo:latest.release'
integTestCompile 'com.netflix.spectator:spectator-reg-atlas:latest.release'
integTestCompile 'com.netflix.servo:servo-atlas:latest.release'
integTestCompile 'io.projectreactor:reactor-core:latest.release'
integTestCompile 'io.prometheus:simpleclient_spring_boot:latest.release'
integTestCompile 'io.prometheus:simpleclient_hotspot:latest.release'
jmh 'org.openjdk.jmh:jmh-core:latest.release'
jmh 'org.openjdk.jmh:jmh-generator-annprocess:latest.release'
jmh "org.springframework.boot:spring-boot-actuator:$project.springBootVersion"
}
jmh {
jmhVersion = '1.18'
warmupIterations = 2
iterations = 5
fork = 0
duplicateClassesStrategy = 'warn'
}
bintray.pkg {
labels = ['spring', 'metrics', 'prometheus', 'spectator']
}