Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 45 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ plugins {
id 'com.google.protobuf'
id 'java'
id 'checkstyle'
id 'org.nosphere.apache.rat'
}

subprojects {
Expand All @@ -43,6 +44,7 @@ allprojects {
apply plugin: 'java'
apply plugin: 'maven-publish'
apply plugin: 'signing'
apply plugin: 'org.nosphere.apache.rat'
apply plugin: "checkstyle"
checkstyle {
toolVersion "${checkStyleVersion}"
Expand All @@ -61,6 +63,49 @@ allprojects {
from sourceSets.test.output
}

// TODO- Seperate rat plugins and other plugins configuration in seperate files
rat {
excludes = [
'**/.*/**',
'**/*.ipr',
'**/out/**',
'**/generated/**',
'**/build/**',
'**/.idea/**',
'.git/**/*',
'.github/**/*',
'**/.gitignore',
'**/.svn/**/*',
'**/target/**/*',
'**/README.md',
'**/README.rst',
'**/apidocs/*',
'**/src/main/resources/deps/**',
'**/META-INF/**',
'**/.classpath',
'**/.project',
'**/.checkstyle',
'**/.settings/*',
'**/*.iml',
'**/*.iws',
'**/*.ipr',
'site/**',
'site2/**',
'**/*.log',
'data/**',
'dev/.vagrant/**',
'**/proto/**.py',
'**/keyStoreClientPassword.txt',
'**/keyStoreServerPassword.txt',
'**/proc_cpuinfo.txt',
'**/__pycache__/**',
'**/bookkeeper.egg-info/**',
'**/apache_bookkeeper_client.egg-info/**',
'**/pip-selfcheck.json',
'**/test_conf_2.conf'
]
}

configurations {
testArtifacts.extendsFrom testRuntime
}
Expand Down
1 change: 1 addition & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
#

protobufPluginVersion=0.8.15
apcheRatPluginVersion=0.7.0
shadowPluginVersion=6.1.0
licenseGradlePluginVersion=0.15.0
checkStyleVersion=6.19
1 change: 1 addition & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
pluginManagement {
plugins {
id "com.google.protobuf" version "${protobufPluginVersion}"
id "org.nosphere.apache.rat" version "${apcheRatPluginVersion}"
id "com.github.johnrengelman.shadow" version "${shadowPluginVersion}"
id "com.github.hierynomus.license" version "${licenseGradlePluginVersion}"
}
Expand Down