build errors if it tries to connect to pub

fixes the build errors if it tries to connect to pub. It now uses the
new pubspec format and works fine.