build.gradle 648 字节
Newer Older
S
Skylot 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
apply plugin: 'application'

mainClassName = "jadx.cli.JadxCLI"

dependencies {
    compile(project(":jadx-core"))
    compile 'com.beust:jcommander:1.30'
}

build.dependsOn distZip
build.dependsOn installApp

startScripts {
    doLast {
        // increase default max heap size
        String var = 'DEFAULT_JVM_OPTS='
        String args = '-Xmx1400M'
        unixScript.text = unixScript.text.replace(var + '""', var + '"' + args + '"')
        windowsScript.text = windowsScript.text.replace(var, var + args)
    }
}

applicationDistribution.with {
    into('') {
        from '.'
        include 'README.md'
        include 'NOTICE'
    }
}