plugins Ġ{ ĊĠ Ġid (" shared ") ĊĠ Ġid (" java - gradle - plugin ") Ċ } Ċ Ċ configure < Gradle Plugin Development Extension > Ġ{ ĊĠ Ġplugins Ġ{ ĊĠĠĠ Ġcreate (" maven Publish Plugin ") Ġ{ ĊĠĠĠĠĠ Ġid Ġ= Ġ" com . v ann ik tech . maven . publish " ĊĠĠĠĠĠ Ġimplementation Class Ġ= Ġ" com . v ann ik tech . maven . publish . Maven Publish Plugin " ĊĠĠĠĠĠ ĠdisplayName Ġ= Ġ" Gradle ĠMaven ĠPublish ĠPlugin " ĊĠĠĠĠĠ Ġdescription Ġ= Ġ" Gradle Ġplugin Ġthat Ġconfig ures Ġpublish Ġtasks Ġto Ġautomatically Ġupload Ġall Ġof Ġyour ĠJava , ĠKotlin , ĠGradle , Ġor ĠAndroid Ġlibraries Ġto Ġany ĠMaven Ġinstance ." ĊĠĠĠ Ġ} ĊĠĠĠ Ġcreate (" maven Publish Base Plugin ") Ġ{ ĊĠĠĠĠĠ Ġid Ġ= Ġ" com . v ann ik tech . maven . publish . base " ĊĠĠĠĠĠ Ġimplementation Class Ġ= Ġ" com . v ann ik tech . maven . publish . Maven Publish Base Plugin " ĊĠĠĠĠĠ ĠdisplayName Ġ= Ġ" Gradle ĠMaven ĠPublish ĠBase ĠPlugin " ĊĠĠĠĠĠ Ġdescription Ġ= Ġ" Gradle Ġplugin Ġthat Ġconfig ures Ġpublish Ġtasks Ġto Ġautomatically Ġupload Ġall Ġof Ġyour ĠJava , ĠKotlin , ĠGradle , Ġor ĠAndroid Ġlibraries Ġto Ġany ĠMaven Ġinstance ." ĊĠĠĠ Ġ} ĊĠ Ġ} Ċ } Ċ Ċ dependencies Ġ{ ĊĠ Ġapi ( gradle Api ()) ĊĠ Ġapi ( kotlin (" stdlib ")) ĊĊĠ Ġcompile Only (" org . jetbrains . dok ka : dok ka - gradle - plugin :${ Version . dok ka }") ĊĠ Ġcompile Only ( kotlin (" gradle - plugin ")) ĊĠ Ġcompile Only (" com . android . tools . build : gradle :${ Version . ag p }") ĊĊĠ Ġimplementation ( project (": nexus ")) ĊĊĠ Ġtest Implementation ( gradle Test Kit ()) ĊĠ Ġtest Implementation (" junit : junit :${ Version . junit }") ĊĠ Ġtest Implementation (" org . assertj : assertj - core :${ Version . assertj }") ĊĠ Ġtest Implementation (" com . github . st ef an bir k ner : system - rules : 1 . 1 9 . 0 ") ĊĠ Ġ// Ġfor Ġnon Ġtest Ġkit Ġtests ĊĠ Ġtest Implementation (" com . android . tools . build : gradle :${ Version . ag p }") ĊĠ Ġtest Implementation ( kotlin (" gradle - plugin ")) ĊĠ Ġtest Implementation (" org . jetbrains . dok ka : dok ka - gradle - plugin :${ Version . dok ka }") Ċ } Ċ Ċ tasks . with Type ( Plugin UnderTest Metadata :: class . java ). configure Each Ġ{ ĊĠ Ġ// Ġfor Ġtest Ġkit Ġtests ĊĠ Ġplugin Classpath . from ( configurations . compile Only ) Ċ } Ċ Ċ source Sets Ġ{ ĊĠ Ġnamed (" test ") Ġ{ ĊĠĠĠ Ġthis . with Convention ( org . jetbrains . kotlin . gradle . plugin . Kotlin Source Set :: class ) Ġ{ ĊĠĠĠĠĠ Ġkotlin . src Dirs ( listOf (" src / integration Test / kotlin ")) ĊĠĠĠ Ġ} ĊĠ Ġ} Ċ } Ċ Ċ tasks . named (" test ") Ġ{ ĊĠ Ġthis Ġas ĠTest ĊĠ Ġtest Logging Ġ{ ĊĠĠĠ Ġevents (" passed ", Ġ" skipped ", Ġ" failed ") ĊĠĠĠ Ġset Exception Format (" full ") ĊĠ Ġ} Ċ } Ċ