59 lines
1.4 KiB
Groovy
59 lines
1.4 KiB
Groovy
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
|
|
|
|
plugins {
|
|
id 'com.github.johnrengelman.shadow'
|
|
id 'java'
|
|
id 'maven-publish'
|
|
}
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
sourceSets.main {
|
|
java {
|
|
srcDirs = ['src']
|
|
include '**/*.java'
|
|
}
|
|
resources {
|
|
srcDirs = ['src']
|
|
include '**/*.properties'
|
|
include '**/*.gif'
|
|
include '**/*.png'
|
|
include '**/*.pro'
|
|
}
|
|
}
|
|
|
|
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'
|
|
}
|
|
}
|
|
}
|
|
}
|