Files
jadx/build.gradle
T
2013-07-24 17:40:49 +04:00

55 lines
1.1 KiB
Groovy

apply plugin: 'idea'
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
jar {
version = jadxVersion
}
manifest {
mainAttributes("jadx-version" : jadxVersion)
}
dependencies {
compile 'org.slf4j:slf4j-api:1.7.5'
compile 'ch.qos.logback:logback-classic:1.0.13'
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 clean(type: Delete) {
delete buildDir
}
task wrapper(type: Wrapper) {
gradleVersion = '1.6'
}