import Ġbuild . Project Properties Ċ import Ġbuild . dependency Updates Settings Ċ import Ġbuild . publishing Settings Ċ import Ġorg . jetbrains . dok ka . gradle . D ok ka Task Ċ Ċ plugins Ġ{ ĊĠĠĠ Ġid (" com . android . library ") ĊĠĠĠ Ġid (" kotlin - android ") ĊĠĠĠ Ġ` maven - publish ` ĊĠĠĠ Ġsigning ĊĠĠĠ Ġid (" org . jetbrains . dok ka ") ĊĠĠĠ Ġid (" com . github . ben - man es . versions ") Ċ } Ċ Ċ base . archives Name . set (" preference ") Ċ group Ġ= ĠProject Properties . groupId Ċ version Ġ= ĠProject Properties . version Name Ċ Ċ android Ġ{ ĊĠĠĠ Ġcompile Sdk Ġ= Ġ 3 1 ĊĊĠĠĠ Ġdefault Config Ġ{ ĊĠĠĠĠĠĠĠ Ġmin Sdk Ġ= Ġ 1 4 ĊĠĠĠĠĠĠĠ Ġtarget Sdk Ġ= Ġ 3 1 ĊĠĠĠĠĠĠĠ Ġconsumer Pro guard File (" pro guard - rules . pro ") ĊĠĠĠ Ġ} ĊĠĠĠ Ġcompile Options Ġ{ ĊĠĠĠĠĠĠĠ Ġsource Compatibility Ġ= ĠJava Version . VERSION _ 1 _ 8 ĊĠĠĠĠĠĠĠ Ġtarget Compatibility Ġ= ĠJava Version . VERSION _ 1 _ 8 ĊĠĠĠ Ġ} ĊĠĠĠ Ġkotlin Options Ġ{ ĊĠĠĠĠĠĠĠ Ġj vm Target Ġ= Ġ" 1 . 8 " ĊĠĠĠ Ġ} Ċ } Ċ Ċ tasks . named < D ok ka Task >(" dok ka Html ") Ġ{ ĊĠĠĠ Ġoutput Directory . set ( File ( project Dir , Ġ"../ docs / dok ka ")) Ċ } Ċ Ċ tasks . named < D ok ka Task >(" dok ka Javadoc ") Ġ{ ĊĠĠĠ Ġoutput Directory . set ( File ( build Dir , Ġ" docs / javadoc ")) Ċ } Ċ Ċ tasks . create (" javadoc Jar ", ĠJar :: class ) Ġ{ ĊĠĠĠ Ġdepends On (" dok ka Javadoc ") ĊĠĠĠ Ġarchive Classifier . set (" javadoc ") ĊĠĠĠ Ġfrom ( File ( build Dir , Ġ" docs / javadoc ")) Ċ } Ċ Ċ tasks . create (" sources Jar ", ĠJar :: class ) Ġ{ ĊĠĠĠ Ġarchive Classifier . set (" sources ") ĊĠĠĠ Ġfrom ( android . source Sets [" main "]. java . src Dirs ) Ċ } Ċ Ċ artifacts Ġ{ ĊĠĠĠ Ġarch ives ( tasks . named < Jar >(" sources Jar ")) Ċ } Ċ Ċ dependencies Ġ{ ĊĠĠĠ Ġimplementation ( kotlin (" stdlib ")) ĊĠĠĠ Ġimplementation (" android x . appcompat : appcompat : 1 . 4 . 0 ") ĊĠĠĠ Ġimplementation (" android x . preference : preference - k tx : 1 . 1 . 1 ") ĊĠĠĠ Ġimplementation (" android x . core : core - k tx : 1 . 7 . 0 ") Ċ } Ċ Ċ publishing Settings () Ċ dependency Updates Settings () Ċ