-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
58 lines (46 loc) · 1.01 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
plugins {
// For runnable JARs
id 'application'
id 'distribution'
}
// Java project
apply plugin: 'java'
// Repositories providers
repositories {
mavenCentral()
}
dependencies {
implementation "junit:junit:4.11"
implementation group: 'org.eclipse.jgit', name: 'org.eclipse.jgit', version: '5.11.1.202105131744-r'
}
task javacc21(type:Exec) {
delete "./generated/"
workingDir './javacc/'
commandLine 'java', '-jar', '../libs/javacc-full.jar', 'JmmGrammar.jj', '-d', '../generated/'
}
compileJava.dependsOn javacc21
// Project sources
sourceSets {
main {
java {
srcDir 'src'
srcDir 'src-lib'
srcDir 'src-testing'
srcDir 'src-private'
srcDir 'generated'
srcDir 'test_project'
}
}
test {
java {
srcDir 'test'
}
resources {
srcDir 'test'
}
}
}
mainClassName = 'pt.up.fe.comp.Launcher'
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
}