-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
74 lines (57 loc) · 1.26 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
plugins {
// For runnable JARs
id 'application'
id 'distribution'
}
// Java project
apply plugin: 'java'
java {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
// ANTLR support
apply plugin: 'antlr'
// Repositories providers
repositories {
mavenCentral()
}
tasks.withType(Tar) {
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
}
tasks.withType(Zip) {
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
}
installDist {
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
}
dependencies {
implementation "junit:junit:4.11"
implementation group: 'com.google.code.gson', name: 'gson', version: '2.10'
antlr "org.antlr:antlr4:4.5.3"
// https://mvnrepository.com/artifact/org.fusesource.jansi/jansi
implementation 'org.fusesource.jansi:jansi:2.4.0'
}
// Project sources
sourceSets {
main {
java {
srcDir 'src/main'
}
}
test {
java {
srcDir 'test'
srcDir 'test-private'
}
resources {
srcDir 'test'
srcDir 'test-private'
}
}
}
application {
mainClass = 'pt.up.fe.comp2024.Launcher'
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
}