plugins Ġ{ ĊĠ Ġ` kotlin - dsl ` ĊĠ Ġid (" n ebula . resolution - rules ") Ġversion Ġ" 5 . 1 . 1 " ĊĠ Ġ` maven - publish ` Ċ } Ċ Ċ group Ġ= Ġ" com . om ric at " Ċ version Ġ= Ġ" 0 . 2 " Ċ Ċ repositories Ġ{ ĊĠ Ġmaven Central () ĊĠ Ġj center () Ċ } Ċ Ċ dependencies Ġ{ ĊĠ Ġresolution Rules (" com . netflix . n ebula : gradle - resolution - rules : 0 . 5 2 . 0 ") Ċ } Ċ Ċ val Ġsources Jar Ġby Ġtasks . creating ( Jar :: class ) Ġ{ ĊĠ Ġdepends On ( Java Plugin . CLASSES _ TASK _ NAME ) ĊĠ Ġclassifier Ġ= Ġ" sources " ĊĠ Ġfrom ( java . source Sets [" main "]. all Source ) Ċ } Ċ Ċ val Ġjavadoc Jar Ġby Ġtasks . creating ( Jar :: class ) Ġ{ ĊĠ Ġdepends On ( Java Plugin . J AV AD OC _ TASK _ NAME ) ĊĠ Ġclassifier Ġ= Ġ" javadoc " ĊĠ Ġfrom ( java . docs Dir ) Ċ } Ċ Ċ publishing Ġ{ ĊĠ Ġ( publications ) Ġ{ ĊĠĠĠ Ġ" maven Java ". invoke ( Maven Publication :: class ) Ġ{ ĊĠĠĠĠĠ Ġfrom ( components [" java "]) ĊĠĠĠĠĠ Ġartifact ( sources Jar ) ĊĠĠĠĠĠ Ġartifact ( javadoc Jar ) ĊĠĠĠ Ġ} ĊĠ Ġ} Ċ } Ċ