-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
49 lines (40 loc) · 1.48 KB
/
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
plugins {
id 'java'
}
group = 'me.threedr3am.security'
version = '1.0-SNAPSHOT'
repositories {
mavenCentral()
}
dependencies {
// Process options
implementation("info.picocli:picocli:4.7.3")
// Logger
implementation group: 'org.slf4j', name: 'slf4j-api', version: '2.0.9'
implementation group: 'ch.qos.logback', name: 'logback-core', version: '1.4.13'
implementation group: 'ch.qos.logback', name: 'logback-classic', version: '1.4.13'
// Use ASM to read Java class files
implementation("org.ow2.asm:asm:9.4")
// lombok
compileOnly group: 'org.projectlombok', name: 'lombok', version: '1.18.30'
annotationProcessor group: 'org.projectlombok', name: 'lombok', version: '1.18.30'
testCompileOnly group: 'org.projectlombok', name: 'lombok', version: '1.18.30'
testAnnotationProcessor group: 'org.projectlombok', name: 'lombok', version: '1.18.30'
testImplementation platform('org.junit:junit-bom:5.10.0')
testImplementation 'org.junit.jupiter:junit-jupiter'
}
test {
useJUnitPlatform()
}
task customFatJar(type: Jar) {
manifest {
attributes 'Main-Class': 'me.threedr3am.security.jar.compatibility.Detection'
}
archiveBaseName = 'CompatibilityDetector'
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
from { configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) } }
with jar
}
project.jar.enabled(false)
project.build.dependsOn(customFatJar)
project.assemble.dependsOn(customFatJar)