forked from Sushant-Chavan/coordination_oru
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
98 lines (80 loc) · 3.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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
/*
* coordination_oru_ros - Online coordination for multiple robots
*
* Copyright (C) 2017 Federico Pecora
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or (at
* your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see http://www.gnu.org/licenses/.
*
*/
apply plugin: 'java'
apply plugin: 'eclipse'
// The Maven plugin is only required if your package is used as a library.
apply plugin: 'maven'
// The Application plugin and mainClassName attribute are only required if
// your package is used as a binary.
apply plugin: 'application'
// The main class that will be executed when you do 'gradle run'
mainClassName = 'se.oru.coordination.coordination_oru.demo.DemoLauncher'
sourceCompatibility = 1.6
targetCompatibility = 1.6
task wrapper(type: Wrapper) {
gradleVersion = '4.2.1'
}
repositories {
mavenLocal()
jcenter()
maven { url 'https://jitpack.io' }
maven { url 'https://github.com/rosjava/rosjava_mvn_repo/raw/master/' }
}
configurations.all {
resolutionStrategy.cacheChangingModulesFor 0, 'seconds'
}
version = '0.0.0-SNAPSHOT'
// Call your group something meaninful, e.g., '<inverse-url>.<project-name>'
group = 'se.oru.coordination'
dependencies {
// This pulls in the meta-csp-framework jar
//compile 'org.metacsp:meta-csp-framework:1.3.4'
//compile 'org.metacsp:meta-csp-framework:0.0.0-SNAPSHOT'
compile 'com.github.FedericoPecora:meta-csp-framework:master-SNAPSHOT'
//For interface with OMPL
compile 'net.java.dev.jna:jna:4.4.0'
compile 'org.jgrapht:jgrapht-core:1.0.1'
//For demo infrastructure
compile 'org.reflections:reflections:0.9.11'
//For RVizVisualization
compile 'org.ros.rosjava_core:rosjava:[0.3,0.4)'
compile 'org.ros.rosjava_messages:visualization_msgs:[1.12,1.13)'
//For BrowserVisualization
compile 'org.eclipse.jetty.websocket:websocket-api:9.4.12.v20180830'
compile 'org.eclipse.jetty.websocket:websocket-server:9.4.12.v20180830'
compile 'org.eclipse.jetty.websocket:websocket-client:9.4.12.v20180830'
//For JSON file handling
implementation 'com.google.code.gson:gson:2.8.5'
// Add the following if you need to include jars that are not
// in Maven Central and that you have places in the directory "lib"
// (NOTE: you have to create this directory if you need it)
//compile fileTree(dir: 'lib', include: '**/*.jar')
}
run {
if (project.hasProperty("demo") && project.hasProperty("nRobots") &&
project.hasProperty("planner") && project.hasProperty("map") &&
project.hasProperty("constrained") && project.hasProperty("no_hotspots") &&
project.hasProperty("exp")) {
args(demo, nRobots, planner, map, constrained, no_hotspots, exp)
}
else if (project.hasProperty("demo")) {
args(demo)
}
}