Some tweaks to improve gradle cacheability (#1030)

This commit is contained in:
Nikita Salnikov-Tarnovski 2020-08-17 22:57:49 +03:00 committed by GitHub
parent d636364d39
commit f3c049f2ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 10 additions and 9 deletions

View File

@ -40,7 +40,7 @@ dependencies {
shadowInclude project(path: ':auto-exporters:opentelemetry-auto-exporter-zipkin', configuration: 'shadow')
}
jar.enabled = false
shadowJar {
configurations = [project.configurations.shadowInclude]

View File

@ -14,6 +14,7 @@ dependencies {
implementation group: 'io.grpc', name: 'grpc-netty-shaded', version: '1.24.0'
}
jar.enabled = false
shadowJar {
archiveClassifier = ''
}

View File

@ -11,6 +11,7 @@ dependencies {
compileOnly deps.opentelemetrySdkAutoConfig
}
jar.enabled = false
shadowJar {
archiveClassifier = ''
}

View File

@ -14,6 +14,7 @@ dependencies {
implementation group: 'io.grpc', name: 'grpc-netty-shaded', version: '1.24.0'
}
jar.enabled = false
shadowJar {
archiveClassifier = ''
}

View File

@ -12,6 +12,7 @@ dependencies {
compileOnly deps.opentelemetrySdkAutoConfig
}
jar.enabled = false
shadowJar {
archiveClassifier = ''
}

View File

@ -36,14 +36,6 @@ java {
withSourcesJar()
}
sourceSets {
main {
java {
srcDir 'src/main/java'
}
}
}
tasks.withType(JavaCompile) {
options.compilerArgs.addAll(['--release', project.ext.release.majorVersion])
}
@ -289,3 +281,8 @@ tasks.withType(Test).configureEach {
junitXml.outputPerTestCase = true
}
}
tasks.withType(AbstractArchiveTask) {
preserveFileTimestamps = false
reproducibleFileOrder = true
}