build.gradle 624 字节
Newer Older
S
Skylot 已提交
1 2
apply plugin: 'application'

S
Skylot 已提交
3 4
mainClassName = 'jadx.cli.JadxCLI'
applicationName = 'jadx'
S
Skylot 已提交
5 6

dependencies {
S
Skylot 已提交
7
    compile(project(':jadx-core'))
S
Skylot 已提交
8 9 10 11 12 13 14
    compile 'com.beust:jcommander:1.30'
}

startScripts {
    doLast {
        // increase default max heap size
        String var = 'DEFAULT_JVM_OPTS='
S
Skylot 已提交
15
        String args = '-Xmx1300M'
S
Skylot 已提交
16 17 18 19 20 21 22
        unixScript.text = unixScript.text.replace(var + '""', var + '"' + args + '"')
        windowsScript.text = windowsScript.text.replace(var, var + args)
    }
}

applicationDistribution.with {
    into('') {
S
Skylot 已提交
23
        from '../.'
S
Skylot 已提交
24 25 26 27 28
        include 'README.md'
        include 'NOTICE'
    }
}