-
Notifications
You must be signed in to change notification settings - Fork 428
/
Copy pathbuild.gradle
44 lines (38 loc) · 1.16 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
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
plugins {
id 'com.github.johnrengelman.shadow'
id 'java'
id 'maven-publish'
}
repositories {
mavenCentral()
}
dependencies {
implementation project(':base')
implementation project(':retrace')
implementation 'org.apache.logging.log4j:log4j-api:2.24.2'
implementation 'org.apache.logging.log4j:log4j-core:2.24.2'
}
task fatJar(type: ShadowJar) {
destinationDirectory.set(file("$rootDir/lib"))
archiveFileName.set('proguardgui.jar')
from sourceSets.main.output
configurations = [project.configurations.runtimeClasspath]
manifest {
attributes(
'Manifest-Version': '1.0',
'Main-Class': 'proguard.gui.ProGuardGUI',
'Multi-Release': true,
'Implementation-Version': archiveVersion.get())
}
}
assemble.dependsOn fatJar
afterEvaluate {
publishing {
publications.getByName(project.name) {
pom {
description = 'ProGuardGUI is an interface for ProGuard, the free shrinker, optimizer, obfuscator, and preverifier for Java bytecode'
}
}
}
}