build.gradle 1.0 KB
Newer Older
S
Skylot 已提交
1 2
apply plugin: 'application'

S
Skylot 已提交
3
mainClassName = 'jadx.gui.JadxGUI'
S
Skylot 已提交
4 5 6 7

dependencies {
    compile(project(":jadx-core"))
    compile(project(":jadx-cli"))
8
    compile 'com.fifesoft:rsyntaxtextarea:2.5.8'
S
Skylot 已提交
9
    compile 'com.google.code.gson:gson:2.3.1'
S
Skylot 已提交
10
    compile files('libs/jfontchooser-1.0.5.jar')
S
Skylot 已提交
11 12 13 14
}

applicationDistribution.with {
    into('') {
S
Skylot 已提交
15
        from '../'
S
Skylot 已提交
16 17
        include 'README.md'
        include 'NOTICE'
S
Skylot 已提交
18
        include 'LICENSE'
S
Skylot 已提交
19 20 21
    }
}

22 23 24
jar {
    manifest {
        attributes(
S
Skylot 已提交
25 26 27 28 29 30 31 32 33 34 35 36 37
                "Main-Class": mainClassName,
                "Class-Path": configurations.compile.collect { it.getName() }.join(' ')
        )
    }
}

startScripts {
    doLast {
        def str = windowsScript.text
        str = str.replaceAll('java.exe', 'javaw.exe')
        str = str.replaceAll('"%JAVA_EXE%" %DEFAULT_JVM_OPTS%',
                'start "jadx-gui" /B "%JAVA_EXE%" %DEFAULT_JVM_OPTS%')
        windowsScript.text = str
38 39 40
    }
}

41 42 43 44 45 46
test {
    jacoco {
        // coveralls plugin not support multi-project
        enabled = false
    }
}