Ċ plugins Ġ{ ĊĠĠĠ Ġ/* ĊĠĠĠĠ Ġ* ĠN exus Ġpublishing Ġplugin Ġcannot Ġexist Ġin Ġsub Ġprojects . ĊĠĠĠĠ Ġ* ĠSee Ġhttps :// github . com / gradle - nexus / publish - plugin / issues / 8 1 ĊĠĠĠĠ Ġ*/ ĊĠĠĠ Ġid ( Plugin Ids . N exus Publish ) Ġversion ĠPlugin Versions . N exus Publish Ċ } Ċ Ċ // ĠPublish ing Ċ nexus Publishing Ġ{ ĊĠĠĠ Ġrepositories Ġ{ ĊĠĠĠĠĠĠĠ Ġson atype Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġn exus Url . set ( uri ( project . property (" nexus . url ") Ġas ĠString )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġsnapshot Repository Url . set ( uri ( project . property (" nexus . snapshot . repository . url ") Ġas ĠString )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġusername . set ( find Project ( project . property (" nexus . username ") Ġas ĠString )?. toString () Ġ?: ĠSystem . getenv (" OSS RH _ USERNAME ")) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġpassword . set ( find Project ( project . property (" nexus . password ") Ġas ĠString )?. toString () Ġ?: ĠSystem . getenv (" OSS RH _ PASSWORD ")) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġstaging Profile Id . set ( project . property (" nexus . staging . profile . id ") Ġas ĠString ) Ġ// Ġprevents Ġquerying Ġfor Ġthe Ġstaging Ġprofile Ġid , Ġperformance Ġoptimization ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} Ċ } Ċ Ċ tasks . register < io . pro venance . Download Protos Task >(" download Protos ") Ġ{ ĊĠĠĠ Ġcos mos Version Ġ= Ġproject . property (" cosmos . version ") Ġas ĠString ? ĊĠĠĠ Ġwas md Version Ġ= Ġproject . property (" was md . version ") Ġas ĠString ? ĊĠĠĠ Ġi bc Version Ġ= Ġproject . property (" ib c . version ") Ġas ĠString ? Ċ } Ċ