added test case for when no publications are configured
added test to prove that case where gradle version doesn't expose publications is handled gracefully