gradle - zip dependencies to a file does not work any more -


basing on gradle : copy test dependencies zip file

i created

task zipdeps(type: zip) {     configurations.testcompile.allartifacts.files     configurations.testcompile     exclude { details -> details.file.name.contains('servlet-api') }     exclude { details -> details.file.name.contains('el-api') }     exclude { details -> details.file.name.contains('jsp-api') }     exclude { it.file in configurations.providedcompile.files }     archivename "${rootprojectname}-runtime-dependencies_full.zip"     dolast{         ant.copy (todir : "$builddir/libs/") {             fileset(file:"$builddir/distributions/${rootprojectname}-runtime-dependencies_full.zip")         }     } } 

this worked fine until migrated gradle 2.0. if leave code was, task executed in beginning , nothing happens @ all. if add << task , make dependent war build task, @ end of war build claims up-to-date nothing has happened.

one of problems seems fileset copied not created @ all.

what can stuff working again?

the task won't executed in beginning, calling .files resolves configurations early. first from line needs go (it's redundant , calls .files when shouldn't). dolast block suspicious , should turned separate copy task. instead of second from , last exclude, try from (configurations.compile - configurations.providedcompile).


Comments

Popular posts from this blog

javascript - how to protect a flash video from refresh? -

visual studio 2010 - Connect to informix database windows form application -

android - Associate same looper with different threads -