plugins Ġ{ ĊĠĠĠ Ġ` java - library ` Ċ } Ċ repositories Ġ{ ĊĠĠĠ Ġmaven Central () Ċ } Ċ Ċ // Ġtag :: disable Global Dependency Substitution Rules [] Ċ configurations . create (" published Runtime Classpath ") Ġ{ ĊĠĠĠ Ġresolution Strategy . use Global Dependency Substitution Rules . set ( false ) ĊĊĠĠĠ Ġextends From ( configurations . runtime Classpath . get ()) ĊĠĠĠ Ġis Can Be Cons umed Ġ= Ġfalse ĊĠĠĠ Ġis Can Be Resolved Ġ= Ġtrue ĊĠĠĠ Ġattributes . attribute ( Usage . USAGE _ ATTRIBUTE , Ġobjects . named ( Usage . JAVA _ RUNTIME )) Ċ } Ċ // Ġend :: disable Global Dependency Substitution Rules [] Ċ Ċ dependencies Ġ{ ĊĠĠĠ Ġapi (" org . test : module - a : 1 . 0 ") Ċ } Ċ Ċ tasks . register (" resolve ") Ġ{ ĊĠĠĠ Ġdo Last Ġ{ ĊĠĠĠĠĠĠĠ Ġconfigurations . runtime Classpath . get (). files . forEach Ġ{ Ġprintln ( it . name ) Ġ} ĊĠĠĠĠĠĠĠ Ġconfigurations [" published Runtime Classpath "]. files . forEach Ġ{ Ġprintln ( it . name ) Ġ} ĊĠĠĠ Ġ} Ċ } Ċ