/* Ċ Ġ* ĠCopyright Ġ 2 0 2 0 ĠThe ĠChromium ĠAuthors . ĠAll Ġrights Ġreserved . Ċ Ġ* ĠUse Ġof Ġthis Ġsource Ġcode Ġis Ġgoverned Ġby Ġa ĠBSD - style Ġlicense Ġthat Ġcan Ġbe Ċ Ġ* Ġfound Ġin Ġthe ĠLICENSE Ġfile . Ċ Ġ*/ Ċ Ċ repositories Ġ{ ĊĠ Ġmaven Central () ĊĠ Ġmaven Ġ{ ĊĠĠĠ Ġurl = uri (" https :// oss . son atype . org / content / repositories / snapshots /") ĊĠ Ġ} Ċ } Ċ Ċ plugins Ġ{ ĊĠ Ġid (" java ") ĊĠ Ġid (" kotlin ") ĊĠ Ġid (" org . jetbrains . intellij ") Ċ } Ċ Ċ val Ġide : ĠString Ġby Ġproject Ċ val Ġflutter Plugin Version : ĠString Ġby Ġproject Ċ val Ġjava Version : ĠString Ġby Ġproject Ċ val Ġdart Version : ĠString Ġby Ġproject Ċ val Ġbase Version : ĠString Ġby Ġproject Ċ Ċ group Ġ= Ġ" io . flutter " Ċ version Ġ= Ġflutter Plugin Version Ċ Ċ tasks . with Type < org . jetbrains . kotlin . gradle . tasks . Kotlin Compile >(). all Ġ{ ĊĠ Ġkotlin Options Ġ{ ĊĠĠĠ Ġj vm Target Ġ= Ġjava Version ĊĠ Ġ} Ċ } Ċ Ċ java Ġ{ ĊĠ Ġsource Compatibility Ġ= ĠJava Version . to Version ( java Version ) ĊĠ Ġtarget Compatibility Ġ= ĠJava Version . to Version ( java Version ) Ċ } Ċ Ċ intellij Ġ{ ĊĠ Ġ// ĠThis Ġadds Ġnull ability Ġassertions , Ġbut Ġalso Ġcompiles Ġforms . ĊĠ Ġinstrument Code . set ( true ) ĊĠ Ġupdate Since Until Build . set ( false ) ĊĠ Ġdownload Sources . set ( false ) ĊĠ Ġlocal Path . set ("${ project . rootDir . absolute Path }/ artifacts /$ ide ") ĊĠ Ġval Ġplugin List Ġ= Ġmutable ListOf (" java ", Ġ" Dart :$ dart Version ", Ġ" properties ", Ġ" junit ", ĊĠĠĠĠĠĠĠĠĠĠĠĠ Ġ" gradle ", Ġ" Gro ovy ", Ġ" sm ali ", Ġ" Int elli Lang ", Ġ" org . jetbrains . android ") ĊĠ Ġplugins . set ( plugin List ) Ċ } Ċ Ċ dependencies Ġ{ ĊĠ Ġcompile Only ( project (": flutter - idea ")) ĊĠ Ġtest Implementation ( project (": flutter - idea ")) ĊĠ Ġcompile Only ( file Tree ( map Of (" dir " Ġto Ġ"${ project . rootDir }/ artifacts / android - studio / lib ", ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ" include " Ġto ĠlistOf (" *. jar ")) )) ĊĠ Ġtest Implementation ( file Tree ( map Of (" dir " Ġto Ġ"${ project . rootDir }/ artifacts / android - studio / lib ", ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ" include " Ġto ĠlistOf (" *. jar ")) )) ĊĠ Ġcompile Only ( file Tree ( map Of (" dir " Ġto Ġ"${ project . rootDir }/ artifacts / android - studio / plugins ", ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ" include " Ġto ĠlistOf (" ** /*. jar "), ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ" exclude " Ġto ĠlistOf (" **/ kotlin - compiler . jar ", Ġ" **/ kotlin - plugin . jar ")) )) ĊĠ Ġtest Implementation ( file Tree ( map Of (" dir " Ġto Ġ"${ project . rootDir }/ artifacts / android - studio / plugins ", ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ" include " Ġto ĠlistOf (" ** /*. jar "), ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ" exclude " Ġto ĠlistOf (" **/ kotlin - compiler . jar ", Ġ" **/ kotlin - plugin . jar ")) )) Ċ } Ċ Ċ source Sets Ġ{ ĊĠ Ġmain Ġ{ ĊĠĠĠ Ġjava . src Dirs ( listOf ( ĊĠĠĠĠĠ Ġ" src ", ĊĠĠĠĠĠ Ġ" third _ party / vm Service Drivers " ĊĠĠĠĠĠ Ġ// " resources " ĊĠĠĠ Ġ)) ĊĠĠĠ Ġ// ĠAdd Ġkotlin . src Dirs Ġif Ġwe Ġstart Ġusing ĠKotlin Ġin Ġthe Ġmain Ġplugin . ĊĠĠĠ Ġ// resources . src Dirs ( listOf ( ĊĠĠĠĠĠ Ġ// " src ", ĊĠĠĠĠĠ Ġ// project (": flutter - idea "). source Sets . main . get (). resources ĊĠĠĠĠĠ Ġ// " resources ", ĊĠĠĠ Ġ// )) ĊĠ Ġ} Ċ } Ċ Ċ tasks Ġ{ ĊĊĠ Ġbuild Search able Options Ġ{ ĊĠĠĠ Ġenabled Ġ= Ġfalse ĊĠ Ġ} ĊĊĠ Ġinstrument Code Ġ{ ĊĠĠĠ Ġcompiler Version . set ("$ base Version ") ĊĠ Ġ} ĊĊĠ Ġinstrument Test Code Ġ{ ĊĠĠĠ Ġcompiler Version . set ("$ base Version ") ĊĠ Ġ} Ċ } Ċ