-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
49 lines (39 loc) · 1007 Bytes
/
build.gradle
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
apply plugin: "java"
apply plugin: "application"
group = "agency.highlysuspect"
version = "1.0"
java.toolchain.languageVersion = JavaLanguageVersion.of(8)
compileJava {
sourceCompatibility = "8"
targetCompatibility = "8"
}
repositories {
mavenCentral()
}
dependencies {
//testImplementation platform("org.junit:junit-bom:5.9.1")
//testImplementation "org.junit.jupiter:junit-jupiter"
compileOnly "org.jetbrains:annotations:24.1.0"
implementation "org.ow2.asm:asm:9.7"
}
test {
//useJUnitPlatform()
}
application {
mainClass = "agency.highlysuspect.jargrep.JarGrep"
}
tasks.register('fat', Jar) {
manifest {
attributes "Main-Class": project.application.mainClass
}
archiveClassifier = "all"
from {
configurations.runtimeClasspath.collect {it.isDirectory() ? it : zipTree(it)}
}
with jar
}
//What
tasks.named("run").configure {
it.dependsOn(tasks.named("build"))
it.workingDir = file("./random-test-data")
}