提交 0f0c6114 编写于 作者: J Justin Ryan

Enable license header plugin

上级 cc1b04ce
......@@ -4,6 +4,7 @@ ext.githubProjectName = rootProject.name // TEMPLATE: change to match github pro
buildscript {
repositories { mavenCentral() }
apply from: file('gradle/buildscript.gradle'), to: buildscript
}
allprojects {
......@@ -14,7 +15,7 @@ allprojects {
apply from: file('gradle/convention.gradle')
apply from: file('gradle/maven.gradle')
apply from: file('gradle/check.gradle')
//apply from: file('gradle/license.gradle') // Waiting for re-release
apply from: file('gradle/license.gradle')
subprojects {
// Closure to configure all the POM with extra info, common to all projects
......@@ -44,6 +45,7 @@ subprojects {
}
project(':template-client') {
apply plugin: 'java'
dependencies {
compile 'org.slf4j:slf4j-api:1.6.3'
compile 'com.sun.jersey:jersey-client:1.11'
......
Copyright 2012 Netflix, Inc.
Copyright ${year} Netflix, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
......
// Executed in context of buildscript
dependencies { classpath 'nl.javadude.gradle.plugins:license-gradle-plugin:0.6.0' }
buildscript {
dependencies { classpath 'nl.javadude.gradle.plugins:license-gradle-plugin:0.5' }
}
// Dependency for plugin was set in buildscript.gradle
apply plugin: nl.javadude.gradle.plugins.license.LicensePlugin
subprojects {
apply plugin: 'license' //nl.javadude.gradle.plugins.license.LicensePlugin
license {
header rootProject.file('codequality/HEADER')
ext.year = Calendar.getInstance().get(Calendar.YEAR)
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册