plugins Ġ{ ĊĠĠĠ Ġid (" com . cogn if ide . a et . java - con ventions ") ĊĠĠĠ Ġid (" com . cogn if ide . a et . test - coverage ") Ġapply Ġfalse ĊĠĠĠ Ġid (" org . no sphere . apache . rat ") Ġversion Ġ" 0 . 7 . 0 " ĊĠĠĠ Ġid (" pl . al leg ro . tech . build . ax ion - release ") Ġversion Ġ" 1 . 1 2 . 1 " ĊĠĠĠ Ġid (" de . under couch . download ") Ġversion Ġ" 4 . 1 . 1 " Ċ } Ċ Ċ scm Version Ġ{ ĊĠĠĠ Ġtag . prefix Ġ= Ġ"" Ċ } Ċ Ċ project . version Ġ= Ġsc m Version . version Ċ Ċ sub projects Ġ{ ĊĠĠĠ Ġproject . version Ġ= Ġroot Project . version Ċ } Ċ Ċ default Tasks (" deploy Local ") Ċ Ċ tasks . rat Ġ{ ĊĠĠĠ Ġ// Ġgeneral ĊĠĠĠ Ġexclude s . add (" **/ LICENSE ") ĊĠĠĠ Ġexclude s . add (" **/ NOTICE ") ĊĠĠĠ Ġexclude s . add (". travis . yml ") ĊĠĠĠ Ġexclude s . add (" eclipse - java - google - style . xml ") ĊĠĠĠ Ġexclude s . add (" intellij - java - google - style . xml ") ĊĠĠĠ Ġexclude s . add (" ** /*. md ") ĊĠĠĠ Ġexclude s . add (" ** /*. jar ") ĊĠĠĠ Ġexclude s . add (" ** /*. war ") ĊĠĠĠ Ġexclude s . add (" ** /*. zip ") ĊĠĠĠ Ġexclude s . add (" ** /*. json ") ĊĠĠĠ Ġexclude s . add (" ** /*. svg ") ĊĊĠĠĠ Ġ// ĠEclipse Ġfiles ĊĠĠĠ Ġexclude s . add (" ** /. project ") ĊĠĠĠ Ġexclude s . add (" ** /. classpath ") ĊĊĠĠĠ Ġ// ĠIntelliJ Ġfiles ĊĠĠĠ Ġexclude s . add (" ** /. idea /** ") ĊĠĠĠ Ġexclude s . add (" ** /*. im l ") ĊĊĠĠĠ Ġ// Ġmvn Ġfiles ĊĠĠĠ Ġexclude s . add (" **/ target /** ") ĊĠĠĠ Ġexclude s . add (" **/ pom . xml ") ĊĊĠĠĠ Ġ// Ġgradle Ġfiles ĊĠĠĠ Ġexclude s . add (" **/ build /** ") ĊĠĠĠ Ġexclude s . add (" ** /*. gradle . k ts ") ĊĠĠĠ Ġexclude s . add (" ** /*. gradle ") ĊĠĠĠ Ġexclude s . add (" ** /. gradle /** ") ĊĠĠĠ Ġexclude s . add (" **/ gradle . properties ") ĊĠĠĠ Ġexclude s . add (" **/ gradle - wrapper . properties ") ĊĊĠĠĠ Ġ// Ġsample - site ĊĠĠĠ Ġexclude s . add (" **/ integration - tests / sample - site / src / main / resources / mock /**/*. html ") ĊĠĠĠ Ġexclude s . add (" **/ integration - tests / sample - site / src / main / webapp / assets / demo _ files / accessibility / bootstrap . css ") ĊĠĠĠ Ġexclude s . add (" **/ integration - tests / sample - site / src / main / webapp / assets / demo _ files / bootstrap . css ") ĊĠĠĠ Ġexclude s . add (" **/ integration - tests / sample - site / src / main / webapp / assets / demo _ files / bootstrap . min . js ") ĊĠĠĠ Ġexclude s . add (" **/ integration - tests / sample - site / src / main / webapp / assets / demo _ files / boot sw atch . min . css ") ĊĠĠĠ Ġexclude s . add (" **/ integration - tests / sample - site / src / main / webapp / assets / demo _ files / combined . js ") ĊĠĠĠ Ġexclude s . add (" **/ integration - tests / sample - site / src / main / webapp / assets / demo _ files / ie 1 0 - viewport - bug - work around . js ") ĊĠĠĠ Ġexclude s . add (" **/ integration - tests / sample - site / src / main / webapp / assets / demo _ files / jquery . min . js ") ĊĠĠĠ Ġexclude s . add (" **/ integration - tests / sample - site / src / main / webapp / assets / snippets / change - bg - snippet . js ") ĊĠĠĠ Ġexclude s . add (" **/ integration - tests / sample - site / src / main / webapp / assets / sec ured / change - bg - snippet . js ") ĊĊĠĠĠ Ġ// Ġjobs ĊĠĠĠ Ġexclude s . add (" **/ core / jobs / src / test / resources / mock /**/*. html ") ĊĊĠĠĠ Ġ// Ġreport ĊĠĠĠ Ġexclude s . add (" **/ report / src / main / webapp / node /** ") ĊĠĠĠ Ġexclude s . add (" **/ report / src / main / webapp /. css lin trc ") ĊĠĠĠ Ġexclude s . add (" **/ report / src / main / webapp /. js be aut ify rc ") ĊĠĠĠ Ġexclude s . add (" **/ report / src / main / webapp /. j sh intr c ") ĊĠĠĠ Ġexclude s . add (" **/ report / src / main / webapp /. babel rc ") ĊĠĠĠ Ġexclude s . add (" **/ report / src / main / webapp / assets / libs /** ") ĊĠĠĠ Ġexclude s . add (" **/ report / src / main / webapp / assets / js /** ") ĊĠĠĠ Ġexclude s . add (" **/ report / src / test / jasmine / lib /** ") ĊĠĠĠ Ġexclude s . add (" **/ report / src / main / webapp / node _ modules /** ") ĊĠĠĠ Ġexclude s . add (" **/ report / src / main / webapp /. sass - cache /** ") ĊĠĠĠ Ġexclude s . add (" **/ report / src / main / webapp / assets / fonts /** ") ĊĠĠĠ Ġexclude s . add (" **/ report / src / main / webapp / assets / img /** ") ĊĠĠĠ Ġexclude s . add (" **/ report / src / main / webapp / assets / icons /** ") ĊĠĠĠ Ġexclude s . add (" **/ report / src / main / webapp / assets / css /** ") ĊĊĠĠĠ Ġ// Ġdocumentation ĊĠĠĠ Ġexclude s . add (" **/ documentation / src / main / node /** ") ĊĠĠĠ Ġexclude s . add (" **/ documentation / src / main / node _ modules /** ") ĊĊĠĠĠ Ġ// Ġmisc ĊĠĠĠ Ġexclude s . add (" **/ misc / plugins - report . txt ") ĊĠĠĠ Ġexclude s . add (" **/ misc / dependencies - report . txt ") ĊĠĠĠ Ġexclude s . add (" **/ vagrant /. vagrant /** ") ĊĠĠĠ Ġexclude s . add (" **/ vagrant / Ber ks file . lock ") ĊĠĠĠ Ġexclude s . add (" **/ vagrant / cook books /** ") ĊĊĠĠĠ Ġ// Ġworker ĊĠĠĠ Ġexclude s . add (" **/ core / worker / firefox / chrome . manifest ") Ċ } Ċ Ċ tasks [" rat "]. outputs . up ToDate When Ġ{ Ġfalse Ġ} Ċ tasks [" build "]. depends On ( tasks [" rat "]) Ċ Ċ val Ġpackages Ġ= Ġ"${ project (": zip "). build Dir }/ packages " Ċ val Ġdocker Root Ġ= Ġ"../ a et - docker " Ċ Ċ val Ġcore Bund les Ġ= Ġ"${ docker Root }/ core - bundles " Ċ val Ġcore Configs Ġ= Ġ"${ docker Root }/ core - configs " Ċ val Ġcore Features Ġ= Ġ"${ docker Root }/ core - features " Ċ Ċ tasks . register < Copy >(" deploy Bund les ") Ġ{ ĊĠĠĠ Ġverify Setup ( core Bund les ) ĊĠĠĠ Ġdepends On ( project (": zip "). tasks [" package Bund les "]) ĊĠĠĠ Ġfrom ("${ packages }/ bundles ") ĊĠĠĠ Ġinto ( core Bund les ) Ċ } Ċ Ċ tasks . register < Copy >(" deploy Configs ") Ġ{ ĊĠĠĠ Ġverify Setup ( core Configs ) ĊĠĠĠ Ġdepends On ( project (": zip "). tasks [" package Configs "]) ĊĠĠĠ Ġfrom ("${ packages }/ configs ") ĊĠĠĠ Ġinto ( core Configs ) Ċ } Ċ Ċ tasks . register < Copy >(" deploy Features ") Ġ{ ĊĠĠĠ Ġverify Setup ( core Features ) ĊĠĠĠ Ġdepends On ( project (": zip "). tasks [" package Features "]) ĊĠĠĠ Ġfrom ("${ packages }/ features ") ĊĠĠĠ Ġinto ( core Features ) Ċ } Ċ Ċ tasks . register (" deploy Local ") Ġ{ ĊĠĠĠ Ġdepends On ( tasks [" deploy Bund les "]) ĊĠĠĠ Ġdepends On ( tasks [" deploy Configs "]) ĊĠĠĠ Ġdepends On ( tasks [" deploy Features "]) Ċ } Ċ Ċ fun Ġverify Setup ( path : ĠString ) Ġ{ ĊĠĠĠ Ġif Ġ(! File ( path ). exists ()) Ġ{ ĊĠĠĠĠĠĠĠ Ġlogger . error (" Directory Ġ$ path Ġmust Ġexist ") ĊĠĠĠĠĠĠĠ Ġthrow ĠProject ConfigurationException ( config ErrorMsg (), Ġconfig Error Throwable ( required Dirs ())) ĊĠĠĠ Ġ} Ċ } Ċ Ċ fun Ġrequired Dirs () Ġ= ĠlistOf ( core Bund les , Ġcore Configs , Ġcore Features ) Ċ Ċ fun Ġconfig ErrorMsg () Ġ= ĊĠĠĠĠĠĠĠ Ġ""" ĊĠĠĠĠĠĠĠĠĠĠĠ ĠInc orrect Ġlocal Ġenvironment Ġsetup . ĊĠĠĠĠĠĠĠĠĠĠĠ ĠPlease Ġrefer Ġto Ġhttps :// github . com / mal ask owski / a et - docker ĊĠĠĠĠĠĠĠĠĠĠĠ Ġfor Ġa Ġguide Ġof Ġsetting Ġup Ġthe Ġenvironment . ĊĠĠĠĠĠĠĠ Ġ""" . trim Indent () Ċ Ċ fun Ġconfig Error Throwable ( required Dirs : ĠList < String >) Ġ= ĊĠĠĠĠĠĠĠ ĠThrowable (" At Ġleast Ġone Ġof Ġthe Ġdirectories : Ġ$ required Dirs Ġdoes Ġnot Ġexist ")