-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
101 lines (83 loc) · 2.85 KB
/
build.gradle
File metadata and controls
101 lines (83 loc) · 2.85 KB
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
buildscript {
repositories {
maven {
url "https://plugins.gradle.org/m2/"
}
maven {
name = "sonatype"
url = uri("https://central.sonatype.com/repository/maven-snapshots/")
}
}
dependencies {
classpath "com.diffplug.spotless:spotless-plugin-gradle:8.1.0"
classpath "com.gradleup.shadow:shadow-gradle-plugin:9.3.0"
classpath "io.opentelemetry.instrumentation:gradle-plugins:2.25.0-alpha"
classpath("org.apache.httpcomponents:httpclient:4.5.14")
}
}
plugins {
id("io.github.gradle-nexus.publish-plugin")
}
group "io.github.irevive"
// this line is managed by ./scripts/update-release-version.sh
version "2.25.0"
nexusPublishing {
packageGroup.set(rootProject.group.toString())
repositories {
// see https://central.sonatype.org/publish/publish-portal-ossrh-staging-api/#configuration
sonatype {
nexusUrl.set(uri("https://ossrh-staging-api.central.sonatype.com/service/local/"))
snapshotRepositoryUrl.set(uri("https://central.sonatype.com/repository/maven-snapshots/"))
username.set(System.getenv("SONATYPE_USER"))
password.set(System.getenv("SONATYPE_KEY"))
}
}
}
subprojects {
version = rootProject.version
group = rootProject.group
apply plugin: "java"
apply plugin: "com.diffplug.spotless"
ext {
versions = [
// this line is managed by ./scripts/update-sdk-version.sh
opentelemetrySdk : "1.59.0",
// these lines are managed by ./scripts/update-agent-version.sh
opentelemetryJavaagent : "2.25.0",
opentelemetryJavaagentAlpha: "2.25.0-alpha",
autoservice : "1.1.1"
]
deps = [
autoservice: [
"com.google.auto.service:auto-service:${versions.autoservice}",
"com.google.auto.service:auto-service-annotations:${versions.autoservice}",
]
]
}
repositories {
mavenCentral()
maven {
name = "sonatype"
url = uri("https://central.sonatype.com/repository/maven-snapshots/")
}
}
dependencies {
implementation(platform("io.opentelemetry:opentelemetry-bom:${versions.opentelemetrySdk}"))
// these serve as a test of the instrumentation boms
implementation(platform("io.opentelemetry.instrumentation:opentelemetry-instrumentation-bom:${versions.opentelemetryJavaagent}"))
implementation(platform("io.opentelemetry.instrumentation:opentelemetry-instrumentation-bom-alpha:${versions.opentelemetryJavaagentAlpha}"))
testImplementation("org.mockito:mockito-core:5.21.0")
testImplementation(enforcedPlatform("org.junit:junit-bom:5.13.4"))
testImplementation("org.junit.jupiter:junit-jupiter-api")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine")
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
}
tasks {
test {
useJUnitPlatform()
}
compileJava {
options.release.set(8)
}
}
}