OT law prevailed why Jesus was alive. that is not just the 10 commandments
familiarize yourself with the other 613 'laws' covering everyday life and you will see that the people Jesus came to, the Jews, already knew all about sexual sin and the law is plain regarding homsexual acts
it forbids a man to lie with another man and the penalty for doing so is death
all translations say that it is forbidden:
New International Version
"'Do not have sexual relations with a man as one does with a woman; that is detestable.
New Living Translation
"Do not practice homosexuality, having sex with another man as with a woman. It is a detestable sin.
English Standard Version
You shall not lie with a male as with a woman; it is an abomination.
Berean Study Bible
You must not lie with a man as with a woman; that is an abomination.
New American Standard Bible
'You shall not lie with a male as one lies with a female; it is an abomination.
King James Bible
Thou shalt not lie with mankind, as with womankind: it
is abomination.
Christian Standard Bible
You are not to sleep with a man as with a woman; it is detestable.
Contemporary English Version
It is disgusting for a man to have sex with another man.
Good News Translation
No man is to have sexual relations with another man; God hates that.
Holman Christian Standard Bible
You are not to sleep with a man as with a woman; it is detestable.
International Standard Version
You are not to have sexual relations with a male as you would with a woman. It's detestable."
NET Bible
You must not have sexual intercourse with a male as one has sexual intercourse with a woman; it is a detestable act.
New Heart English Bible
"'You shall not have sexual relations with a male, as with a woman. That is detestable.
GOD'S WORD® Translation
Never have sexual intercourse with a man as with a woman. It is disgusting.
JPS Tanakh 1917
Thou shalt not lie with mankind, as with womankind; it is abomination.
New American Standard 1977
‘You shall not lie with a male as one lies with a female; it is an abomination.
Jubilee Bible 2000
Thou shalt not lie with males as with women; it is abomination.
King James 2000 Bible
You shall not lie with a man, as with a woman: it is abomination.
American King James Version
You shall not lie with mankind, as with womankind: it is abomination.
American Standard Version
Thou shalt not lie with mankind, as with womankind: it is abomination.
Douay-Rheims Bible
Thou shalt not lie with mankind as with womankind, because it is an abomination.
Darby Bible Translation
And thou shalt not lie with mankind as one lieth with a woman: it is an abomination.
English Revised Version
Thou shalt not lie with mankind, as with womankind: it is abomination.
Webster's Bible Translation
Thou shalt not lie with mankind, as with womankind: it is abomination.
World English Bible
"'You shall not lie with a man, as with a woman. That is detestable.
Young's Literal Translation
And with a male thou dost not lie as one lieth with a woman; abomination it is.
Leviticus 18:22
I don't know what else you would expect Jesus to have said about it? I think this is plain enough