License Gradle Plugin

2019-02-25 14:09发布

问题:

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.

How can we install License Plugin?

回答1:

You mean this license plugin?

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

In your build.gradle file add:

buildscript {
    repositories {
        mavenCentral()
    }

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

apply plugin: 'license'


标签: groovy gradle