Is it possible to add a new license here?
How?
I saw that all these licenses are part of cuba\credits.xml but is read-only.
Is there any possibility to edit this file?
I already saw this link.
I still don’t understand how can I edit cuba\credits.xml.
Should I add a new file credits.xml to my project and put the link here:
?
Can you help me with an example, pls?
Best Regards,
-n
Sure.
Add credits.xml
file to the base package of your project’s global
module, say com.company.myapp
:
<credits>
<items>
<item name="Some library" web="http://some.url" license="apache-2.0" />
</items>
</credits>
apache-2.0
here is the id of the license defined in CUBA’s credits.xml
. You can also define licenses in your file, see the docs for details.
Add the following line to web-app.properties
:
cuba.creditsConfig = +com/company/myapp/credits.xml
It works like a charm.
Thank you!