I think if Jesus had been gay, it would have been written about and widely circulated, as jewish men, while maybe marrying late, would not have not married. I recall reading about a rabbi, who lived about 100-200 years after Jesus, and as he never married, there was lots of bitchy writings about him.
Meanwhile, I have come across a theory that rather than being the son of god, Jesus was actually the grandson of King Herod by his son Antipater, who was the heir to the throne. This claim to the throne was backed up by a roman Imperial decree, as Antipater was the friend of whichever emperor was in Rome at the time.
Interestingly, Antipater's wife was called Mariamne (otherwise Mary in our modern day terms), and her mother was called Anne (which fits church tradition), and was a direct descendant of David. Mariamne's father was the high priest. Mariamne disappears from history during a period in which Herod killed Antipater and his oldest children after they were falsely implicated in a plot to assassinate Herod, the plot being instigated by Antipater's brother and aunt who wanted the throne for themselves.
If this theory is true, then it explains why during the interrogation of Jesus by Pilate, Pilate says "I can find no fault in him", in other words, when he claimed he was king of the jews he must have been speaking the legal truth as the imperial decree was still in existance and only a son of Antipater could legally claim to be king of the jews.
I am an atheist, but I do like researching into history and this cropped up when I was looking into something else.