st的库是啥开源协议

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了st的库是啥开源协议相关的知识,希望对你有一定的参考价值。

参考技术A 协程库的开源协议。
st库是协程库,是目前使用最多的ST库。
协程库statethreadslibrary(以下简称st)是一个基于setjmp/longjmp实现的C语言版用户线程库或协程库(userlevelthread)。

Android Studio 中的 Maven 存储库是啥?

【中文标题】Android Studio 中的 Maven 存储库是啥?【英文标题】:What is Maven repository in Android Studio?Android Studio 中的 Maven 存储库是什么? 【发布时间】:2019-10-28 21:03:33 【问题描述】:

谁能清楚地解释一下 Android Studio 中的 Maven repository 是什么?我试图理解它,但我找不到更好的解释。 上次我需要在我的项目中添加一些依赖项,但直到我在我的 build.gradle 文件中添加了指向 Maven and Jcenter 的链接后它们才起作用。

它工作得很好,但我的问题只是想知道 Android Studio 中的 maven 和 Jcenter 到底是什么? 提前感谢您的回答。

【问题讨论】:

它们是公共存储库,可帮助您使用正确的库构建项目。过去你需要自己添加每个库,现在有了这项技术,你只需运行它们的命令,就可以根据你选择的版本获取库。 我知道这有多难。 【参考方案1】:

maven 存储库是一个“repo”,无论是公共的还是私有的,用于存储库、插件和一般的工件。 它与 Android Studio 或其他 IDE 无关。

JCenter 是 maven repo 之一。

JCenter 是查找和共享流行的 Apache Maven 包的地方,供 Maven、Gradle、Ivy、SBT 等使用。

Android 中使用的其他常见 repo 有:

Maven Central Google maven repo

在gradle script 中,您可以在repositories 块中找到它们:

/**
     * The repositories block configures the repositories Gradle uses to
     * search or download the dependencies. Gradle pre-configures support for remote
     * repositories such as JCenter, Maven Central, and Ivy. You can also use local
     * repositories or define your own remote repositories. The code below defines
     * JCenter as the repository Gradle should use to look for its dependencies.
     *
     * New projects created using Android Studio 3.0 and higher also include
     * Google's Maven repository.
     */
repositories 
        google()
        jcenter()
    

【讨论】:

感谢您的回答。我不知道 Maven 和 JCenter 之间的区别。现在我也明白了 JCenter 是什么了。【参考方案2】:

我不是 Java 人,但来自谷歌的快速查找:

Maven 是构建和依赖管理工具(帮助构建项目和下载依赖)。

Jcenter 看起来像可用库的存储库(是 maven 进程下载的所有依赖项的源)。

【讨论】:

以上是关于st的库是啥开源协议的主要内容,如果未能解决你的问题,请参考以下文章

开源的基于八卦的会员协议?

开源协议

github开源代码gpl协议和lgpl协议的区别

github开源代码gpl协议和lgpl协议的区别

greaterwms是啥??

STM32CubeMX,68套组件,遵循10条开源协议