-
Notifications
You must be signed in to change notification settings - Fork 39
/
Copy pathbuild.gradle
130 lines (111 loc) · 5.54 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
118
119
120
121
122
123
124
125
126
127
128
129
130
subprojects {
apply plugin: 'jacoco'
apply plugin: 'java-library'
apply plugin: 'maven'
apply plugin: 'signing'
group = "com.google.cloud.opentelemetry"
version = "0.10.0-SNAPSHOT" // CURRENT_VERSION
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
repositories {
mavenCentral()
mavenLocal()
maven { url 'https://oss.jfrog.org/artifactory/oss-snapshot-local' }
maven { url 'https://dl.bintray.com/open-telemetry/maven'}
}
ext {
autoServiceVersion = '1.0-rc7'
autoValueVersion = '1.7.4'
slf4jVersion = '1.7.30'
googleCloudVersion = '1.0.2'
cloudMonitoringVersion = '2.0.1'
openTelemetryVersion = '0.9.1'
openTelemetryInstrumentationVersion = '0.8.0'
junitVersion = '4.13'
mockitoVersion = '3.5.10'
opentelemetryOperationsVersion = "0.9.1" // CURRENT_RELEASE_VERSION
libraries = [
auto_service_annotations : "com.google.auto.service:auto-service-annotations:${autoServiceVersion}",
auto_service : "com.google.auto.service:auto-service:${autoServiceVersion}",
auto_value_annotations : "com.google.auto.value:auto-value-annotations:${autoValueVersion}",
auto_value : "com.google.auto.value:auto-value:${autoValueVersion}",
google_cloud_core : "com.google.cloud:google-cloud-core:${googleCloudVersion}",
google_cloud_trace : "com.google.cloud:google-cloud-trace:${googleCloudVersion}",
google_cloud_trace_grpc : "com.google.api.grpc:grpc-google-cloud-trace-v2:${googleCloudVersion}",
google_cloud_monitoring : "com.google.cloud:google-cloud-monitoring:${cloudMonitoringVersion}",
google_cloud_monitoring_grpc : "com.google.cloud:grpc-google-cloud-monitoring-v3:${cloudMonitoringVersion}",
slf4j : "org.slf4j:slf4j-api:${slf4jVersion}",
opentelemetry_api : "io.opentelemetry:opentelemetry-api:${openTelemetryVersion}",
opentelemetry_sdk : "io.opentelemetry:opentelemetry-sdk:${openTelemetryVersion}",
opentelemetry_auto : "io.opentelemetry.instrumentation.auto:opentelemetry-javaagent-tooling:${openTelemetryInstrumentationVersion}",
opentelemetry_operations_java: "com.google.cloud.opentelemetry:exporter-trace:${opentelemetryOperationsVersion}"
]
testLibraries = [
junit : "junit:junit:${junitVersion}",
mockito : "org.mockito:mockito-inline:${mockitoVersion}",
slf4j_simple: "org.slf4j:slf4j-simple:${slf4jVersion}"
]
}
task javadocJar(type: Jar) {
archiveClassifier.set('javadoc')
from javadoc
}
task sourcesJar(type: Jar) {
archiveClassifier.set('sources')
from sourceSets.main.allSource
}
test {
systemProperty 'mock.server.path', System.getProperty('mock.server.path')
finalizedBy jacocoTestReport
}
jacocoTestReport {
dependsOn test // tests are required to run before generating the report
}
artifacts {
archives javadocJar, sourcesJar
}
signing {
required false
sign configurations.archives
}
uploadArchives {
repositories {
mavenDeployer {
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }
def configureAuth = {
if (rootProject.hasProperty('ossrhUsername') && rootProject.hasProperty('ossrhPassword')) {
authentication(userName: rootProject.ossrhUsername, password: rootProject.ossrhPassword)
}
}
repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2/", configureAuth)
snapshotRepository(url: "https://oss.sonatype.org/content/repositories/snapshots/", configureAuth)
pom.project {
name 'OpenTelemetry Operations Java'
description 'OpenTelemetry exporters to Google Cloud Trace and Google Cloud Monitoring'
packaging 'jar'
url 'https://github.com/GoogleCloudPlatform/opentelemetry-operations-java'
scm {
connection 'scm:svn:https://github.com/GoogleCloudPlatform/opentelemetry-operations-java'
developerConnection 'scm:svn:https://github.com/GoogleCloudPlatform/opentelemetry-operations-java'
url 'https://github.com/GoogleCloudPlatform/opentelemetry-operations-java'
}
licenses {
license {
name 'The Apache License, Version 2.0'
url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
}
}
developers {
developer {
id 'com.google.cloud.opentelemetry'
name 'OpenTelemetry Operations Contributors'
email 'opentelemetry-team@google.com'
organization = 'Google Inc'
organizationUrl 'https://cloud.google.com/products/operations'
}
}
}
}
}
}
}