build.gradle 2.43 KB
Newer Older
Sarah Grebing's avatar
Sarah Grebing committed
1
2
3
4
plugins {
    id "com.github.voplex95.lesscompiler" version "1.0.3"
}

Alexander Weigl's avatar
Alexander Weigl committed
5
6
7
8
9
10
11
12
apply plugin: 'antlr'

description = 'ui'

generateGrammarSource {
    arguments += ["-long-messages", "-package","antlrgrammars"]
}

Sarah Grebing's avatar
Sarah Grebing committed
13
14
15
16
17
18
19
20
lessCompile {
    source = file('src/main/resources/edu/kit/iti/formal/psdbg/gui/debugger-ui.less')
    target = file('build/resources/main/edu/kit/iti/formal/psdbg/gui/')
    //compress = true
}

processResources.dependsOn lessCompile

Alexander Weigl's avatar
Alexander Weigl committed
21
dependencies {
22
23
24
25
26
    compile group: 'de.jensd', name: 'fontawesomefx-materialdesignfont', version: '1.7.22-4'
    compile group: 'de.jensd', name: 'fontawesomefx-commons', version: '8.15'

//    compile group: 'de.jensd', name: 'fontawesomefx-materialdesignfont', version: '2.0.26-9.1.2'
//    compile group: 'de.jensd', name: 'fontawesomefx-commons', version: '9.1.2'
alexander.weigl's avatar
alexander.weigl committed
27
    compile group: 'org.fxmisc.richtext', name: 'richtextfx', version: '0.9.0'
Alexander Weigl's avatar
Alexander Weigl committed
28
    //compile group: 'org.fxmisc.richtext', name: 'richtextfx', version: '1.0.0-SNAPSHOT'
29
    compile group: 'org.controlsfx', name: 'controlsfx', version: '8.40.12'
Alexander Weigl's avatar
Alexander Weigl committed
30
31
32
33

    compile group: 'org.antlr', name: 'antlr4', version: '4.7'
    antlr group: 'org.antlr', name: 'antlr4', version: '4.7'

Sarah Grebing's avatar
Sarah Grebing committed
34
35
    //compile files("$rootDir/DockFX/build/libs/DockFX.jar")

Alexander Weigl's avatar
Alexander Weigl committed
36
37
38
39
    compile project(':rt-key')
    compile project(':DockFX')
    compile project(':lint')
}
Sarah Grebing's avatar
Sarah Grebing committed
40
41
42
43

def mainClassName = 'edu.kit.iti.formal.psdbg.gui.ProofScriptDebugger'

task runApp(type: JavaExec) {
44
    jvmArgs << '-Dsun.awt.disablegrab=true' << '-Dglass.disableGrab=true'
alexander.weigl's avatar
alexander.weigl committed
45
46
47
48
49
50
    /*applicationDefaultJvmArgs = [
            // For accessing VirtualFlow field from the base class in GridViewSkin
            "--add-opens=javafx.controls/javafx.scene.control.skin=ALL-UNNAMED",
            // For accessing InputMap used in RangeSliderBehavior
            "--add-exports=javafx.controls/com.sun.javafx.scene.control.inputmap=ALL-UNNAMED"
    ]*/
Sarah Grebing's avatar
Sarah Grebing committed
51
52
53
54
55
56
    classpath = sourceSets.main.runtimeClasspath
    main = mainClassName
}


task distJar(type: Jar) {
Sarah Grebing's avatar
Sarah Grebing committed
57

Sarah Grebing's avatar
Sarah Grebing committed
58
59
60
61
62
63
64
    manifest {
        attributes 'Main-Class': mainClassName
    }
    classifier="exe"
    from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
    with jar
}
Sarah Grebing's avatar
Sarah Grebing committed
65
66
67
68
69
70
71
72
73
74
75
distJar.dependsOn jar

task customFatJar(type: Jar) {
    manifest {
        attributes 'Main-Class': 'edu.kit.iti.formal.psdbg.gui.ProofScriptDebugger'
    }
    baseName = 'all-in-one-jar'
    from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
    with jar
}
customFatJar.dependsOn jar