Even after JPII made the matter very clear in Ordinatio Sacerdotalis, people still doubted. Some claimed that it was still only a discipline and not a doctrine that is part of the deposit of faith. Finally, someone posed the question to the Vatican’s Congregation for the Doctrine of the Faith, and this was the response:
Dubium: Whether the teaching that the Church has no authority whatsoever to confer priestly ordination on women, which is presented in the Apostolic Letter Ordinatio Sacerdotalis to be held definitively, is to be understood as belonging to the deposit of faith.
Responsum: In the affirmative.
This teaching requires definitive assent, since, founded on the written Word of God, and from the beginning constantly preserved and applied in the Tradition of the Church, it has been set forth infallibly by the ordinary and universal Magisterium (cf. Second Vatican Council, Dogmatic Constitution on the Church Lumen Gentium 25, 2). Thus, in the present circumstances, the Roman Pontiff, exercising his proper office of confirming the brethren (cf. Lk 22:32), has handed on this same teaching by a formal declaration, explicitly stating what is to be held always, everywhere, and by all, as belonging to the deposit of the faith.
You’d be hard pressed to find a recent example where the Church spoke more clearly and definitively on a particular issue.