-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
77 lines (54 loc) · 1.42 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
description = "Compiles ANTLR4, generates LaTeX documentation, tests AND builds jar"
apply plugin: 'java'
apply plugin: 'application'
apply plugin: 'idea'
apply plugin: 'antlr4'
//apply from: file('gradle/idea.gradle')
mainClassName = "InfixRunner"
buildscript {
repositories {
jcenter()
maven {
url uri('../repo')
}
}
dependencies {
classpath 'com.github.jengelman.gradle.plugins:shadow:0.8'
classpath group: 'com.johnpulford', name: 'antlr4plugin', version: '1.0-SNAPSHOT'
classpath group: 'com.johnpulford', name: 'pdflatexplugin', version: '1.0-SNAPSHOT'
}
}
apply plugin: 'shadow'
shadow {
exclude 'META-INF/*.DSA'
exclude 'META-INF/*.RSA'
}
ext.versions = [
testng: "6.8.8",
]
repositories {
mavenCentral()
}
dependencies {
//compile group: "org.antlr", name: "antlr4-runtime", version: versions.antlr
//antlr4 group: "org.antlr", name: "antlr4", version: versions.antlr
testCompile group: "org.testng", name: "testng", version: versions.testng
testCompile 'org.assertj:assertj-core:1.5.0'
}
task wrapper(type: Wrapper) {
gradleVersion = '2.0'
}
run {
if(project.hasProperty('args')) {
args project.args.split('\\s+')
}
}
jar {
manifest.attributes("Main-Class": mainClassName)
}
apply plugin: 'pdflatex'
task release(dependsOn: [build, shadowJar, genDocs]) {
}
test {
useTestNG()
}