import Ġorg . jetbrains . kotlin . gradle . tasks . Kotlin Compile Ċ Ċ plugins Ġ{ ĊĠĠĠ Ġid (" org . jetbrains . kotlin . jvm ") Ġversion Ġ" 1 . 5 . 3 0 " ĊĠĠĠ Ġid (" com . github . ben - man es . versions ") Ġversion Ġ" 0 . 3 9 . 0 " ĊĠĠĠ Ġid (" org . gradle . maven - publish ") Ċ } Ċ Ċ repositories Ġ{ Ġmaven Central () Ġ} Ċ Ċ dependencies Ġ{ ĊĠĠĠ Ġimplementation (" org . jetbrains . kotlin x : kotlin x - coroutines - core : 1 . 5 . 2 ") ĊĠĠĠ Ġtest Implementation (" org . jetbrains . kotlin : kotlin - test - junit ") Ċ } Ċ Ċ group Ġ= Ġ" ru . k rik un . kotlin " Ċ version Ġ= Ġ" 0 . 0 . 4 " Ċ Ċ tasks . with Type ( Kotlin Compile :: class ) Ġ{ ĊĠĠĠ Ġkotlin Options Ġ{ ĊĠĠĠĠĠĠĠ Ġfree Compiler Args Ġ= ĠlistOf ("- X opt - in = kotlin . Requires Opt In ") ĊĠĠĠ Ġ} Ċ } Ċ Ċ val Ġsources Jar Ġ= Ġtask < Jar >(" sources Jar ") Ġ{ ĊĠĠĠ Ġarchive Classifier . set (" sources ") ĊĠĠĠ Ġduplicates Strategy Ġ= ĠD uplicates Strategy . EXCL UDE ĊĠĠĠ Ġfrom ( source Sets [" main "]. all Source ) Ċ } Ċ Ċ configure < Publishing Extension > Ġ{ ĊĠĠĠ Ġpublications . create < Maven Publication >(" maven ") Ġ{ ĊĠĠĠĠĠĠĠ Ġfrom ( components [" java "]) ĊĠĠĠĠĠĠĠ Ġartifact ( sources Jar ) Ġ{ Ġclassifier Ġ= Ġ" sources " Ġ} ĊĠĠĠ Ġ} Ċ } Ċ Ċ tasks . wrapper Ġ{ Ġdistribution Type Ġ= ĠWrapper . Distribution Type . ALL Ġ} Ċ