2013-03-18 17:05:00 +00:00
|
|
|
apply plugin: 'idea'
|
|
|
|
|
2013-07-10 19:47:45 +00:00
|
|
|
ext.jadxVersion = file('version').readLines().get(0)
|
2013-03-18 17:05:00 +00:00
|
|
|
|
2013-07-10 19:47:45 +00:00
|
|
|
subprojects {
|
|
|
|
apply plugin: 'java'
|
|
|
|
apply plugin: 'idea'
|
|
|
|
apply plugin: 'eclipse'
|
2013-03-18 17:05:00 +00:00
|
|
|
|
2013-07-10 19:47:45 +00:00
|
|
|
sourceCompatibility = 1.6
|
|
|
|
targetCompatibility = 1.6
|
2013-03-18 17:05:00 +00:00
|
|
|
|
2013-07-24 13:05:31 +00:00
|
|
|
version = jadxVersion
|
|
|
|
|
2013-07-10 19:47:45 +00:00
|
|
|
jar {
|
|
|
|
version = jadxVersion
|
2013-03-18 17:05:00 +00:00
|
|
|
}
|
|
|
|
|
2013-07-10 19:47:45 +00:00
|
|
|
manifest {
|
|
|
|
mainAttributes("jadx-version" : jadxVersion)
|
|
|
|
}
|
2013-03-18 17:05:00 +00:00
|
|
|
|
2013-07-10 19:47:45 +00:00
|
|
|
dependencies {
|
|
|
|
compile 'org.slf4j:slf4j-api:1.7.5'
|
|
|
|
compile 'ch.qos.logback:logback-classic:1.0.13'
|
|
|
|
testCompile 'junit:junit:4.11'
|
2013-03-18 17:05:00 +00:00
|
|
|
}
|
|
|
|
|
2013-07-10 19:47:45 +00:00
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
2013-03-18 17:05:00 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-07-24 13:05:31 +00:00
|
|
|
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
|
|
|
|
}
|
|
|
|
|
2013-03-18 17:05:00 +00:00
|
|
|
task wrapper(type: Wrapper) {
|
2013-05-25 16:11:10 +00:00
|
|
|
gradleVersion = '1.6'
|
2013-03-18 17:05:00 +00:00
|
|
|
}
|
|
|
|
|