60 lines
1.2 KiB
Groovy
60 lines
1.2 KiB
Groovy
ext.jadxVersion = file('version').readLines().get(0)
|
|
|
|
subprojects {
|
|
apply plugin: 'java'
|
|
apply plugin: 'idea'
|
|
apply plugin: 'eclipse'
|
|
|
|
sourceCompatibility = 1.6
|
|
targetCompatibility = 1.6
|
|
|
|
version = jadxVersion
|
|
|
|
compileJava {
|
|
options.compilerArgs << '-Xlint'
|
|
}
|
|
|
|
jar {
|
|
version = jadxVersion
|
|
}
|
|
|
|
manifest {
|
|
mainAttributes('jadx-version' : jadxVersion)
|
|
}
|
|
|
|
dependencies {
|
|
compile 'org.slf4j:slf4j-api:1.7.5'
|
|
testCompile 'junit:junit:4.11'
|
|
}
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
}
|
|
|
|
task copyArtifacts (type: Sync, dependsOn: ['jadx-cli:installApp', 'jadx-gui:installApp']) {
|
|
destinationDir file("$buildDir/jadx")
|
|
['jadx-cli', 'jadx-gui'].each {
|
|
from tasks.getByPath(":${it}:installApp").destinationDir
|
|
}
|
|
}
|
|
|
|
task pack (type: Zip, dependsOn: copyArtifacts) {
|
|
destinationDir buildDir
|
|
archiveName "jadx-${jadxVersion}.zip"
|
|
from copyArtifacts.destinationDir
|
|
}
|
|
|
|
task build (dependsOn: pack) {
|
|
description = 'Build jadx distribution zip'
|
|
}
|
|
|
|
task clean(type: Delete) {
|
|
delete buildDir
|
|
}
|
|
|
|
task wrapper(type: Wrapper) {
|
|
gradleVersion = '1.7'
|
|
}
|
|
|