forked from lewin/cs270project
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
44 lines (37 loc) · 994 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
43
44
/*
* Generated by Gradle 4.4.1.
* https://docs.gradle.org/4.4.1/userguide/tutorial_java_projects.html
*/
// Apply the java plugin to add support for Java
apply plugin: 'java'
// Apply the application plugin to add support for building an application
apply plugin: 'application'
mainClassName = 'Scheduler.Schedule'
repositories {
flatDir name: 'libs', dirs: "$projectDir/lib"
}
dependencies {
implementation 'com.google.code.gson:gson:2.2.2'
implementation 'joptsimple:jopt-simple:4.4'
implementation 'lpsolve:lpsolve55j'
}
//
// task copyLibs(type: Copy) {
// into "${buildDir}/libs"
// from configurations.runtime
// }
//
// build.dependsOn(copyLibs)
jar {
archiveBaseName = "Scheduler"
manifest {
mainAttributes("Main-Class": "Scheduler.Schedule")
}
}
// Pre-Gradle 4.9: pass args as 'gradle run -Pdata="['data.json']"'
// args = [project.property('args')]
run {
if (project.hasProperty("data")) {
args Eval.me(data)
}
}