RE: Gradle Dependency of InitUtil class in Liferay 7.2

Amit sinha, modified 5 Years ago. New Member Posts: 17 Join Date: 6/4/15 Recent Posts
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 
thumbnail
David H Nebinger, modified 5 Years ago. Liferay Legend Posts: 14933 Join Date: 9/2/06 Recent Posts
EEK!

Whatever you're thinking about doing, I think it is 99% probably wrong and 95% probably a disaster.
thumbnail
Christoph Rabel, modified 5 Years ago. Liferay Legend Posts: 1555 Join Date: 9/24/09 Recent Posts
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.