当前位置:   article > 正文

常用的开源许可证 MIT、Apache、GPL_mit license

mit license

(1)MIT License: 一种非常宽松的许可证,允许他人自由使用、修改和分发您的代码,只要保留原始许可证和版权声明。这是许多开源项目的首选许可证。

(2)Apache License 2.0: 类似于 MIT License,但包含关于专利权的额外条款。这意味着贡献者放弃对他们的贡献提出专利权诉讼的权利,允许用户自由使用、修改和分发代码,同时提供了关于专利权的额外保护。

(3)GNU General Public License (GPL): 一种“病毒式”许可证,要求使用、修改或分发您代码的任何人都必须以相同的许可证发布他们的代码。这意味着您的代码不会被用于专有软件项目。

即Git仓库里的LICENSE文件。

自己开发小demo的话,用(1)即可。


MIT License开源许可证

( [year] 和 [your name] 替换为实际值,年份 名称,比如 2023 LEstevalor。创建 LICENSE 文件后,您的项目现在已经受到所选许可证的保护。)

  1. MIT License
  2. Copyright (c) [year] [your name]
  3. Permission is hereby granted, free of charge, to any person obtaining a copy
  4. of this software and associated documentation files (the "Software"), to deal
  5. in the Software without restriction, including without limitation the rights
  6. to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  7. copies of the Software, and to permit persons to whom the Software is
  8. furnished to do so, subject to the following conditions:
  9. The above copyright notice and this permission notice shall be included in all
  10. copies or substantial portions of the Software.
  11. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  12. IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  13. FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  14. AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  15. LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  16. OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
  17. SOFTWARE.

 Apache License 2.0开源许可证

  1. Apache License
  2. Version 2.0, January 2004
  3. http://www.apache.org/licenses/
  4. TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
  5. 1. Definitions.
  6. "License" shall mean the terms and conditions for use, reproduction,
  7. and distribution as defined by Sections 1 through 9 of this document.
  8. "Licensor" shall mean the copyright owner or entity authorized by
  9. the copyright owner that is granting the License.
  10. "Legal Entity" shall mean the union of the acting entity and all
  11. other entities that control, are controlled by, or are under common
  12. control with that entity. For the purposes of this definition,
  13. "control" means (i) the power, direct or indirect, to cause the
  14. direction or management of such entity, whether by contract or
  15. otherwise, or (ii) ownership of fifty percent (50%) or more of the
  16. outstanding shares, or (iii) beneficial ownership of such entity.
  17. "You" (or "Your") shall mean an individual or Legal Entity
  18. exercising permissions granted by this License.
  19. "Source" form shall mean the preferred form for making modifications,
  20. including but not limited to software source code, documentation
  21. source, and configuration files.
  22. "Object" form shall mean any form resulting from mechanical
  23. transformation or translation of a Source form, including but
  24. not limited to compiled object code, generated documentation,
  25. and conversions to other media types.
  26. "Work" shall mean the work of authorship, whether in Source or
  27. Object form, made available under the License, as indicated by a
  28. copyright notice that is included in or attached to the work
  29. (an example is provided in the Appendix below).
  30. "Derivative Works" shall mean any work, whether in Source or Object
  31. form, that is based on (or derived from) the Work and for which the
  32. editorial revisions, annotations, elaborations, or other modifications
  33. represent, as a whole, an original work of authorship. For the purposes
  34. of this License, Derivative Works shall not include works that remain
  35. separable from, or merely link (or bind by name) to the interfaces of,
  36. the Work and Derivative Works thereof.
  37. "Contribution" shall mean any work of authorship, including
  38. the original version of the Work and any modifications or additions
  39. to that Work or Derivative Works thereof, that is intentionally
  40. submitted to Licensor for inclusion in the Work by the copyright owner
  41. or by an individual or Legal Entity authorized to submit on behalf of
  42. the copyright owner. For the purposes of this definition, "submitted"
  43. means any form of electronic, verbal, or written communication sent
  44. to the Licensor or its representatives, including but not limited to
  45. communication on electronic mailing lists, source code control systems,
  46. and issue tracking systems that are managed by, or on behalf of, the
  47. Licensor for the purpose of discussing and improving the Work, but
  48. excluding communication that is conspicuously marked or otherwise
  49. designated in writing by the copyright owner as "Not a Contribution."
  50. "Contributor" shall mean Licensor and any individual or Legal Entity
  51. on behalf of whom a Contribution has been received by Licensor and
  52. subsequently incorporated within the Work.
  53. 2. Grant of Copyright License. Subject to the terms and conditions of
  54. this License, each Contributor hereby grants to You a perpetual,
  55. worldwide, non-exclusive, no-charge, royalty-free, irrevocable
  56. copyright license to reproduce, prepare Derivative Works of,
  57. publicly display, publicly perform, sublicense, and distribute the
  58. Work and such Derivative Works in Source or Object form.
  59. 3. Grant of Patent License. Subject to the terms and conditions of
  60. this License, each Contributor hereby grants to You a perpetual,
  61. worldwide, non-exclusive, no-charge, royalty-free, irrevocable
  62. (except as stated in this section) patent license to make, have made,
  63. use, offer to sell, sell, import, and otherwise transfer the Work,
  64. where such license applies only to those patent

