54 lines
1.1 KiB
Groovy
54 lines
1.1 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']
|
|
}
|
|
resources {
|
|
srcDirs = ['src']
|
|
include '**/*.properties'
|
|
include '**/*.gif'
|
|
include '**/*.png'
|
|
include '**/*.pro'
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation project(':base')
|
|
}
|
|
|
|
task fatJar(type: ShadowJar) {
|
|
destinationDirectory.set(file("$rootDir/lib"))
|
|
archiveFileName.set('retrace.jar')
|
|
from sourceSets.main.output
|
|
configurations = [project.configurations.runtimeClasspath]
|
|
manifest {
|
|
attributes(
|
|
'Manifest-Version': '1.0',
|
|
'Multi-Release': true,
|
|
'Main-Class': 'proguard.retrace.ReTrace')
|
|
}
|
|
}
|
|
|
|
assemble.dependsOn fatJar
|
|
|
|
afterEvaluate {
|
|
publishing {
|
|
publications.getByName(project.name) {
|
|
pom {
|
|
description = "ReTrace is a companion tool for ProGuard and DexGuard that 'de-obfuscates' stack traces."
|
|
}
|
|
}
|
|
}
|
|
}
|