Permalink
Browse files

Merging license header plugin

  • Loading branch information...
1 parent 6e85278 commit 102347bc93901417d909f0392df191f92d13aedb @quidryan quidryan committed Aug 17, 2012
Showing with 21 additions and 15 deletions.
  1. +2 −1 build.gradle
  2. +10 −10 codequality/HEADER
  3. +3 −0 gradle/buildscript.gradle
  4. +6 −4 gradle/license.gradle
View
@@ -5,6 +5,7 @@ group = "com.netflix.${githubProjectName}" // TEMPLATE: Set to organization of p
buildscript {
repositories { mavenCentral() }
+ apply from: file('gradle/buildscript.gradle'), to: buildscript
}
allprojects {
@@ -15,7 +16,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')
// Closure to configure all the POM with extra info, common to all projects
pom {
View
@@ -1,13 +1,13 @@
- 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.
- You may obtain a copy of the License at
+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
- http://www.apache.org/licenses/LICENSE-2.0
+ http://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.
+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.
@@ -0,0 +1,3 @@
+// Executed in context of buildscript
+dependencies { classpath 'nl.javadude.gradle.plugins:license-gradle-plugin:0.6.0' }
+
View
@@ -1,5 +1,7 @@
-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
+apply plugin: 'license' //nl.javadude.gradle.plugins.license.LicensePlugin
+license {
+ header rootProject.file('codequality/HEADER')
+ ext.year = Calendar.getInstance().get(Calendar.YEAR)
+}

0 comments on commit 102347b

Please sign in to comment.