Message Boards

Liferay 7.2 CE GA1 Configuration API doesn´t work

Diego Galeano, modified 4 Years ago.

Liferay 7.2 CE GA1 Configuration API doesn´t work

New Member Posts: 2 Join Date: 6/1/18 Recent Posts
Hi, I am trying to migrate some projects from Liferay 7.1.0 CE GA1 to Liferay 7.2.0 CE GA1 and I have a problem with Liferay Configuration API in Liferay 7.2.  
In Liferay 7.1, the configuration of custom modules is shown in System Configuration / Third - Party category. But in 7.2 it is shown in two Third - Party categories: one for System settings and another for Instance Settings but my modules doesn´t appear on any of those configurations.I have found this page https://portal.liferay.dev/docs/7-2/user/-/knowledge_base/u/system-settings and  I have tried to modify my configuration class with no success.Below are the screenshots of my issue.

This is my implementation of configuration class.
In Liferay 7.1 my configuration appears in System Configuration / Third - Party menu.

I tried below implementation with no success.

Thanks in advance.
thumbnail
Christoph Rabel, modified 4 Years ago.

RE: Liferay 7.2 CE GA1 Configuration API doesn´t work (Answer)

Liferay Legend Posts: 1554 Join Date: 9/24/09 Recent Posts
I guess, you are using the default workspace configuration for 7.2.
compile group: 'com.liferay', name: 'com.liferay.gradle.plugins.workspace', version: '2.0.4'
It's still the default, but it is broken. It doesn't generate the configuration metadata. Please try to change 2.0.4 to 2.1.4, the most current version.
compile group: 'com.liferay', name: 'com.liferay.gradle.plugins.workspace', version: '2.1.4'
hth
thumbnail
Olaf Kock, modified 4 Years ago.

RE: Liferay 7.2 CE GA1 Configuration API doesn´t work

Liferay Legend Posts: 6403 Join Date: 9/23/08 Recent Posts
There's no more need to downgrade (in case you find other postings on this topic as well), you can also use a more recent (rather than an older) version of Liferay Workspace.
Edit your settings.gradle to include a newer version of Liferay Workspace. 2.1.9 works for me, but check the link for the current version
Vishal Shah, modified 3 Years ago.

RE: Liferay 7.2 CE GA1 Configuration API doesn´t work

Junior Member Posts: 33 Join Date: 2/1/12 Recent Posts
Is to good to change the workspace jar file? - Is there any discrepancy with other rest Gradle WSDDL, WSDD, JAVADOC plugin module?

For my end resolution, I created a config file of my configuration class and put inside -> <LIFEERAY_HOME>/osgi/configs 
Inside Config File, put key-value pair of the declared parameters in the interface class.
For Example : (Attached File)
com.xxxxxxxx.auth.config.AuthServiceConfiguration.config 
authServiceURL=<value>