Youth gets 7-year imprisonment in minor rape case