Zachary Gordon plays Greg in the first three films:
Jason Drucker takes over in the fourth film, The Long Haul (2017).
The 2021 Disney+ reboot Diary of a Wimpy Kid stars Elias Cohen as Greg.