Message Boards

BlogLocalServiceUtil

Arun Pandian, modified 4 Years ago.

BlogLocalServiceUtil

Junior Member Posts: 72 Join Date: 9/26/19 Recent Posts
Hi,

i would like to add blogs programmatically.

is it possible

if its possible how can i add the "
com.liferay.blogs.api
" api into my application please help
thumbnail
Olaf Kock, modified 4 Years ago.

RE: BlogLocalServiceUtil

Liferay Legend Posts: 6403 Join Date: 9/23/08 Recent Posts
Arun Pandian:

if its possible how can i add the "com.liferay.blogs.api" api into my application?

it is possible. If you have gradle, just add
compileOnly group:"com.liferay" name:"com.liferay.blogs.api" 
to your build.gradle.
Contrary to this thread's title, you should utilize OSGi @Reference annotations to get a reference to the services, not BlogLocalServiceUtil.