forked from craigatk/opentelemetry-gradle-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
80 lines (65 loc) · 2.36 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
buildscript {
repositories {
gradlePluginPortal()
mavenCentral()
}
}
plugins {
id 'java-gradle-plugin'
id 'maven-publish'
id "org.jetbrains.kotlin.jvm" version "1.9.10"
id "org.jlleitschuh.gradle.ktlint" version "11.5.1"
id "dev.projektor.publish" version "8.5.0"
id 'com.gradle.plugin-publish' version "1.2.1"
id "com.atkinsondev.opentelemetry-build" version "1.5.0"
}
group = "com.atkinsondev"
version = "1.5.0"
gradlePlugin {
plugins {
opentelemetryPlugin {
id = 'com.atkinsondev.opentelemetry-build'
implementationClass = 'com.atkinsondev.opentelemetry.build.OpenTelemetryBuildPlugin'
displayName = 'OpenTelemetry build plugin'
description = 'Instrument your Gradle build with OpenTelemetry observability to find and eliminate build bottlenecks'
}
}
}
pluginBundle {
website = 'https://github.com/craigatk/opentelemetry-gradle-plugin'
vcsUrl = 'https://github.com/craigatk/opentelemetry-gradle-plugin'
tags = ['observability', 'opentelemetry', 'telemetry']
}
repositories {
mavenCentral()
}
dependencies {
implementation("io.opentelemetry:opentelemetry-api:$otelVersion")
implementation("io.opentelemetry:opentelemetry-sdk:$otelVersion")
implementation("io.opentelemetry:opentelemetry-exporter-otlp:$otelVersion")
implementation("io.opentelemetry:opentelemetry-exporter-zipkin:$otelVersion")
implementation("io.opentelemetry:opentelemetry-semconv:$otelVersion-alpha")
testImplementation gradleTestKit()
testImplementation(platform("org.junit:junit-bom:5.10.0"))
testImplementation("org.junit.jupiter:junit-jupiter")
testImplementation "com.github.tomakehurst:wiremock-jre8:2.35.0"
testImplementation("io.strikt:strikt-core:0.34.1")
testImplementation 'org.awaitility:awaitility-kotlin:4.2.0'
}
test {
useJUnitPlatform()
}
ktlint {
disabledRules = ["no-wildcard-imports"]
}
projektor {
serverUrl = "https://projektorlive.herokuapp.com"
publishToken = System.getenv("PROJEKTOR_TOKEN") ?: project.findProperty('projektor_publish_token') ?: null
}
openTelemetryBuild {
endpoint = "https://api.honeycomb.io"
headers = [
"x-honeycomb-team": System.getenv("HONEYCOMB_API_KEY") ?: project.findProperty('honeycomb_api_key') ?: null,
"x-honeycomb-dataset": "otel-gradle"
]
}