-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
51 lines (42 loc) · 1.04 KB
/
build.gradle.kts
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
plugins {
id("java")
id("com.github.johnrengelman.shadow") version "8.1.1"
}
group = "com.opcod3r.dev"
version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
}
sourceSets {
main {
java {
srcDirs("src")
}
}
}
dependencies {
testImplementation(platform("org.junit:junit-bom:5.10.0"))
testImplementation("org.junit.jupiter:junit-jupiter")
implementation("net.portswigger.burp.extender:burp-extender-api:2.2")
implementation("com.moandjiezana.toml:toml4j:0.7.2")
}
tasks.register<Jar>("bigJar") {
archiveBaseName.set("${project.name}-all")
from(sourceSets.main.get().output)
dependsOn(configurations.runtimeClasspath)
from({
configurations.runtimeClasspath.get().map { if (it.isDirectory) it else zipTree(it) }
})
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
with(tasks.jar.get())
}
tasks.shadowJar {
archiveClassifier.set("all")
mergeServiceFiles()
}
tasks.test {
useJUnitPlatform()
}
tasks.withType<JavaCompile> {
options.encoding = "UTF-8"
}