跳至主要內容

ihub-copyright

Henry...小于 1 分钟

ihub-copyright

插件说明

ihub-copyright插件是版权插件,用于自动配置IDEA版权设置,自动伪代码添加或更新版权信息。

插件ID插件名称插件类型插件依赖
pub.ihub.plugin.ihub-copyright版权插件Project[1]ihub

插件安装

Kotlin
plugins {
    id("pub.ihub.plugin.ihub-copyright")
}

Kotlin
plugins {
    id("pub.ihub.plugin")
}

apply {
    plugin("pub.ihub.plugin.ihub-copyright")
}

配置示例

  1. 通过COPYRIGHT文件获取版权信息,文件配置项目根目录下
Copyright (c) 2023 the original author or authors.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    https://www.apache.org/licenses/LICENSE-2.0
    
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
  1. 通过LICENSE文件提取版权信息,目前会识别Apache LicenseMIT License配置通用版权信息,其他版权会使用IDEA默认版权配置

  1. Project:项目类型插件,配置于build.gradle文件,类型说明详见open in new window ↩︎