-
Notifications
You must be signed in to change notification settings - Fork 11
/
build.gradle
77 lines (65 loc) · 1.94 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
buildscript {
ext.kotlin_version = '1.6.0'
repositories {
mavenCentral()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
plugins {
id "org.jetbrains.kotlin.jvm" version "$kotlin_version"
id 'java'
id 'antlr'
id 'idea'
id 'application'
}
repositories {
mavenLocal()
mavenCentral()
}
project.group = "com.strumenta"
project.version = "0.1"
mainClassName = "com.strumenta.javacc.JavaCCToAntlrConverter"
dependencies {
antlr 'org.antlr:antlr4:4.9.3'
implementation 'org.antlr:antlr4-runtime:4.9.3'
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
implementation "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
implementation 'me.tomassetti:kolasu:0.2.2'
testImplementation "org.jetbrains.kotlin:kotlin-test:$kotlin_version"
testImplementation "org.jetbrains.kotlin:kotlin-test-junit:$kotlin_version"
testImplementation 'junit:junit:4.13.2'
testImplementation 'org.slf4j:slf4j-simple:1.7.25'
implementation group: 'net.java.dev.javacc', name: 'javacc', version: '7.0.3'
implementation 'com.github.julianthome:inmemantlr-api:1.7.0'
}
generateGrammarSource {
maxHeapSize = "64m"
arguments += ['-package', 'com.strumenta.javacc']
outputDirectory = new File("generated-src/antlr/main/com/strumenta/javacc".toString())
}
sourceSets {
generated {
java.srcDir 'generated-src/antlr/main/'
}
}
compileGeneratedJava.enabled false
compileGeneratedKotlin.enabled false
compileJava {
dependsOn generateGrammarSource
source sourceSets.generated.java, sourceSets.main.java
}
compileKotlin {
dependsOn generateGrammarSource
dependsOn generateGeneratedGrammarSource
source sourceSets.generated.java, sourceSets.main.java, sourceSets.main.kotlin
}
clean {
delete "generated-src"
}
idea {
module {
//sourceDirs += file("generated-src/antlr/main")
}
}