import Ġcom . mo ow ork . gradle . node . npm . N pm Task čĊč Ċ plugins Ġ{ čĊĠĠĠ Ġwar čĊ ĉ id (" org . springframework . boot ") čĊ ĉ id (" com . mo ow ork . node ") Ġversion Ġ" 1 . 3 . 1 " č Ċ } čĊč Ċ apply ( plugin Ġ= Ġ" io . spring . dependency - management ") čĊč Ċ dependencies Ġ{ čĊĠĠĠ Ġimplementation ( project (": sa - common ")) čĊĠĠĠ Ġimplementation ( project (": sa - dao ")) čĊĠĠĠ Ġimplementation ( project (": sa - business ")) čĊĠĠĠ Ġimplementation ( project (": sa - security ")) čĊĠĠĠ Ġimplementation (" javax . servlet : javax . servlet - api : 4 . 0 . 1 ") čĊ ĉ implementation (" javax . servlet . jsp : javax . servlet . jsp - api : 2 . 3 . 3 ") čĊ ĉ implementation (" javax . servlet : j stl : 1 . 2 ") čĊĠĠĠ Ġimplementation (" org . apache . commons : commons - lang 3 : 3 . 8 . 1 ") ĠĠĠĠ čĊ ĉ implementation (" org . springframework . boot : spring - boot - starter - web ") čĊ ĉ implementation (" org . springframework . boot : spring - boot - starter - security ") čĊĠĠĠ Ġimplementation (" org . springframework . boot : spring - boot - starter - act uator ") čĊ ĉ runtime Only (" org . springframework . boot : spring - boot - devtools ") čĊĠĠĠ Ġtest Implementation (" org . springframework . boot : spring - boot - starter - test ") čĊĠĠĠ Ġtest Implementation (" org . springframework . security : spring - security - test ") čĊĠĠĠ Ġprovided Runtime (" org . springframework . boot : spring - boot - starter - tomcat ") č Ċ } čĊč Ċ node { čĊ ĉ version Ġ= Ġ" 1 2 . 4 . 0 " čĊ ĉ npm Version Ġ= Ġ" 6 . 9 . 0 " čĊ ĉ download Ġ= Ġtrue čĊ ĉ node Modules Dir Ġ= Ġfile ("${ project . project Dir }") č Ċ } čĊč Ċ tasks . register < N pm Task >(" npm Build ") Ġ{ čĊ ĉ depends On (" npm _ install ") čĊ ĉ set Args ( listOf (" run "," build ")) č Ċ } čĊč Ċ tasks Ġ{ čĊĠ Ġ" compile Java " Ġ{ čĊĠĠĠ Ġdepends On (" npm Build ") čĊĠĠĠ Ġ} č Ċ } čĊčĊ