-
Notifications
You must be signed in to change notification settings - Fork 13
/
build.gradle
101 lines (84 loc) · 2.81 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
93
94
95
96
97
98
99
100
apply plugin: 'java'
apply plugin: 'kotlin'
apply plugin: 'idea'
apply plugin: 'eclipse'
apply plugin: 'java-library-distribution'
group 'edu.byu.ece'
version '2.3-SNAPSHOT'
sourceCompatibility = '1.8'
assemble.dependsOn(installDist)
buildscript {
ext.kotlin_version = '1.3.0'
repositories {
mavenCentral()
jcenter()
}
dependencies {
classpath 'ch.raffael.gradlePlugins.antlr4:gradle-antlr4-plugin:1.0'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath 'org.junit.platform:junit-platform-gradle-plugin:1.0.0'
}
}
ext.junit4Version = '4.12'
ext.junitVintageVersion = '4.12.0'
ext.junitPlatformVersion = '1.0.0'
ext.junitJupiterVersion = '5.0.0'
apply plugin:'ch.raffael.antlr4'
apply plugin: 'org.junit.platform.gradle.plugin'
repositories {
mavenCentral()
}
dependencies {
compile fileTree(dir: 'jars', include: ['*.jar'])
compile 'com.caucho:hessian:4.0.38'
compile 'org.antlr:antlr4-runtime:4.6'
compile 'org.jdom:jdom2:2.0.6'
compile 'net.sourceforge.argparse4j:argparse4j:0.7.0'
compile 'net.sf.jopt-simple:jopt-simple:5.0.2'
compile 'com.github.javaparser:javaparser-core:3.0.0-RC.1'
compile 'ch.qos.logback:logback-classic:1.0.13'
testCompile "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
testCompile "org.junit.jupiter:junit-jupiter-api:$junitJupiterVersion"
testCompile "org.junit.platform:junit-platform-runner:$junitPlatformVersion"
testRuntime "org.junit.jupiter:junit-jupiter-engine:$junitJupiterVersion"
testRuntime "org.junit.vintage:junit-vintage-engine:$junitVintageVersion"
testCompile("junit:junit:${junit4Version}")
}
antlr4 {
// The version of the ANTLR tool to use; you can mix these
// using the runtimePackage argument
version = '4.6'
// what to generate
listener = true
visitor = false
// what package to find the runtime classes in;
// best used with preshadow
runtimePackage = 'org.antlr.v4.runtime'
// // where to put the generated classes
// destination = "$buildDir/antlr4/src"
//
// // where to put intermediate files
// generateDir = "$buildDir/antlr4/gen"
}
junitPlatform {
platformVersion '1.0.0'
// engines {
// // include 'junit-jupiter', 'junit-vintage'
// // exclude 'custom-engine'
// }
filters {
tags {
// // include 'fast'
exclude 'slow'
}
}
// includeClassNamePattern '.*Test'
// enableStandardTestTask true
// reportsDir file('build/test-results/junit-platform') // this is the default
// logManager 'org.apache.logging.log4j.jul.LogManager'
}
// Enable Java Assertions (AssertionError)
afterEvaluate {
def junitPlatformTestTask = tasks.getByName('junitPlatformTest')
junitPlatformTestTask.enableAssertions true
}