-
Notifications
You must be signed in to change notification settings - Fork 994
/
build.gradle
117 lines (98 loc) · 3.08 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
112
113
114
115
116
117
buildscript {
repositories {
mavenCentral()
gradlePluginPortal()
}
dependencies {
classpath 'io.spring.gradle.antora:spring-antora-plugin:0.0.1'
classpath 'org.antora:gradle-antora-plugin:1.0.0'
}
}
apply plugin: 'java'
apply plugin: 'io.spring.antora.generate-antora-yml'
apply plugin: 'org.antora'
description = 'Micrometer Docs'
// Spring 6 requires Java 17+
// skip this module when building with jdk <17
if (!javaLanguageVersion.canCompileOrRun(17)) {
project.tasks.configureEach { task -> task.enabled = false }
}
repositories {
mavenCentral()
}
java {
toolchain {
languageVersion = javaLanguageVersion
}
}
compileTestJava {
// need to override the config applied in the root build.gradle to all subprojects
// TODO can we not do this with Gradle's toolchains instead?
sourceCompatibility = javaLanguageVersion
targetCompatibility = javaLanguageVersion
}
dependencies {
implementation project(':micrometer-core')
implementation 'io.micrometer:context-propagation'
implementation 'ch.qos.logback:logback-classic'
implementation 'org.slf4j:slf4j-api'
testImplementation project(':micrometer-test')
testImplementation project(':micrometer-observation-test')
testImplementation libs.aspectjweaver
testImplementation libs.junitJupiter
testImplementation 'org.assertj:assertj-core'
testImplementation(libs.spring6.context)
testImplementation 'io.projectreactor:reactor-core'
testImplementation 'io.projectreactor:reactor-test'
testImplementation 'io.netty:netty-transport'
testImplementation 'org.apache.httpcomponents.client5:httpclient5'
testImplementation libs.javalin
// Kafka binder IT dependencies
testImplementation 'org.apache.kafka:kafka-clients'
testImplementation 'org.testcontainers:testcontainers'
testImplementation 'org.testcontainers:junit-jupiter'
testImplementation 'org.testcontainers:kafka'
}
antora {
version = '3.2.0-alpha.2'
playbook = 'antora-playbook.yml'
options = ['--clean', '--stacktrace']
environment = [
'ALGOLIA_API_KEY': 'cbcaa86034c1961b2c0c73bd0c274862',
'ALGOLIA_APP_ID': 'R3TXPRVDPR',
'ALGOLIA_INDEX_NAME': 'micrometer'
]
dependencies = [
'@antora/atlas-extension' : '1.0.0-alpha.1',
'@antora/collector-extension' : '1.0.0-alpha.3',
'@asciidoctor/tabs' : '1.0.0-beta.3',
'@springio/antora-extensions' : '1.4.2',
'@springio/asciidoctor-extensions': '1.0.0-alpha.8',
]
}
tasks.named('generateAntoraYml') {
asciidocAttributes = project.provider {
return ['micrometer-version': project.version.toString()]
}
}
tasks.create('generateAntoraResources') {
dependsOn 'generateAntoraYml'
}
tasks.named('antora') {
dependsOn 'generateAntoraResources', 'test'
}
jar {
enabled = false
}
javadoc {
enabled = false
}
tasks.withType(AbstractPublishToMaven).configureEach {
enabled = false
}
downloadBaseline {
enabled = false
}
japicmp {
enabled = false
}