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: What is the purpose of the repository com.liferay.petra
Hi,
I would like to know what is the purpose of this repository https://github.com/liferay/com-liferay-petra ? Is it just utility classes ?
Thanks
util-java cannot be added to your OSGi dependencies. The petra modules break out parts of util-java into separate OSGi-friendly module jars.
Denis Cucchietti:I would like to know what is the purpose of this repository https://github.com/liferay/com-liferay-petra ? Is it just utility classes ?
The com-liferay-petra repository was the subrepository corresponding
to the modules/apps/petra
folder in the monorepository. The specific modules within that folder
came from the ongoing attempt at modularizing
com.liferay.util.java, as David mentioned, and com.liferay.portal.kernel.
Subrepositories were originally intended to allow for all of the
different .lpkg files that make up a Liferay release to be released on
separate schedules (essentially, each folder in
modules/apps is its own .lpkg). The idea is that
component teams would commit to the subrepositories (each one managed
by one of Liferay's separate teams), and the monorepository would be a
central reference point for a release.
Most subrepositories, including com-liferay-petra, were discontinued
and no longer kept up to date on the master branch (missing a
.gitrepo file) due to some directory reshuffling that
happened prior to the Liferay 7.1 release.
On the master branch, only two are still maintained: the
subrepositories corresponding to modules/apps/analytics
(.gitrepo is in push mode) and modules/apps/apio-architect
(.gitrepo is in pull mode). On the 7.0.x branch, many of
the other subrepositories are still maintained in push mode.
Thank you for your answers !