Well if you are gluing to an enclosure of sorts you probably want to use some sort of thermal epoxy to transfer heat. Something like arctic silver adhesive. But for diving if you are actually trying to seal up the light you are going to have issues because of the pressure differential will cause any sealant to go.