the Libretto of  Amadis de Gaule was originaly set by an Italian-born French composer, instrumentalist, and dancer who spent most of his life working in whose court?
Jean-Baptiste Lully Jean-Baptiste Lully (] ; born Giovanni Battista Lulli ] ; 28 November 1632 – 22 March 1687) was an Italian-born French composer, instrumentalist, and dancer who spent most of his life working in the court of Louis XIV of France. He is considered a master of the French baroque style. Lully disavowed any Italian influence in French music of the period. He became a French subject in 1661.
Gaetano Martinelli Gaetano Martinelli (? – 1802) was an Italian librettist active in the court theatres of Charles Eugene, Duke of Württemberg from 1766 to 1769 and in Lisbon as the court poet to Joseph I of Portugal and his daughter Maria I from 1769 until his death in 1802. He was one of a group of reforming Italian librettists which also included Calzabigi, Verazi, and Migliavacca, who moved away from the traditional Metastasian plot structures that had dominated opera during the first half of the 18th century. The majority of his early libretti were for comic ("opera buffa") or semi-comic ("dramma giocoso") operas.