Skip to content

Commit

Permalink
Enabled automated license header checks (#36)
Browse files Browse the repository at this point in the history
1. Re-enabled the 'licenseHeaders' check in the build.gradle file.
2. Added an IntelliJ copyright profile to auto-generate the SPDX license header.

Signed-off-by: Ketan Verma <ketan9495@gmail.com>
  • Loading branch information
ketanv3 committed Jul 1, 2021
1 parent d87509d commit 894c669
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.idea
.idea/*
!.idea/copyright
*.iml
.gradle
out
Expand Down
6 changes: 6 additions & 0 deletions .idea/copyright/SPDX_ALv2.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions .idea/copyright/profiles_settings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,7 @@ ext {
noticeFile = rootProject.file('NOTICE')
}

// TODO: enable
licenseHeaders.enabled = false
licenseHeaders.enabled = true
testingConventions.enabled = false
forbiddenApis.ignoreFailures = false

Expand Down
2 changes: 1 addition & 1 deletion sample-extension-plugin/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ dependencies {
compileOnly project(path: ":${rootProject.name}-spi", configuration: 'shadow')
}

licenseHeaders.enabled = false
licenseHeaders.enabled = true
validateNebulaPom.enabled = false
testingConventions.enabled = false
loggerUsageCheck.enabled = false
Expand Down

0 comments on commit 894c669

Please sign in to comment.