plugins Ġ{ ĊĠĠĠ Ġid (" com . cogn if ide . a et . java - con ventions ") ĊĠĠĠ Ġid (" com . cogn if ide . a et . test - coverage ") Ċ } Ċ Ċ val Ġpackages Ġ= Ġ"${ build Dir }/ packages " Ċ Ċ tasks . register < Copy >(" package Bund les ") Ġ{ ĊĠĠĠ Ġdepends On ( root Project . get Tasks ByName (" build ", Ġtrue )) ĊĠĠĠ Ġinclude Empty Dirs Ġ= Ġfalse ĊĠĠĠ Ġroot Project . sub projects . forEach Ġ{ Ġsub project Ġ-> ĊĠĠĠĠĠĠĠ Ġfrom ("${ sub project . build Dir }/ libs ") Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġinclude (" ** /${ sub project . name } *. jar ") ĊĠĠĠĠĠĠĠĠĠĠĠ Ġexclude ("* a et - maven - plugin *. jar ") ĊĠĠĠĠĠĠĠĠĠĠĠ Ġexclude (" *- test *. jar ") ĊĠĠĠĠĠĠĠĠĠĠĠ Ġexclude ("* client *. jar ") ĊĠĠĠĠĠĠĠĠĠĠĠ Ġexclude ("* sample - site *. jar ") ĊĠĠĠĠĠĠĠĠĠĠĠ Ġexclude ("* zip * ") ĊĠĠĠĠĠĠĠĠĠĠĠ Ġrename Ġ{ Ġ"${ project . group }.${ sub project . name }. jar " Ġ} ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠĠĠĠĠ Ġinto ("${ packages }/ bundles ") ĊĠĠĠ Ġ} Ċ } Ċ Ċ tasks . register < Zip >(" zip Bund les ") Ġ{ ĊĠĠĠ Ġdepends On ( tasks [" package Bund les "]) ĊĠĠĠ Ġarchive FileName . set (" bundles . zip ") ĊĠĠĠ Ġdestination Directory . set ( file ( packages )) ĊĠĠĠ Ġinclude Empty Dirs Ġ= Ġfalse ĊĠĠĠ Ġfrom ("${ packages }/ bundles ") Ċ } Ċ Ċ tasks . register < Copy >(" package Configs ") Ġ{ ĊĠĠĠ Ġfrom ("${ project (": configs "). project Dir }/ src / main / resources ") ĊĠĠĠ Ġinto ("${ packages }/ configs ") Ċ } Ċ Ċ tasks . register < Zip >(" zip Configs ") Ġ{ ĊĠĠĠ Ġdepends On ( tasks [" package Configs "]) ĊĠĠĠ Ġdestination Directory . set ( file ( packages )) ĊĠĠĠ Ġarchive FileName . set (" configs . zip ") ĊĠĠĠ Ġfrom ("${ packages }/ configs ") Ċ } Ċ Ċ tasks . register < Copy >(" package Features ") Ġ{ ĊĠĠĠ Ġinclude Empty Dirs Ġ= Ġfalse ĊĠĠĠ Ġfrom ("${ rootDir }/ osgi - dependencies ") Ġ{ ĊĠĠĠĠĠĠĠ Ġinclude (" **/ a et - features . xml ") ĊĠĠĠĠĠĠĠ Ġinclude (" **/ a et - web console . xml ") ĊĠĠĠ Ġ} ĊĠĠĠ Ġinto ("${ packages }/ features ") Ċ } Ċ Ċ tasks . register < Zip >(" zip Features ") Ġ{ ĊĠĠĠ Ġdepends On ( tasks [" package Features "]) ĊĠĠĠ Ġdestination Directory . set ( file ( packages )) ĊĠĠĠ Ġarchive FileName . set (" features . zip ") ĊĠĠĠ Ġinclude Empty Dirs Ġ= Ġfalse ĊĠĠĠ Ġfrom ("${ packages }/ features ") Ċ } Ċ Ċ tasks . register < Copy >(" zip Report ") Ġ{ ĊĠĠĠ Ġdepends On ( project (": report "). get Tasks ByName (" build ", Ġtrue )) ĊĠĠĠ Ġfrom ("${ project (": report "). build Dir }/ distributions / report -${ root Project . version }. zip ") Ġ{ ĊĠĠĠĠĠĠĠ Ġrename Ġ{ Ġ" report . zip " Ġ} ĊĠĠĠ Ġ} ĊĠĠĠ Ġinto ( packages ) Ċ } Ċ Ċ tasks . register < Zip >(" zip Sample Site ") Ġ{ ĊĠĠĠ Ġdepends On ( project (": sample - site "). get Tasks ByName (" build ", Ġtrue )) ĊĠĠĠ Ġdestination Directory . set ( file ( packages )) ĊĠĠĠ Ġarchive FileName . set (" sample - site . zip ") ĊĠĠĠ Ġinclude Empty Dirs Ġ= Ġfalse ĊĠĠĠ Ġfrom ("${ project (": sample - site "). build Dir }/ libs / sample - site -${ root Project . version }. war ") Ġ{ ĊĠĠĠĠĠĠĠ Ġrename Ġ{ Ġ" sample - site . war " Ġ} ĊĠĠĠ Ġ} Ċ } Ċ Ċ tasks . register (" make Zip ") Ġ{ ĊĠĠĠ Ġdepends On ( tasks [" zip Bund les "]) ĊĠĠĠ Ġdepends On ( tasks [" zip Configs "]) ĊĠĠĠ Ġdepends On ( tasks [" zip Features "]) ĊĠĠĠ Ġdepends On ( tasks [" zip Report "]) ĊĠĠĠ Ġdepends On ( tasks [" zip Sample Site "]) Ċ } Ċ Ċ description Ġ= Ġ" A ET "