-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
70 lines (57 loc) · 1.71 KB
/
Copy pathbuild.gradle.kts
File metadata and controls
70 lines (57 loc) · 1.71 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
65
66
67
68
69
70
plugins {
java
}
group = "dev.workflowguard"
version = "0.3.3"
repositories {
mavenCentral()
}
dependencies {
compileOnly("net.portswigger.burp.extensions:montoya-api:2026.7")
implementation("com.fasterxml.jackson.core:jackson-databind:2.22.2")
implementation("com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.22.2")
implementation("com.google.re2j:re2j:1.8")
testImplementation("net.portswigger.burp.extensions:montoya-api:2026.7")
testImplementation(project(":fixture"))
testImplementation(platform("org.junit:junit-bom:6.1.3"))
testImplementation("org.junit.jupiter:junit-jupiter")
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
}
dependencyLocking {
lockAllConfigurations()
}
java {
toolchain {
languageVersion = JavaLanguageVersion.of(21)
}
}
tasks.withType<JavaCompile>().configureEach {
options.encoding = "UTF-8"
options.release = 21
}
tasks.test {
useJUnitPlatform()
}
tasks.jar {
archiveBaseName = "workflowguard"
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
from(rootProject.file("LICENSE")) {
into("META-INF")
rename { "LICENSE-WORKFLOWGUARD" }
}
from(rootProject.file("THIRD_PARTY_NOTICES.md")) {
into("META-INF")
}
from(rootProject.file("licenses/RE2J-LICENSE.txt")) {
into("META-INF")
rename { "LICENSE-RE2J" }
}
from(configurations.runtimeClasspath.get().filter { it.isDirectory })
from(configurations.runtimeClasspath.get().filterNot { it.isDirectory }.map { zipTree(it) })
manifest {
attributes(
"Implementation-Title" to "WorkflowGuard",
"Implementation-Version" to project.version
)
}
}