Skip to content

Commit

Permalink
Merging license header plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
Justin Ryan committed Aug 17, 2012
1 parent 6e85278 commit 102347b
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 15 deletions.
3 changes: 2 additions & 1 deletion build.gradle
Expand Up @@ -5,6 +5,7 @@ group = "com.netflix.${githubProjectName}" // TEMPLATE: Set to organization of p


buildscript { buildscript {
repositories { mavenCentral() } repositories { mavenCentral() }
apply from: file('gradle/buildscript.gradle'), to: buildscript
} }


allprojects { allprojects {
Expand All @@ -15,7 +16,7 @@ allprojects {
apply from: file('gradle/convention.gradle') apply from: file('gradle/convention.gradle')
apply from: file('gradle/maven.gradle') apply from: file('gradle/maven.gradle')
apply from: file('gradle/check.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 // Closure to configure all the POM with extra info, common to all projects
pom { pom {
Expand Down
20 changes: 10 additions & 10 deletions codequality/HEADER
@@ -1,13 +1,13 @@
Copyright 2012 Netflix, Inc. Copyright ${year} Netflix, Inc.


Licensed under the Apache License, Version 2.0 (the "License"); Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License. you may not use this file except in compliance with the License.
You may obtain a copy of the License at 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 Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS, distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
3 changes: 3 additions & 0 deletions gradle/buildscript.gradle
@@ -0,0 +1,3 @@
// Executed in context of buildscript
dependencies { classpath 'nl.javadude.gradle.plugins:license-gradle-plugin:0.6.0' }

10 changes: 6 additions & 4 deletions gradle/license.gradle
@@ -1,5 +1,7 @@
buildscript { // Dependency for plugin was set in buildscript.gradle
dependencies { classpath 'nl.javadude.gradle.plugins:license-gradle-plugin:0.5' }
}


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.