-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
64 lines (48 loc) · 1.54 KB
/
build.gradle.kts
File metadata and controls
64 lines (48 loc) · 1.54 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
plugins {
id("build-logic.java")
id("application")
id("com.gradleup.shadow") version "9.0.0-rc3"
}
repositories {
mavenCentral()
}
dependencies {
implementation(project(":sigstore-java"))
implementation("info.picocli:picocli:4.7.6")
implementation("com.google.guava:guava:33.4.8-jre")
implementation(platform("com.google.oauth-client:google-oauth-client-bom:1.39.0"))
implementation("com.google.oauth-client:google-oauth-client")
implementation("org.eclipse.jetty:jetty-server:11.0.26")
implementation("org.eclipse.jetty:jetty-servlet:11.0.26")
implementation("org.slf4j:slf4j-simple:2.0.17")
annotationProcessor("info.picocli:picocli-codegen:4.7.6")
}
tasks.compileJava {
options.compilerArgs.add("-Aproject=${project.group}/${project.name}")
}
application {
mainClass.set("dev.sigstore.tuf.cli.Tuf")
}
distributions.main {
contents {
from("tuf-cli.xfails") {
into("bin")
}
}
}
tasks.run.configure {
workingDir = rootProject.projectDir
}
tasks.register<ShadowJar>("serverShadowJar") {
archiveBaseName.set("tuf-cli-server")
archiveClassifier.set("all")
archiveVersion.set("")
mergeServiceFiles()
from(sourceSets.main.get().output)
configurations = listOf(project.configurations.runtimeClasspath.get())
exclude("META-INF/*.SF", "META-INF/*.DSA", "META-INF/*.RSA")
manifest {
attributes("Main-Class" to "dev.sigstore.tuf.cli.TufConformanceServer")
}
}