-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
84 lines (69 loc) · 2.16 KB
/
build.gradle
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
plugins {
id 'antlr'
id 'application'
id 'org.openjfx.javafxplugin' version '0.0.8'
}
apply plugin: 'antlr'
apply plugin: 'idea'
apply plugin: 'java'
javafx {
version = "11.0.2"
modules = [ 'javafx.controls', 'javafx.fxml', 'javafx.web' ]
}
repositories {
jcenter()
mavenCentral()
}
dependencies {
compile 'org.antlr:antlr4-runtime:4.7.2'
antlr("org.antlr:antlr4:4.7.2")
compile 'com.google.code.gson:gson:2.8.2'
implementation 'javax.xml.bind:jaxb-api:2.4.0-b180830.0359'
compile 'com.fasterxml.jackson.dataformat:jackson-dataformat-xml:2.9.0'
compile 'com.sun.xml.bind:jaxb-osgi:2.4.0-b180830.0438'
compile 'org.openjfx:javafx-fxml:11.0.2'
compile "org.openjfx:javafx-base:11.0.2"
compile "org.openjfx:javafx-graphics:11.0.2"
compile "org.openjfx:javafx-controls:11.0.2"
compile "org.openjfx:javafx-fxml:11.0.2"
compile 'org.openjfx:javafx-web:11.0.2'
}
generateGrammarSource {
maxHeapSize = "64m"
arguments += ['-package', 'grammar']
outputDirectory = new File("antlr".toString())
}
compileJava.dependsOn generateGrammarSource
sourceSets {
generated {
java.srcDir 'antlr'
}
}
compileJava.source sourceSets.generated.java, sourceSets.main.java
clean {
delete "antlr"
}
idea {
module {
sourceDirs += file("antlr")
}
}
task basicBlockParserJar(type: Jar) {
manifest {
attributes 'Implementation-Title': 'Basic block parsing test main class',
'Implementation-Version': '0.1',
'Main-Class': 'shakeanapple.backtracker.parser.fblockdiagram.fromscratch.nusmvparsing.ParseBlockMain'
}
//baseName = 'parse-block'//project.name + '-all'
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
with jar
}
jar {
manifest {
attributes 'Main-Class': 'shakeanapple.backtracker.Main'
}
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
}
mainClassName = 'shakeanapple.backtracker.Main'
//mainClassName = 'shakeanapple.backtracker.Main'
//mainClassName = 'shakeanapple.backtracker.ui.infrasructure.control.visgraph.visfx.examples.ComplexGraph'