-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
59 lines (51 loc) · 1.19 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
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.github.jengelman.gradle.plugins:shadow:2.0.3'
}
}
// Plugins
apply plugin: 'java'
apply plugin: 'com.github.johnrengelman.shadow'
// Project properties
group 'br.ufmg.ppgee.orcslab'
version '1.0.0'
// Java version
sourceCompatibility = 1.8
// Configure repositories
repositories {
mavenCentral()
maven { url "https://jitpack.io" }
}
// Gurobi path
if (!System.properties.containsKey('gurobi.home')) {
if ("$System.env.GUROBI_HOME".length() > 0) {
System.properties.setProperty('gurobi.home', "$System.env.GUROBI_HOME")
}
}
// Dependencies
dependencies {
compile 'com.beust:jcommander:1.72'
compile 'com.github.andremaravilha:jopt:1.2.0'
compile files(System.properties['gurobi.home'] + '/lib/gurobi.jar')
testCompile 'junit:junit:4.12'
}
// Configure JAR
jar {
baseName = 'code'
classifier = null
version = null
manifest {
attributes(
'Main-Class': 'br.ufmg.ppgee.orcslab.code.Main'
)
}
}
// Configure JAR with embedded dependencies
shadowJar {
baseName = 'code'
classifier = 'all'
version = null
}