Commit ccacda60 authored by Emmanuel Godard's avatar Emmanuel Godard

cleaner davis dependency

parent f43e6d2e
......@@ -34,7 +34,7 @@ repositories {
url = "https://repo1.maven.org/maven2/io/jbotsim/"
}
flatDir {
dirs "davis/lib"
dirs davisInstall + File.separator + "lib"
}
}
......@@ -43,14 +43,14 @@ repositories {
* contents to the build directory
*/
task downloadZipFile(type: Download) {
src 'http://pageperso.lif.univ-mrs.fr/~emmanuel.godard/udavis-0.7rc2.zip'
dest new File('davis', 'udavis-0.7rc2.zip')
src 'http://pageperso.lif.univ-mrs.fr/~emmanuel.godard/davis-beta-' + davisVersion
dest new File(davisInstall, 'davis-beta-' + davisVersion)
overwrite false // to download only once
}
task downloadAndUnzipFile(dependsOn: downloadZipFile, type: Copy) {
from zipTree(downloadZipFile.dest)
into 'davis'
into davisInstall
}
defaultTasks 'downloadAndUnzipFile'
......@@ -63,8 +63,8 @@ dependencies {
compile name: 'antlr4-annotations-4.2'
compile name: 'antlr4-runtime-4.2'
compile name: 'commons-cli-1.4'
compile name: 'davis-core-0.5.2-93-g2a88e16'
compile name: 'davis-ui-0.5.2-93-g2a88e16'
compile name: 'davis-core-' + davisVersion
compile name: 'davis-ui-' + davisVersion
compile name: 'digraph-parser-1.0'
compile name: 'org.abego.treelayout.core-1.0.1'
compile name: 'tools'
......
# Define jbotsim dependency version
jbotsimVersion = 1.0.0
# Define davis version
davisVersion = 0.7rc2
# Define davis install directory
davisInstall = davis
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment