plugins Ġ{ ĊĠ Ġid (" java ") ĊĠ Ġid (" org . jetbrains . kotlin . jvm ") ĊĠ Ġid (" java - gradle - plugin ") ĊĠ Ġid (" com . gradle . plugin - publish ") Ġversion Ġ" 0 . 1 1 . 0 " Ċ } Ċ Ċ // Ġgro ovy Ġstrings Ġwith Ġdouble Ġquotes Ġare ĠG String . Ċ // Ġgro ovy Ġstrings Ġwith Ġsingle Ġquotes Ġare Ġjava . lang . String Ċ // ĠIn Ġall Ġcases , Ġgradle ĠAPIs Ġtake ĠAny Ġso Ġjust Ġfeed Ġthem Ġwhatever Ġis Ġreturned Ċ fun Ġdep ( key : ĠString ) Ġ= Ġ( extra [" dep "] Ġas ĠMap < *, Ġ* >) [ key ] !! Ċ Ċ fun ĠAny . dot ( key : ĠString ): ĠAny Ġ{ ĊĠ Ġreturn Ġ( this Ġas ĠMap < String , Ġ* >) [ key ] !! Ċ } Ċ Ċ dependencies Ġ{ ĊĠ Ġcompile Only ( gradle Api ()) ĊĠ Ġcompile Only ( dep (" kotlin "). dot (" plugin ")) ĊĠ Ġcompile Only ( dep (" android "). dot (" min Plugin ")) ĊĊĠ Ġapi ( project (": apollo - compiler ")) ĊĠ Ġimplementation ( dep (" kotlin "). dot (" std Lib ")) ĊĠ Ġimplementation ( dep (" ok Http "). dot (" ok Http ")) ĊĠ Ġimplementation ( dep (" mos hi "). dot (" mos hi ")) ĊĠĠĊĠ Ġtest Implementation ( dep (" junit ")) ĊĠ Ġtest Implementation ( dep (" ok Http "). dot (" mock WebServer ")) Ċ } Ċ Ċ tasks . with Type < Test > Ġ{ ĊĠ Ġdepends On (": apollo - api : publish All Public ations To Plugin Test Repository ") ĊĠ Ġdepends On (": apollo - compiler : publish All Public ations To Plugin Test Repository ") ĊĠ Ġdepends On (" publish All Public ations To Plugin Test Repository ") ĊĊĠ Ġinputs . dir (" src / test / files ") Ċ } Ċ Ċ plugin Bundle Ġ{ ĊĠ Ġwebsite Ġ= Ġ" https :// github . com / ap ol log raph ql / apollo - android " ĊĠ Ġv cs Url Ġ= Ġ" https :// github . com / ap ol log raph ql / apollo - android " ĊĠ Ġtags Ġ= ĠlistOf (" graphql ", Ġ" apollo ", Ġ" ap ol log raph ql ", Ġ" kotlin ", Ġ" java ", Ġ" jvm ", Ġ" android ", Ġ" graphql - client ") Ċ } Ċ Ċ gradle Plugin Ġ{ ĊĠ Ġplugins Ġ{ ĊĠĠĠ Ġcreate (" apollo Gradle Plugin ") Ġ{ ĊĠĠĠĠĠ Ġid Ġ= Ġ" com . ap ol log raph ql . apollo " ĊĠĠĠĠĠ ĠdisplayName Ġ= Ġ" A pol lo - Android ĠGraphQL Ġclient Ġplugin ." ĊĠĠĠĠĠ Ġdescription Ġ= Ġ" Autom atically Ġgenerates Ġtypes afe Ġjava Ġand Ġkotlin Ġmodels Ġfrom Ġyour ĠGraphQL Ġfiles ." ĊĠĠĠĠĠ Ġimplementation Class Ġ= Ġ" com . ap ol log raph ql . apollo . gradle . internal . A pol lo Plugin " ĊĠĠĠ Ġ} ĊĠ Ġ} Ċ } Ċ Ċ /** Ċ Ġ* ĠThis Ġis Ġso Ġthat Ġthe Ġplugin Ġmarker Ġpom Ġcontains Ġa Ġ< scm > Ġtag Ċ Ġ* ĠIt Ġwas Ġrecommended Ġby Ġthe ĠGradle Ġsupport Ġteam . Ċ Ġ*/ Ċ configure < Publishing Extension > Ġ{ ĊĠ Ġpublications . configure Each Ġ{ ĊĠĠĠ Ġif Ġ( name Ġ== Ġ" apollo Gradle Plugin Plugin Marker Maven ") Ġ{ ĊĠĠĠĠĠ Ġthis Ġas ĠMaven Publication ĊĠĠĠĠĠ Ġpom Ġ{ ĊĠĠĠĠĠĠĠ Ġsc m Ġ{ ĊĠĠĠĠĠĠĠĠĠ Ġurl . set ( find Property (" PO M _ SCM _ URL ") Ġas ĠString ?) ĊĠĠĠĠĠĠĠĠĠ Ġconnection . set ( find Property (" PO M _ SCM _ CONNECTION ") Ġas ĠString ?) ĊĠĠĠĠĠĠĠĠĠ Ġdeveloper Connection . set ( find Property (" PO M _ SCM _ DEV _ CONNECTION ") Ġas ĠString ?) ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} ĊĠ Ġ} Ċ } Ċ