-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
94 lines (77 loc) · 1.83 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
buildscript {
ext.kotlin_version = '1.2.41'
repositories {
jcenter()
mavenCentral()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
apply plugin: 'java'
apply plugin: 'kotlin'
apply plugin: 'antlr'
apply plugin: 'maven'
apply plugin: 'jacoco'
group = "com.github.sybila"
version = '2.2.0'
//antlr config
generateGrammarSource {
arguments += [
"-no-visitor",
"-listener"
]
}
// make the Java compile task depend on the antlr4 task
compileKotlin.dependsOn generateGrammarSource
repositories {
mavenCentral()
maven { url "https://jitpack.io" }
}
dependencies {
testCompile group: 'junit', name: 'junit', version: '4.11'
compile 'com.intellij:annotations:5.1'
compile 'com.github.daemontus:jafra:1.0.8'
compile 'com.github.daemontus:egholm:0.3.0'
compile 'com.github.sybila:ctl-parser:2.2.2'
compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
testCompile "org.jetbrains.kotlin:kotlin-test:$kotlin_version"
antlr "org.antlr:antlr4:4.6"
}
sourceSets {
main.java.srcDirs += 'src/main/kotlin'
test.java.srcDirs += 'src/test/kotlin'
}
task javadocJar(type: Jar) {
classifier = 'javadoc'
from javadoc
}
task sourcesJar(type: Jar) {
classifier = 'sources'
from sourceSets.main.allSource
}
artifacts {
archives javadocJar
archives sourcesJar
}
jacoco {
toolVersion = "0.7.5.201505241946"
}
jacocoTestReport {
reports {
xml.enabled = true
html.enabled = true
}
}
check.dependsOn jacocoTestReport
test {
testLogging {
events "passed", "skipped", "failed"
}
void
}
//travis has some strict RAM restrictions, can't afford to exceed this on the CI server
tasks.withType(Test) {
maxHeapSize = "1024m"
jvmArgs "-Xmx1024m"
}