Only add Java project to the dependencies if they are exported.

Change-Id: Ieae3414762d062b745b9b47bdea8c31a6593e34f
4 files changed