Import the generated build.xml into gradle build file.

This commit is contained in:
Fedor Isakov 2017-06-07 16:17:46 +02:00
parent ae7f36659f
commit b39149f9c2
3 changed files with 12 additions and 4 deletions

2
.gitignore vendored
View File

@ -6,8 +6,8 @@
**/classes_jchr/*
.mps/workspace.xml
.idea/workspace.xml
.gradle
out
build/*
config/*
system/*

View File

@ -1,4 +1,6 @@
defaultTasks 'init'
/*defaultTasks 'init'*/
ant.importBuild('build.xml')
allprojects {
repositories {
@ -15,3 +17,9 @@ task init(dependsOn: alldependencies) {
println 'Initialized all dependencies.'
}
}
task buildAll(dependsOn: ['init', 'clean', 'build']) {
doLast {
println 'Build finished.'
}
}

View File

@ -19,8 +19,8 @@ dependencies {
}
task downloadReactor {
ant.get(src: 'https://github.com/fisakov/conreactor/releases/download/v0.9-snapshot.1/conreactor-api-0.9.jar', dest: 'lib', skipexisting: 'true')
ant.get(src: 'https://github.com/fisakov/conreactor/releases/download/v0.9-snapshot.1/conreactor-core-0.9.jar', dest: 'lib', skipexisting: 'true')
ant.get(src: 'https://github.com/fisakov/conreactor/releases/download/v0.9-snapshot.1/conreactor-api-0.9.jar', dest: 'lib', usetimestamp: 'true', skipexisting: 'true')
ant.get(src: 'https://github.com/fisakov/conreactor/releases/download/v0.9-snapshot.1/conreactor-core-0.9.jar', dest: 'lib', usetimestamp: 'true', skipexisting: 'true')
}
task copyDependencies (type: Copy, dependsOn: downloadReactor) {