-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
50 lines (42 loc) · 1.26 KB
/
Copy pathbuild.gradle
File metadata and controls
50 lines (42 loc) · 1.26 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
plugins {
// Builds a runnable CLI and lets `./gradlew run` launch it.
id 'application'
}
group = 'dev.khldlabs'
version = '0.1.0'
repositories {
mavenCentral()
}
dependencies {
// JavaParser gives us a real AST of each source file, so the detector can
// reason about statement *order* inside a method (verify-before-use), not
// just whether some text appears somewhere.
implementation 'com.github.javaparser:javaparser-core:3.26.2'
testImplementation platform('org.junit:junit-bom:5.11.3')
testImplementation 'org.junit.jupiter:junit-jupiter'
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
}
java {
toolchain {
languageVersion = JavaLanguageVersion.of(17)
}
}
application {
mainClass = 'dev.khldlabs.webhookcheck.Main'
}
// Produce a single runnable "fat" jar (webhookcheck.jar) with dependencies
// bundled in, so `java -jar build/libs/webhookcheck.jar ./src` works.
jar {
archiveBaseName = 'webhookcheck'
archiveVersion = ''
manifest {
attributes 'Main-Class': application.mainClass
}
from {
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
}
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
}
test {
useJUnitPlatform()
}