-
Notifications
You must be signed in to change notification settings - Fork 24
Expand file tree
/
Copy pathbuild.gradle
More file actions
43 lines (33 loc) · 1.21 KB
/
build.gradle
File metadata and controls
43 lines (33 loc) · 1.21 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
plugins {
id "com.gradleup.shadow" version "${shadowVersion}"
}
description = "Java SPIFFE Library Helper module to store X.509 SVIDs and Bundles in a Java KeyStore in disk"
tasks.named('assemble') {
dependsOn(tasks.named('shadowJar'))
}
shadowJar {
mergeServiceFiles()
archiveClassifier = (project.findProperty('archiveClassifier')?.toString()?.trim())
? project.property('archiveClassifier').toString()
: osdetector.classifier
manifest {
attributes 'Main-Class': 'io.spiffe.helper.cli.Runner'
}
}
dependencies {
api(project(':java-spiffe-core'))
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'))
}
implementation "commons-cli:commons-cli:1.11.0"
testImplementation(testFixtures(project(":java-spiffe-core")))
}