import Ġcom . jfrog . bin tray . gradle . Bin tray Extension Ċ Ċ plugins Ġ{ ĊĠĠĠ Ġ` build - scan ` ĊĠĠĠ Ġ` maven - publish ` ĊĠĠĠ Ġkotlin (" jvm ") Ġversion Ġ" 1 . 3 . 0 " ĊĠĠĠ Ġid (" com . jfrog . bin tray ") Ġversion Ġ" 1 . 8 . 4 " Ċ } Ċ Ċ val Ġjunit Version Ġ= Ġ" 5 . 3 . 1 " Ċ val Ġmajor Ġ= Ġ 1 Ċ val Ġminor Ġ= Ġ 0 Ċ val Ġpatch Ġ= Ġ 0 Ċ val Ġversion Id Ġ= Ġ"$ major .$ minor .$ patch " Ċ Ċ group Ġ= Ġ" com . phil ip b org " Ċ version Ġ= Ġversion Id Ċ Ċ repositories Ġ{ ĊĠĠĠ Ġj center () ĊĠĠĠ Ġmaven Central () Ċ } Ċ Ċ dependencies Ġ{ ĊĠĠĠ Ġimplementation ( kotlin (" stdlib ", Ġ" 1 . 3 . 0 ")) ĊĠĠĠ Ġtest Compile (" org . junit . jupiter : junit - jupiter - api :$ junit Version ") ĊĠĠĠ Ġtest Compile (" org . junit . jupiter : junit - jupiter - params :$ junit Version ") ĊĠĠĠ Ġtest Runtime (" org . junit . jupiter : junit - jupiter - engine :$ junit Version ") Ċ } Ċ Ċ build Scan Ġ{ ĊĠĠĠ Ġset Terms Of Service Url (" https :// gradle . com / terms - of - service ") ĊĠĠĠ Ġset Terms Of Service Ag ree (" yes ") ĊĠĠĠ Ġpublish Always () Ċ } Ċ Ċ tasks . with Type < Test > Ġ{ ĊĠĠĠ Ġuse JUnit Platform () Ċ } Ċ Ċ val Ġsources Jar Ġby Ġtasks . register ing ( Jar :: class ) Ġ{ ĊĠĠĠ Ġclassifier Ġ= Ġ" sources " ĊĠĠĠ Ġfrom ( source Sets [" main "]. all Source ) Ċ } Ċ Ċ val Ġpublication Name Ġ= Ġ" maven Java " Ċ Ċ publishing Ġ{ ĊĠĠĠ Ġpublications Ġ{ ĊĠĠĠĠĠĠĠ Ġregister ( publication Name , ĠMaven Publication :: class ) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġfrom ( components [" java "]) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġartifact ( sources Jar . get ()) ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} Ċ } Ċ Ċ bin tray Ġ{ ĊĠĠĠ Ġuser Ġ= Ġif Ġ( project . has Property (" bin tray User ")) Ġproject . property (" bin tray User ") Ġas ĠString Ġelse ĠSystem . getenv (" BIN TR AY _ USER ") ĊĠĠĠ Ġkey Ġ= Ġif Ġ( project . has Property (" bin tray Key ")) Ġproject . property (" bin tray Key ") Ġas ĠString Ġelse ĠSystem . getenv (" BIN TR AY _ KEY ") ĊĠĠĠ Ġset Public ations ( publication Name ) ĊĠĠĠ Ġpkg ( closure Of < Bin tray Extension . Package Config > Ġ{ ĊĠĠĠĠĠĠĠ Ġrepo Ġ= Ġ" Ex pre x " ĊĠĠĠĠĠĠĠ Ġname Ġ= Ġ" Ex pre x " ĊĠĠĠĠĠĠĠ Ġuser Org Ġ= Ġ" phil ip b org " ĊĠĠĠĠĠĠĠ Ġset License s (" Apache - 2 . 0 ") ĊĠĠĠĠĠĠĠ Ġv cs Url Ġ= Ġ" https :// github . com / phil ip b org / Ex pre x . git " ĊĠĠĠĠĠĠĠ Ġissue Tracker Url Ġ= Ġ" https :// github . com / phil ip b org / Ex pre x / issues " ĊĠĠĠĠĠĠĠ Ġwebsite Url Ġ= Ġ" https :// github . com / phil ip b org / Ex pre x " ĊĠĠĠĠĠĠĠ Ġpublic Download Numbers Ġ= Ġtrue ĊĠĠĠĠĠĠĠ Ġdesc Ġ= Ġ" Math ĠExpression Ġlibrary Ġfor ĠKotlin " ĊĠĠĠĠĠĠĠ Ġgithub Repo Ġ= Ġ" phil ip b org / Ex pre x " ĊĠĠĠĠĠĠĠ Ġattributes Ġ= Ġmap Of ( Pair (" mat urity ", Ġ" Development ")) ĊĠĠĠĠĠĠĠ Ġversion ( closure Of < Bin tray Extension . Version Config > Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġname Ġ= Ġversion Id ĊĠĠĠĠĠĠĠ Ġ}) ĊĠĠĠ Ġ}) Ċ }