import Ġbuild .* Ċ import Ġorg . jetbrains . dok ka . gradle . D ok ka Task Ċ Ċ plugins Ġ{ ĊĠĠĠ Ġ` java - library ` ĊĠĠĠ Ġkotlin (" jvm ") ĊĠĠĠ Ġid (" org . jetbrains . dok ka ") ĊĠĠĠ Ġ` maven - publish ` ĊĠĠĠ Ġsigning ĊĠĠĠ Ġj aco co ĊĠĠĠ Ġid (" com . github . ben - man es . versions ") Ċ } Ċ Ċ base . archives Name . set (" touch icon ") Ċ group Ġ= ĠProject Properties . groupId Ċ version Ġ= ĠProject Properties . version Name Ċ Ċ tasks Ġ{ ĊĠĠĠ Ġcompile Kotlin Ġ{ ĊĠĠĠĠĠĠĠ Ġkotlin Options . jvm Target Ġ= Ġ" 1 . 8 " ĊĠĠĠ Ġ} ĊĠĠĠ Ġcompile Test Kotlin Ġ{ ĊĠĠĠĠĠĠĠ Ġkotlin Options . jvm Target Ġ= Ġ" 1 . 8 " ĊĠĠĠ Ġ} Ċ } Ċ Ċ dependencies Ġ{ ĊĠĠĠ Ġimplementation ( kotlin (" stdlib ")) ĊĊĠĠĠ Ġtest Implementation (" junit : junit : 4 . 1 3 . 2 ") ĊĠĠĠ Ġtest Implementation (" com . google . truth : truth : 1 . 1 . 3 ") ĊĠĠĠ Ġtest Implementation (" io . mock k : mock k : 1 . 1 2 . 0 ") ĊĠĠĠ Ġtest Implementation (" com . squareup . okhttp 3 : mock webserver : 4 . 9 . 2 ") Ċ } Ċ Ċ tasks . named < D ok ka Task >(" dok ka Html ") Ġ{ ĊĠĠĠ Ġoutput Directory . set ( File ( project Dir , Ġ"../ docs / touch icon ")) Ċ } Ċ Ċ 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 ) Ġ{ ĊĠĠĠ Ġdepends On (" classes ") ĊĠĠĠ Ġarchive Classifier . set (" sources ") ĊĠĠĠ Ġfrom ( source Sets [" main "]. all Source ) Ċ } Ċ Ċ artifacts Ġ{ ĊĠĠĠ Ġarch ives ( tasks . named < Jar >(" sources Jar ")) Ċ } Ċ Ċ publishing Settings () Ċ jac oco Settings () Ċ dependency Updates Settings () Ċ