aurora-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jfarr...@apache.org
Subject git commit: Aurora-193: fix license plugin
Date Tue, 25 Feb 2014 19:22:16 GMT
Repository: incubator-aurora
Updated Branches:
  refs/heads/master d9dd989b6 -> 089d2e6a0


Aurora-193: fix license plugin

Adds the license header plugin and sets the correct source sets.

Replaces patch in review: https://reviews.apache.org/r/17771/

Testing Done:
All tests passed locally with rm -rf .gradle && ./build-support/jenkins/build.sh

Bugs closed: AURORA-193

Reviewed at https://reviews.apache.org/r/18316/


Project: http://git-wip-us.apache.org/repos/asf/incubator-aurora/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-aurora/commit/089d2e6a
Tree: http://git-wip-us.apache.org/repos/asf/incubator-aurora/tree/089d2e6a
Diff: http://git-wip-us.apache.org/repos/asf/incubator-aurora/diff/089d2e6a

Branch: refs/heads/master
Commit: 089d2e6a065423bb77140e1114a3bb877a181d47
Parents: d9dd989
Author: Jake Farrell <jfarrell@apache.org>
Authored: Tue Feb 25 14:19:47 2014 -0500
Committer: jfarrell <jfarrell@apache.org>
Committed: Tue Feb 25 14:19:47 2014 -0500

----------------------------------------------------------------------
 build.gradle | 13 +++++++++++++
 1 file changed, 13 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-aurora/blob/089d2e6a/build.gradle
----------------------------------------------------------------------
diff --git a/build.gradle b/build.gradle
index f8f00e6..e5cd831 100644
--- a/build.gradle
+++ b/build.gradle
@@ -20,6 +20,7 @@ apply plugin: 'checkstyle'
 apply plugin: 'idea'
 apply plugin: 'jacoco'
 apply plugin: 'java'
+apply plugin: 'license'
 apply plugin: 'maven-publish'
 apply plugin: 'project-report'
 apply plugin: 'versions'
@@ -31,6 +32,7 @@ buildscript {
   dependencies {
     classpath 'com.github.ben-manes:gradle-versions-plugin:0.4'
     classpath 'com.github.goldin.plugins.gradle:about:0.3.1'
+    classpath 'nl.javadude.gradle.plugins:license-gradle-plugin:0.7.0'
   }
 }
 
@@ -310,6 +312,17 @@ run {
   ]
 }
 
+tasks.withType(nl.javadude.gradle.plugins.license.License).each { licenseTask ->
+  licenseTask.setSource files("$projectDir/src/main/java", "$projectDir/src/test/java")
+}
+
+license {
+  header rootProject.file('config/checkstyle/apache.header')
+  strictCheck true
+  skipExistingHeaders true
+  ext.year = Calendar.getInstance().get(Calendar.YEAR)
+}
+
 jacocoTestReport {
   group = "Reporting"
   description = "Generate Jacoco coverage reports after running tests."


Mime
View raw message