val Ġpublish GroupId : ĠString Ġby Ġroot Project . extra Ċ val Ġpublish Version : ĠString Ġby Ġroot Project . extra Ċ val Ġpublish Artifact Id Ġ= Ġ" simple installer " Ċ Ċ plugins Ġ{ Ċ ĉ id (" com . android . library ") Ċ ĉ kotlin (" android ") Ċ ĉ ` maven - publish ` Ċ ĉ signing Ċ } Ċ Ċ android Ġ{ Ċ ĉ compile Sdk Ġ= Ġ 3 2 Ċ ĉ build Tools Version Ġ= Ġ" 3 2 . 0 . 0 " ĊĊ ĉ default Config Ġ{ Ċĉ ĉ min Sdk Ġ= Ġ 1 6 Ċĉ ĉ target Sdk Ġ= Ġ 3 2 Ċĉ ĉ version Ġ= Ġpublish Version Ċĉ ĉ consumer Pro guard Files (" consumer - rules . pro ") Ċ ĉ } ĊĊ ĉ source Sets Ġ{ Ċĉ ĉ named (" main "). get (). java . src Dirs (" src / main / kotlin ") Ċ ĉ } ĊĊ ĉ build Types Ġ{ Ċĉ ĉ named (" release ") Ġ{ Ċĉĉ ĉ is Min ify Enabled Ġ= Ġfalse Ċĉĉ ĉ set Pro guard Files ( Ċĉĉĉ ĉ listOf ( Ċĉĉĉĉ ĉ getDefault Pro guard File (" pro guard - android - optimize . txt "), Ċĉĉĉĉ ĉ " pro guard - rules . pro " Ċĉĉĉ ĉ ) Ċĉĉ ĉ ) Ċĉ ĉ } Ċ ĉ } ĊĊ ĉ compile Options Ġ{ Ċĉ ĉ source Compatibility Ġ= ĠJava Version . VERSION _ 1 _ 8 Ċĉ ĉ target Compatibility Ġ= ĠJava Version . VERSION _ 1 _ 8 Ċ ĉ } ĊĊ ĉ kotlin Options Ġ{ Ċĉ ĉ jvm Target Ġ= Ġ" 1 . 8 " Ċ ĉ } Ċ } Ċ Ċ dependencies Ġ{ Ċ ĉ api (" org . jetbrains . kotlin x : kotlin x - coroutines - android : 1 . 6 . 1 ") Ċ ĉ implementation (" android x . appcompat : appcompat : 1 . 4 . 1 ") Ċ ĉ implementation (" android x . lifecycle : lifecycle - runtime - k tx : 2 . 4 . 1 ") Ċ ĉ implementation (" com . squareup . ok io : ok io : 3 . 1 . 0 ") Ċ } Ċ Ċ tasks Ġ{ Ċ ĉ val Ġandroid Sources Jar Ġby Ġcreating ( Jar :: class ) Ġ{ Ċĉ ĉ archive Classifier . set (" sources ") Ċĉ ĉ from ( android . source Sets . get ByName (" main "). java . src Dirs ) Ċ ĉ } ĊĊ ĉ artifacts Ġ{ Ċĉ ĉ archives ( android Sources Jar ) Ċ ĉ } ĊĊ ĉ after Evaluate Ġ{ Ċĉ ĉ publishing Ġ{ Ċĉĉ ĉ publications Ġ{ Ċĉĉĉ ĉ create < Maven Publication >(" release ") Ġ{ Ċĉĉĉĉ ĉ groupId Ġ= Ġpublish GroupId Ċĉĉĉĉ ĉ artifactId Ġ= Ġpublish Artifact Id Ċĉĉĉĉ ĉ version Ġ= Ġpublish Version Ċĉĉĉĉ ĉ from ( components . get ByName (" release ")) Ċĉĉĉĉ ĉ artifact ( android Sources Jar ) ĊĊĉĉĉĉ ĉ pom Ġ{ Ċĉĉĉĉĉ ĉ name . set ( publish Artifact Id ) Ċĉĉĉĉĉ ĉ description . set (" Easy Ġto Ġuse ĠAndroid Ġpackage Ġinstaller Ġwrapper Ġlever aging ĠKotlin Ġcor outines Ġ( API Ġ 1 6 + )") Ċĉĉĉĉĉ ĉ url . set (" https :// github . com / solr ude v / Simple Installer ") ĊĊĉĉĉĉĉ ĉ licenses Ġ{ Ċĉĉĉĉĉĉ ĉ license Ġ{ Ċĉĉĉĉĉĉĉ ĉ name . set (" Simple Installer ĠLicense ") Ċĉĉĉĉĉĉĉ ĉ url . set (" https :// github . com / solr ude v / Simple Installer / blob / master / LICENSE ") Ċĉĉĉĉĉĉ ĉ } Ċĉĉĉĉĉ ĉ } ĊĊĉĉĉĉĉ ĉ developers Ġ{ Ċĉĉĉĉĉĉ ĉ developer Ġ{ Ċĉĉĉĉĉĉĉ ĉ id . set (" solr ude v ") Ċĉĉĉĉĉĉĉ ĉ name . set (" I ly a ĠF om iche v ") Ċĉĉĉĉĉĉ ĉ } Ċĉĉĉĉĉ ĉ } ĊĊĉĉĉĉĉ ĉ scm Ġ{ Ċĉĉĉĉĉĉ ĉ connection . set (" scm : git : github . com / solr ude v / Simple Installer . git ") Ċĉĉĉĉĉĉ ĉ developer Connection . set (" scm : git : ssh :// github . com / solr ude v / Simple Installer . git ") Ċĉĉĉĉĉĉ ĉ url . set (" https :// github . com / solr ude v / Simple Installer / tree / master ") Ċĉĉĉĉĉ ĉ } Ċĉĉĉĉ ĉ } Ċĉĉĉ ĉ } Ċĉĉ ĉ } Ċĉ ĉ } Ċ ĉ } ĊĊ ĉ signing Ġ{ Ċĉ ĉ val Ġkey Id Ġ= Ġroot Project . extra [" signing . key Id "] Ġas ĠString Ċĉ ĉ val Ġkey Ġ= Ġroot Project . extra [" signing . key "] Ġas ĠString Ċĉ ĉ val Ġpassword Ġ= Ġroot Project . extra [" signing . password "] Ġas ĠString Ċĉ ĉ use InMemory P gp Keys ( key Id , Ġkey , Ġpassword ) Ċĉ ĉ sign ( publishing . publications ) Ċ ĉ } Ċ }