Additional District Sessions Judge Rajesh Bhardwaj held them guilty under IPC section 376 (g) (gangrape) and section 66 of the Information Technology Act.
The judge also imposed a fine of Rs 35,000 on each of them.
The men raped the woman in June 2014, captured the act on camera and uploaded the video on social media, according to prosecution lawyer Qayyum Ali.
Tension had prevailed in the village after the video surfaced on Internet, the police had said earlier.
Disclaimer: No Business Standard Journalist was involved in creation of this content