GRADLE-1116: Add back workaround for depending on test sources