forked from spiffe/java-spiffe
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
36 lines (29 loc) · 1.08 KB
/
Copy pathbuild.gradle
File metadata and controls
36 lines (29 loc) · 1.08 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
plugins {
id "com.gradleup.shadow" version "${shadowVersion}"
}
description = "Java Security Provider implementation supporting X.509-SVIDs and methods for " +
"creating SSLContexts that are backed by the Workload API."
tasks.named('assemble') {
dependsOn(tasks.named('shadowJar'))
}
shadowJar {
mergeServiceFiles()
archiveClassifier = "all-${osdetector.classifier}"
}
dependencies {
api(project(":java-spiffe-core"))
// runtimeOnly grpc-netty dependency module will be included in the shadowJar
def osArch = System.getProperty("os.arch")
if (osdetector.os.is('osx')) {
if (osArch == 'x86_64') {
runtimeOnly(project(':java-spiffe-core:grpc-netty-macos'))
} else if (osArch == 'aarch64') {
runtimeOnly(project(':java-spiffe-core:grpc-netty-macos-aarch64'))
} else {
throw new GradleException("Architecture not supported: ${osArch}")
}
} else {
runtimeOnly(project(':java-spiffe-core:grpc-netty-linux'))
}
testImplementation(testFixtures(project(":java-spiffe-core")))
}