在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):cookpad/LicenseToolsPlugin开源软件地址(OpenSource Url):https://github.com/cookpad/LicenseToolsPlugin开源编程语言(OpenSource Language):HTML 86.6%开源软件介绍(OpenSource Introduction):DEPRECATED"LicenseToolsPlugin" is no longer used internally at Cookpad. No more development will be taking place. As an alternative, we recommend OSS Licenses Gradle Plugin. Thanks for all your support! License Tools Plugin for AndroidThis repository is a replacement project of cookpad/license-tools-plugin written with kotlin License List(sample)SetupRecommend plugins {
id "com.cookpad.android.plugin.license-tools" version "${latest_version}"
} If you use legacy gradle project buildscript {
repositories {
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath "gradle.plugin.com.cookpad.android.plugin:plugin:${latest_version}"
}
}
apply plugin: "com.cookpad.android.plugin.license-tools" Learn how to apply plugins to subprojects Gradle tasksThis Plugin provite to check library licenses and generate license pages.
How To Use
Run the |
Field name | Default value | Description |
---|---|---|
licensesYaml |
"licenses.yml" |
The name of the licenses yml file |
outputHtml |
"licenses.html" |
The file name of the output of the generateLicensePage task |
outputJson |
"licenses.json" |
The file name of the output of the generateLicenseJson task |
ignoredGroups |
[] (empty array) |
An array of group names the plugin will ignore (useful for internal dependencies with missing .pom files) |
ignoredProjects |
[] (empty array) |
An array of project names the plugin will ignore (To ignore particular internal projects like custom lint) |
artifact
name
copyrightHolder
, author
, authors
or notice
year
to indicate copyright yearsskip
to skip generating license entries (for proprietary libraries)forceGenerate
to force generate the output with arbitrary items. (Read [this issue](Feature Request: feature for adding/changing licenses by hand #78) for more details.)
pom
data is wrong, you can override some of them using this flag.- artifact: androidx.annotation:annotation:+
name: Android Support Library Annotations
copyrightHolder: Google Inc.
license: The Apache Software License, Version 2.0
url: http://developer.android.com/tools/extras/support-library.html
licenseUrl: http://www.apache.org/licenses/LICENSE-2.0.txt
- artifact: androidx.appcompat:appcompat:+
name: Android AppCompat Library v7
copyrightHolder: Google Inc.
license: The Apache Software License, Version 2.0
url: http://developer.android.com/tools/extras/support-library.html
licenseUrl: http://www.apache.org/licenses/LICENSE-2.0.txt
- artifact: com.github.bumptech.glide:glide:+
name: Glide
copyrightHolder: Sam Judd
license: Simplified BSD License
url: https://github.com/bumptech/glide
licenseUrl: http://www.opensource.org/licenses/bsd-license
git tag $next_version
(i.g. git tag 1.2.0)git push orgin master --tags
After that check https://plugins.gradle.org/plugin/com.cookpad.android.plugin.license-tools
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论