-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
43 lines (34 loc) · 854 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
import com.github.jengelman.gradle.plugins.shadow.tasks.ConfigureShadowRelocation
plugins {
id 'java'
id 'com.github.johnrengelman.shadow' version '7.0.0'
}
compileJava {
options.encoding = 'UTF-8'
}
sourceCompatibility = 7
targetCompatibility = 7
group 'cc.makin'
version 'Final'
repositories {
mavenCentral()
}
dependencies {
implementation group: 'org.ow2.asm', name: 'asm', version: '9.2'
}
shadowJar {
archiveFileName = 'Log4jCveFix.jar'
manifest {
attributes "Premain-Class": "cc.makin.log4jfix.Agent"
attributes "Can-Retransform-Classes": true
attributes "Can-Redefine-Classes": true
}
}
task relocateShadowJar(type: ConfigureShadowRelocation) {
target = tasks.shadowJar
prefix = "cc.makin"
}
tasks.shadowJar.dependsOn tasks.relocateShadowJar
test {
useJUnitPlatform()
}