forked from McGill-ECSE321-Fall2019/project-group-10
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
42 lines (35 loc) · 856 Bytes
/
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
plugins {
id 'java'
id 'application'
}
mainClassName='Project-Backend.src.main.java.ca.mcgill.ecse321.project.ProjectApplication'
group = 'com.example'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '1.8'
repositories {
mavenCentral()
}
sourceSets {
main {
java { srcDir 'src/main/java' }
}
test {
java { srcDir 'src/test/java'}
}
}
task compile(type: JavaCompile) {
classpath = sourceSets.main.compileClasspath
classpath += sourceSets.test.runtimeClasspath
sourceSets.test.java.outputDir = file('build/bin')
sourceSets.main.java.outputDir = file('build/bin')
}
task stage () {
dependsOn ':Project-Backend:assemble'
}
jar {
destinationDir=file('distributable')
manifest {
// It is smart to reuse the name of the main class variable instead of hardcoding it
attributes "Main-Class": "$mainClassName"
}
}