add license plugin.

This commit is contained in:
Keith Woodlock
2013-02-13 14:53:02 +00:00
parent 3c6f5bb526
commit 63cddd9e23
+17 -2
View File
@@ -1,5 +1,3 @@
apply plugin: 'rebel'
buildscript { buildscript {
repositories { repositories {
mavenLocal() mavenLocal()
@@ -26,6 +24,18 @@ buildscript {
} }
} }
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'nl.javadude.gradle.plugins:license-gradle-plugin:0.5.0'
}
}
apply plugin: 'rebel'
apply plugin: 'license'
apply plugin: 'war' apply plugin: 'war'
apply plugin: 'eclipse' apply plugin: 'eclipse'
apply plugin: 'idea' apply plugin: 'idea'
@@ -148,6 +158,11 @@ dependencies {
} }
license {
header rootProject.file('../LICENSE.MD')
strictCheck true
}
[tomcatRun, tomcatRunWar, tomcatStop]*.with { [tomcatRun, tomcatRunWar, tomcatStop]*.with {
configFile = file('src/test/resources/META-INF/context.xml') configFile = file('src/test/resources/META-INF/context.xml')
httpPort = 8080 httpPort = 8080