plugins Ġ{ ĊĠĠĠ Ġid (" com . h iv emq . extension ") ĊĠĠĠ Ġid (" com . github . hi ery nom us . license ") ĊĠĠĠ Ġid (" com . github . sg ts il vio . gradle . utf 8 ") ĊĠĠĠ Ġid (" org . asci ido ctor . jvm . convert ") Ċ } Ċ Ċ group Ġ= Ġ" com . h iv emq . extensions " Ċ description Ġ= Ġ" Cluster Ġdiscovery Ġextension Ġusing Ġround - ro bin ĠDNS ĠA Ġrecords " Ċ Ċ h iv emq Extension Ġ{ ĊĠĠĠ Ġname . set (" DNS ĠCluster ĠDiscovery ĠExtension ") ĊĠĠĠ Ġauthor . set (" Hive MQ ") ĊĠĠĠ Ġpriority . set ( 1 0 0 0 ) ĊĠĠĠ Ġstart Priority . set ( 1 0 0 0 0 ) ĊĠĠĠ Ġsdk Version . set ("${ property (" h iv emq - extension - sdk . version ") }") Ċ } Ċ Ċ dependencies Ġ{ ĊĠĠĠ Ġimplementation (" org . ae on bits . owner : owner :${ property (" owner . version ") }") ĊĠĠĠ Ġimplementation (" io . netty : netty - resolver - dns :${ property (" netty . version ") }") ĊĠĠĠ Ġimplementation (" commons - validator : commons - validator :${ property (" commons - validator . version ") }") Ċ } Ċ Ċ /* Ġ***************** *** Ġresources Ġ***************** *** Ġ*/ Ċ Ċ val Ġprepare Asc iid oc Ġby Ġtasks . register ing ( Sync :: class ) Ġ{ ĊĠĠĠ Ġfrom (" README . adoc "). into ({ Ġtemporary Dir Ġ}) Ċ } Ċ Ċ tasks . asci ido ctor Ġ{ ĊĠĠĠ Ġdepends On ( prepare Asc iid oc ) ĊĠĠĠ Ġsource Dir ( prepare Asc iid oc . map Ġ{ Ġit . destination Dir Ġ}) Ċ } Ċ Ċ h iv emq Extension . resources Ġ{ ĊĠĠĠ Ġfrom (" LICENSE ") ĊĠĠĠ Ġfrom (" README . adoc ") Ġ{ Ġrename Ġ{ Ġ" README . txt " Ġ} Ġ} ĊĠĠĠ Ġfrom (" dns - discovery - diagram . png ") ĊĠĠĠ Ġfrom ( tasks . asci ido ctor ) Ċ } Ċ Ċ /* Ġ***************** *** Ġtest Ġ***************** *** Ġ*/ Ċ Ċ dependencies Ġ{ ĊĠĠĠ Ġtest Implementation (" org . junit . jupiter : junit - jupiter - api :${ property (" junit - jupiter . version ") }") ĊĠĠĠ Ġtest Runtime Only (" org . junit . jupiter : junit - jupiter - engine ") ĊĠĠĠ Ġtest Implementation (" org . mockito : mockito - core :${ property (" mockito . version ") }") Ċ } Ċ Ċ tasks . with Type < Test >(). configure Each Ġ{ ĊĠĠĠ Ġuse JUnit Platform () Ċ } Ċ Ċ /* Ġ***************** *** Ġintegration Ġtest Ġ***************** *** Ġ*/ Ċ Ċ dependencies Ġ{ ĊĠĠĠ Ġintegration Test Implementation (" org . test containers : test containers :${ property (" test containers . version ") }") ĊĠĠĠ Ġintegration Test Implementation (" com . h iv emq : h iv emq - test container - junit 5 :${ property (" h iv emq - test container . version ") }") ĊĠĠĠ Ġintegration Test Implementation (" org . apache . directory . server : apache ds - protocol - dns :${ property (" apache - dns . version ") }") ĊĠĠĠ Ġintegration Test Runtime Only (" ch . qos . log back : log back - classic :${ property (" log back . version ") }") Ċ } Ċ Ċ /* Ġ***************** *** Ġchecks Ġ***************** *** Ġ*/ Ċ Ċ license Ġ{ ĊĠĠĠ Ġheader Ġ= Ġroot Dir . resolve (" HEADER ") ĊĠĠĠ Ġmapping (" java ", Ġ" SL ASH STAR _ STYLE ") ĊĠĠĠ Ġexclude (" com / h iv emq / extensions / dns / Test Dns Server . java ") ĊĠĠĠ Ġexclude (" h iv emq - prometheus - extension /** /* ") Ċ }