package Ġru . surf studio . android . build . tasks . check _ stable _ artifacts _ exist _ in _ repositories Ċ Ċ import Ġorg . gradle . api . tasks . Task Action Ċ import Ġru . surf studio . android . build . bin tray . Bin tray Ċ import Ġru . surf studio . android . build . exceptions . bin tray . Artifacts NotFound In Bin tray Exception Ċ import Ġru . surf studio . android . build . model . module . Library Ċ Ċ /** Ċ Ġ* ĠCheck Ġstable Ġartifacts Ġexist Ġin Ġbin tray Ċ Ġ*/ Ċ @ Deprecated (" Use ĠArt ifactory Ġor ĠMaven ĠCentral Ġafter ĠB intr ay Ġsun set ") Ċ open Ġclass ĠCheck Stable Artifacts Exist In Bin tray Task Ġ: ĠBase Check Stable Artifacts Exist In Repository Task () Ġ{ ĊĊĠĠĠ Ġ@ Task Action ĊĠĠĠ Ġfun Ġcheck () Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġlibraries Ġ= Ġfind Stable Libraries () ĊĠĠĠĠĠĠĠ Ġval Ġlibs With NotExist ed Artifacts Ġ= ĠArrayList < Library >() ĊĊĠĠĠĠĠĠĠ Ġlibraries . forEach Ġ{ Ġlibrary Ġ-> ĊĠĠĠĠĠĠĠĠĠĠĠ Ġif Ġ(! Bin tray . is Artifact Exists ( library . name , Ġlibrary . project Version )) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġlibs With NotExist ed Artifacts . add ( library ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ} ĊĠĠĠĠĠĠĠ Ġ} ĊĊĠĠĠĠĠĠĠ Ġif Ġ( lib sWith NotExist ed Artifacts . isNotEmpty ()) Ġthrow ĠArtifact s NotFound In Bin tray Exception ( lib sWith NotExist ed Artifacts ) ĊĠĠĠ Ġ} Ċ }