-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
56 lines (39 loc) · 1.32 KB
/
build.gradle
File metadata and controls
56 lines (39 loc) · 1.32 KB
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
plugins {
// Apply the Kotlin JVM plugin to add support for Kotlin on the JVM.
id 'org.jetbrains.kotlin.jvm' version '1.3.21'
// Apply the application plugin to add support for building a CLI application.
id 'application'
// Generate Antlr java files
id 'antlr'
}
repositories {
// Use jcenter for resolving your dependencies.
// You can declare any Maven/Ivy/file repository here.
jcenter()
}
dependencies {
// Use the Kotlin JDK 8 standard library.
implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk8'
// Use the Kotlin test library.
testImplementation 'org.jetbrains.kotlin:kotlin-test'
// Use the Kotlin JUnit integration.
testImplementation 'org.jetbrains.kotlin:kotlin-test-junit'
implementation "org.antlr:antlr4-maven-plugin:4.7.2"
}
// Define the main class for the application.
mainClassName = 'aadl.Translate'
sourceSets {
main {
java.srcDirs = ['src/main/jvm', 'src/main/gen']
resources.srcDirs = ['src/main/resources']
antlr.srcDirs = ['src/main/antlr']
}
test {
java.srcDirs = ['src/test/kotlin']
resources.srcDirs = ['src/test/resources']
}
}
generateGrammarSource {
outputDirectory = file 'src/main/gen/antlr/aadl/'
arguments = ['-visitor', '-package', 'antlr.aadl'] + arguments
}