-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
46 lines (39 loc) · 1.11 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
plugins {
id 'java'
id 'application'
id 'antlr'
id 'eclipse'
}
repositories {
mavenCentral()
maven {
name = "GitHubPackages"
url 'https://maven.pkg.github.com/lisa-analyzer/lisa'
credentials {
username = project.findProperty("gpr.user") ?: System.getenv("USERNAME")
password = project.findProperty("gpr.key") ?: System.getenv("TOKEN")
}
}
}
dependencies {
antlr 'org.antlr:antlr4:4.8-1'
implementation 'io.github.lisa-analyzer:lisa-sdk:0.1b8'
implementation 'io.github.lisa-analyzer:lisa-program:0.1b8'
implementation 'io.github.lisa-analyzer:lisa-analyses:0.1b8'
testImplementation 'junit:junit:4.12'
}
application {
mainClass = 'it.unive.lisa.joycar.App'
}
generateGrammarSource {
maxHeapSize = "64m"
arguments += ["-visitor", "-no-listener"]
doLast {
copy {
from 'build/generated-src/antlr/main/'
include '*.*'
into 'build/generated-src/antlr/main/it/unive/lisa/joycar/antlr'
}
project.delete fileTree('build/generated-src/antlr/main').include('*.*')
}
}