Old English godlic "excellent; comely fair;" see good (n.) + -ly (1). From c. 1200 as "considerable in size or number." Similar formation in Old Frisian godlik, Old High German guotlih, Old Norse godhligr. Related: Goodliness.
Old English god (with a long "o"), "that which is good, a good thing; goodness; advantage, benefit; gift; virtue; property;" from good (adj.). Meaning "the good side" (of something) is from 1660s. Phrase for good "finally, permanently" attested from 1711, a shortening of for good and all (16c.). Middle English had for good ne ylle (early 15c.) "for good nor ill," thus "under any circumstance."
suffix forming adjectives from nouns and meaning "having qualities of, of the form or nature of" (manly, lordly), "appropriate to, fitting, suited to" (bodily, earthly, daily); irregularly descended from Old English -lic, from Proto-Germanic *-liko- (Old Frisian -lik, Dutch -lijk, Old High German -lih, German -lich, Old Norse -ligr), related to *likom- "appearance, form" (Old English lich "corpse, body;" see lich, which is a cognate; see also like (adj.), with which it is identical).
Others are reading
<a href="https://www.etymonline.com/word/goodly">Etymology of goodly by etymonline</a>
Harper, D. (n.d.). Etymology of goodly. Online Etymology Dictionary. Retrieved $(datetime), from https://www.etymonline.com/word/goodly