I guess the tricky part there is that those stub classes need to be named the same as the proprietary dependencies, including the gradle lines. I wonder if it would make sense to have a #Maven repo that parallels Maven Central and maven.google.com that just contains stub libraries with the same Maven coordinates as the proprietary libs that many projects depend on.