Skip to content

Commit

Permalink
(chore) Use template in gradle-license-plugin.
Browse files Browse the repository at this point in the history
  • Loading branch information
brcolow committed Sep 1, 2017
1 parent 6973158 commit a245866
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
11 changes: 8 additions & 3 deletions gradle/check-license.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,16 @@ license {
header = rootProject.file("gradle/check/license-header.txt")
strictCheck = true
ignoreFailures = false
license {
ext.year = Calendar.getInstance().get(Calendar.YEAR)
}
// By default license-gradle-plugin uses JAVADOC_STYLE for the comment style
// of the license header which starts with two asterisks "/**" but we use
// only one asterisk "/*" so we must tell license-gradle-plugin which to use.
mapping {
java = "SLASHSTAR_STYLE"
groovy = "SLASHSTAR_STYLE"
}
include "**/*.java"
include "**/*.groovy"
include "**/*.gradle"
// TODO: Check **/*.gradle files too (doesn't work currently)
includes(["**/*.java", "**/*.groovy"])
}
2 changes: 1 addition & 1 deletion gradle/check/license-header.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Copyright 2013-2014 SmartBear Software
Copyright 2014-2017 The TestFX Contributors
Copyright 2014-${year} The TestFX Contributors

Licensed under the EUPL, Version 1.1 or - as soon they will be approved by the
European Commission - subsequent versions of the EUPL (the "Licence"); You may
Expand Down

0 comments on commit a245866

Please sign in to comment.