Follow the instruction from the Google Calender API - Java & Gradle
After creating credentials and setting up client_secret.json
Run : gradle run
Once the application authorization with calendar is done , top 10 events will get pulled and displayed in console.