-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
92 lines (72 loc) · 2.26 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
84
85
86
87
88
89
90
91
92
group 'de.tudresden.inf.st'
version '1.0-SNAPSHOT'
apply plugin: 'java'
apply plugin: 'jastadd'
apply plugin: 'application'
mainClassName = 'de.tudresden.inf.st.most.ExerciseMain'
sourceCompatibility = 1.8
repositories {
mavenCentral()
}
dependencies {
compile group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: '2.8.8.1'
compile group: 'net.sf.beaver', name: 'beaver-rt', version: '0.9.11'
testCompile 'junit:junit:4.12'
testCompile files('libs/DrAST-1.2.2.jar')
testCompile fileTree(dir: "${System.properties['java.home']}", include: '**/jfxrt.jar')
}
buildscript {
repositories.mavenLocal()
repositories.mavenCentral()
dependencies {
classpath 'org.jastadd:jastaddgradle:1.10.3'
}
}
jar {
manifest {
attributes(
'Class-Path': configurations.compile.collect { it.getName() }.join(' '),
'Main-Class': 'de.tudresden.inf.st.most.ExerciseMain'
)
}
}
javadoc {
// this is only run to get the index file etc.
failOnError = false
}
task DrAST(type: JavaExec, dependsOn:jar) {
group = "verification"
description = 'run the DrAST visual debugger tool'
classpath = sourceSets.test.runtimeClasspath
main = 'de.tudresden.inf.st.most.DrAstRunner'
}
task RagDoll(type: Javadoc, dependsOn:javadoc) {
doFirst {
options.addStringOption("ragroot", "./src/main/jastadd")
}
group = "documentation"
description = 'create a RagDoll documentation'
classpath = javadoc.classpath
destinationDir = javadoc.destinationDir
excludes = javadoc.excludes
executable = javadoc.executable
failOnError = false
includes = javadoc.includes
options.doclet = "ragdoll.RagDollDoclet"
options.docletpath = files('libs/RagDoll.jar').asList()
source = javadoc.source
options.linkSource = true
// title not working for some reason
title = ""
}
jastadd {
configureModuleBuild()
modules "jastadd_modules"
module = "expressions"
astPackage = 'de.tudresden.inf.st.most.jastadd.ast'
genDir = 'src/gen/java'
buildInfoDir = 'src/gen-res'
parser.name = 'ExpressionParser'
scanner.genDir = "src/gen/java/de/tudresden/inf/st/most/jastadd/scanner"
parser.genDir = "src/gen/java/de/tudresden/inf/st/most/jastadd/parser"
}