Add license field to library.json // Resolve #522

This commit is contained in:
Ivan Kravets
2016-07-15 19:57:55 +03:00
parent 06494729f1
commit 2bfa3517f0
2 changed files with 16 additions and 1 deletions

View File

@ -20,6 +20,8 @@ PlatformIO 3.0
* Handle extra build flags and build script from
`library.json <http://docs.platformio.org/en/latest/librarymanager/config.html>`__
(`issue #289 <https://github.com/platformio/platformio/issues/289>`_)
* Added ``license`` field to `library.json <http://docs.platformio.org/en/latest/librarymanager/config.html>`__
(`issue #522 <https://github.com/platformio/platformio/issues/522>`_)
* Show detailed build information about dependent libraries
(`issue #617 <https://github.com/platformio/platformio/issues/617>`_)
* Embedded Board compatibility with more than one development platform

View File

@ -222,6 +222,19 @@ Example:
},
"version": "1.0.0"
``license``
-----------
A license of the library. You can check
`the full list of SPDX license IDs <https://spdx.org/licenses/>`_. Ideally you
should pick one that is `OSI <https://opensource.org/licenses/alphabetical>`_
approved.
.. code-block:: javascript
"license": "Apache-2.0"
.. _libjson_downloadurl:
``downloadUrl``
@ -479,7 +492,7 @@ options:
"flags": "-std=c99"
}
4. Build source files (``c, cpp, h``) only from the root of the library
4. Build source files (``c, cpp, h``) at the top level of the library
.. code-block:: javascript