Disable build whenever a SNAPSHOT dependency is built

Change-Id: I902f5bfbe37f7104c4433daecef7d268a27b1742
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>