-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
78 lines (63 loc) · 1.98 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
/*
* This file was generated by the Gradle 'init' task.
*
* This generated file contains a sample Scala library project to get you started.
* For more details take a look at the Scala plugin chapter in the Gradle
* User Manual available at https://docs.gradle.org/5.4.1/userguide/scala_plugin.html
*/
plugins {
// Apply the scala plugin to add support for Scala
id 'scala'
id 'antlr'
id 'java'
id 'application'
id 'com.github.maiflai.scalatest' version '0.26'
id 'com.github.johnrengelman.shadow' version '5.0.0'
id 'com.github.hierynomus.license' version '0.15.0'
}
version = "0.1"
mainClassName = "edu.kit.iti.hilbert.Main"
repositories {
// Use jcenter for resolving your dependencies.
// You can declare any Maven/Ivy/file repository here.
jcenter()
mavenCentral()
}
dependencies {
// Use Scala 2.12 in our library project
implementation 'org.scala-lang:scala-library:2.12.8'
// Use Scalatest for testing our library
testImplementation 'org.scalatest:scalatest_2.12:3.0.5'
// command line options
compile 'com.github.scopt:scopt_2.12:3.7.1'
// better command line interface (REPL)
compile 'org.jline:jline:3.14.1'
// Need scala-xml at test runtime
testRuntimeOnly 'org.scala-lang.modules:scala-xml_2.12:1.1.1'
testRuntimeOnly 'org.pegdown:pegdown:1.4.2'
// Runtime only needs antlr4-runtime, not the whole antlr4.
compile 'org.antlr:antlr4-runtime:4.7.1'
// Customise antlr4 version, for buildscript
antlr 'org.antlr:antlr4:4.7.1'
}
generateGrammarSource {
maxHeapSize = "64m"
arguments += ["-visitor", "-no-listener"]
}
jar {
manifest {
attributes "Main-Class": "edu.kit.iti.hilbert.Main"
}
}
license {
header file("HEADER")
include "**/*.java"
include "**/*.scala"
include "**/*.g4"
//exclude "$projectDir/gen/**/*.java"
mapping {
// java = "SLASHSTAR_STYLE"
// scala = "SLASHSTAR_STYLE"
g4 = "SLASHSTAR_STYLE"
}
}