Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
RE: Gradle Dependency of InitUtil class in Liferay 7.2
I am facing issue to find particular dependency of com.liferay.portal.util.InitUtil in liferay 7.2.
anyone can help me on this.
Thanks in advance
anyone can help me on this.
Thanks in advance
EEK!
Whatever you're thinking about doing, I think it is 99% probably wrong and 95% probably a disaster.
Whatever you're thinking about doing, I think it is 99% probably wrong and 95% probably a disaster.
Could you elaborate on your question?
Do you want to use InitUtil in your code? (You should NOT)
Does your build complain that it cannot find InitUtil? Do you deploy and the runtime complains that it cannot find InitUtil to provide it to your module?
In any case, you should try to get rid of it, not find it. If you don't know where it comes from, a good start is the build.gradle file. Clean it out and remove everything you are not sure about. Then add stuff again, till the errors are gone.
You could also check the bnd.bnd file, if you are unsure what the directives in there do, post them here.
Do you want to use InitUtil in your code? (You should NOT)
Does your build complain that it cannot find InitUtil? Do you deploy and the runtime complains that it cannot find InitUtil to provide it to your module?
In any case, you should try to get rid of it, not find it. If you don't know where it comes from, a good start is the build.gradle file. Clean it out and remove everything you are not sure about. Then add stuff again, till the errors are gone.
You could also check the bnd.bnd file, if you are unsure what the directives in there do, post them here.
Copyright © 2025 Liferay, Inc
• Privacy Policy
Powered by Liferay™