Skip to content

Commit c957227

Browse files
authored
Add uberjar (#51)
* Add uber jar for "auto" to include all of its dependencies in Maven artifact
1 parent 1eb5385 commit c957227

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ subprojects {
1414
mavenCentral()
1515
mavenLocal()
1616
maven { url 'https://oss.jfrog.org/artifactory/oss-snapshot-local' }
17-
maven { url 'https://dl.bintray.com/open-telemetry/maven'}
17+
maven { url 'https://dl.bintray.com/open-telemetry/maven' }
1818
}
1919

2020
ext {
@@ -27,7 +27,7 @@ subprojects {
2727
openTelemetryInstrumentationVersion = '0.9.0'
2828
junitVersion = '4.13'
2929
mockitoVersion = '3.5.10'
30-
opentelemetryOperationsVersion = "0.9.1" // CURRENT_RELEASE_VERSION
30+
opentelemetryOperationsVersion = '0.9.1' // CURRENT_RELEASE_VERSION
3131

3232
libraries = [
3333
auto_service_annotations : "com.google.auto.service:auto-service-annotations:${autoServiceVersion}",

exporters/auto/build.gradle

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,11 @@ dependencies {
1414
implementation(project(':exporter-metrics'))
1515
implementation(project(':exporter-trace'))
1616
}
17+
18+
jar.enabled = false
19+
20+
tasks.build.dependsOn tasks.shadowJar
21+
22+
shadowJar{
23+
classifier = null
24+
}

0 commit comments

Comments
 (0)