许可Gradle插件 [英] License Gradle Plugin

查看:401
本文介绍了许可Gradle插件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们如何使用gradle脚本在src目录中存在的.groovy,.java,.jsp,.txt文件中搜索,跳过和写入所需的头文件(License)。

How can we search, skip and write for required header(License) in .groovy, .java, .jsp, .txt files which are exist in src directory using gradle script.

我们如何安装License Plugin?

How can we install License Plugin?

推荐答案

您的意思是这个许可证插件

这些说明似乎很清楚(从链接复制到此处)以上):

The instructions seem pretty clear (copied here from the link above):


在您的build.gradle文件中添加:

In your build.gradle file add:

buildscript {
    repositories {
        mavenCentral()
    }

    dependencies {
        classpath 'nl.javadude.gradle.plugins:license-gradle-plugin:0.5.0'
    }
}

apply plugin: 'license'


这篇关于许可Gradle插件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