GNU General Public License v3.0(GPLv3)开源许可证

  1. GNU GENERAL PUBLIC LICENSE
  2. Version 3, 29 June 2007
  3. Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
  4. Everyone is permitted to copy and distribute verbatim copies
  5. of this license document, but changing it is not allowed.
  6. Preamble
  7. The GNU General Public License is a free, copyleft license for
  8. software and other kinds of works.
  9. The licenses for most software and other practical works are designed
  10. to take away your freedom to share and change the works. By contrast,
  11. the GNU General Public License is intended to guarantee your freedom to
  12. share and change all versions of a program--to make sure it remains free
  13. software for all its users. We, the Free Software Foundation, use the
  14. GNU General Public License for most of our software; it applies also to
  15. any other work released this way by its authors. You can apply it to
  16. your programs, too.
  17. When we speak of free software, we are referring to freedom, not
  18. price. Our General Public Licenses are designed to make sure that you
  19. have the freedom to distribute copies of free software (and charge for
  20. them if you wish), that you receive source code or can get it if you
  21. want it, that you can change the software or use pieces of it in new
  22. free programs, and that you know you can do these things.
  23. To protect your rights, we need to prevent others from denying you
  24. these rights or asking you to surrender the rights. Therefore, you have
  25. certain responsibilities if you distribute copies of the software, or if
  26. you modify it: responsibilities to respect the freedom of others.
  27. For example, if you distribute copies of such a program, whether
  28. gratis or for a fee, you must pass on to the recipients the same
  29. freedoms that you received. You must make sure that they, too, receive
  30. or can get the source code. And you must show them these terms so they
  31. know their rights.
  32. Developers that use the GNU GPL protect your rights with two steps:
  33. (1) assert copyright on the software, and (2) offer you this License
  34. giving you legal permission to copy, distribute and/or modify it.
  35. For the developers' and authors' protection, the GPL clearly explains
  36. that there is no warranty for this free software. For both users' and
  37. authors' sake, the GPL requires that modified versions be marked as
  38. changed, so that their problems will not be attributed erroneously to
  39. authors of previous versions.
  40. Some devices are designed to deny users access to install or run
  41. modified versions of the software inside them, although the manufacturer
  42. can do so. This is fundamentally incompatible with the aim of
  43. protecting users' freedom to change the software. The systematic
  44. pattern of such abuse occurs in the area of products for individuals to
  45. use, which is precisely where it is most unacceptable. Therefore, we
  46. have designed this version of the GPL to prohibit the practice for those
  47. products. If such problems arise substantially in other domains, we
  48. stand ready to extend this provision to those domains in future versions
  49. of the GPL, as needed to protect the freedom of users.
  50. Finally, every program is threatened constantly by software patents.
  51. States should not allow patents to restrict development and use of
  52. software on general-purpose computers, but in those that do, we wish to
  53. avoid the special danger that patents applied to a free program could
  54. make it effectively proprietary. To prevent this, the GPL assures that
  55. patents cannot be used to render the program non-free.
  56. The precise terms and conditions for copying, distribution and
  57. modification follow.
  58. TERMS AND CONDITIONS
  59. 0. Definitions.
  60. "This License" refers to version 3 of the GNU General Public License.
  61. "Copyright" also means copyright-like laws that apply to other kinds of
  62. works, such as semiconductor masks.
  63. "The Program" refers to any copyrightable work licensed under this
  64. License. Each licensee is addressed as "you". "Licensees" and
  65. "recipients" may be individuals or organizations

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/AllinToyou/article/detail/448144
推荐阅读
相关标签
  

闽ICP备14008679号