import Ġorg . springframework . boot . gradle . tasks . bund ling . Boot Jar Ċ Ċ plugins Ġ{ Ċ ĉ id (" org . springframework . boot ") Ċ ĉ kotlin (" jvm ") Ċ ĉ kotlin (" plugin . spring ") Ċ } Ċ Ċ tasks . get ByName < Jar >(" jar ") Ġ{ Ċ ĉ enabled Ġ= Ġtrue Ċ ĉ archive Classifier . set ("") Ċ } Ċ tasks . get ByName < Boot Jar >(" boot Jar ") Ġ{ Ċ ĉ enabled Ġ= Ġfalse Ċ } Ċ Ċ dependencies Ġ{ Ċ ĉ implementation ( project (": jdk ")) ĊĊ ĉ implementation ( kotlin (" stdlib - jdk 8 ")) Ċ ĉ implementation ( kotlin (" reflect ")) ĊĊ ĉ implementation (" org . springframework . boot : spring - boot - starter - web ") ĊĊ ĉ development Only (" org . springframework . boot : spring - boot - devtools ") Ċ ĉ test Implementation (" org . springframework . boot : spring - boot - starter - test ") Ġ{ Ċĉ ĉ exclude ( group Ġ= Ġ" org . junit . vint age ", Ġmodule Ġ= Ġ" junit - vint age - engine ") Ċ ĉ } Ċ } Ċ Ċ val Ġsources Jar Ġby Ġtasks . register ing ( Jar :: class ) Ġ{ Ċ ĉ classifier Ġ= Ġ" sources " Ċ ĉ from ( source Sets . main . get (). all Source ) Ċ } Ċ Ċ publishing Ġ{ Ċ ĉ publications Ġ{ Ċĉ ĉ register (" maven Java ", ĠMaven Publication :: class ) Ġ{ Ċĉĉ ĉ from ( components [" java "]) Ċĉĉ ĉ artifact ( sources Jar . get ()) Ċĉ ĉ } Ċ ĉ } ĊĊ ĉ publishing K lib ( this ) Ċ } Ċ Ċ // signing Ġ{ Ċ // ĉ sign ( publishing . publications [" maven Java "]) Ċ //} Ċ