This is an automated email from the ASF dual-hosted git repository.

jamesfredley pushed a commit to branch licence-updates
in repository https://gitbox.apache.org/repos/asf/grails-redis.git

commit 96c4ec80078043e20e984c94aaa6e9a152db23ab
Author: James Fredley <[email protected]>
AuthorDate: Mon Jun 9 14:22:40 2025 -0400

    Initial Apache RAT config
---
 build.gradle                  |  8 +++++++-
 buildSrc/build.gradle         |  1 +
 gradle.properties             |  1 +
 gradle/rat-root-config.gradle | 45 +++++++++++++++++++++++++++++++++++++++++++
 4 files changed, 54 insertions(+), 1 deletion(-)

diff --git a/build.gradle b/build.gradle
index 04ddaf4..9415b1c 100644
--- a/build.gradle
+++ b/build.gradle
@@ -4,16 +4,22 @@
 version = projectVersion
 group = 'this.will.be.overridden'
 
-subprojects {
 
+allprojects {
     repositories {
         mavenCentral()
         maven { url = 'https://repo.grails.org/grails/core' }
         maven { url = 
'https://repository.apache.org/content/repositories/snapshots' }
     }
+}
 
+subprojects {
     if (name == 'grails-redis') {
         // This has to be applied here
         apply plugin: 'org.apache.grails.gradle.grails-publish'
     }
+}
+
+apply {
+    from 
rootProject.layout.projectDirectory.file('gradle/rat-root-config.gradle')
 }
\ No newline at end of file
diff --git a/buildSrc/build.gradle b/buildSrc/build.gradle
index 0cbed14..33b9a7f 100644
--- a/buildSrc/build.gradle
+++ b/buildSrc/build.gradle
@@ -17,4 +17,5 @@ dependencies {
     implementation 
platform("org.apache.grails:grails-bom:${versions.get('grailsVersion')}")
     implementation 'org.apache.grails:grails-gradle-plugins'
     implementation 'com.bertramlabs.plugins:asset-pipeline-gradle'
+    implementation 
"org.nosphere.apache.rat:org.nosphere.apache.rat.gradle.plugin:${versions.get('ratVersion')}"
 }
\ No newline at end of file
diff --git a/gradle.properties b/gradle.properties
index a360b3a..9f07a68 100644
--- a/gradle.properties
+++ b/gradle.properties
@@ -2,6 +2,7 @@ projectVersion=5.0.0-SNAPSHOT
 
 grailsVersion=7.0.0-SNAPSHOT
 javaVersion=17
+ratVersion=0.8.1
 
 # This prevents the Grails Gradle Plugin from unnecessarily excluding 
slf4j-simple in the generated POMs
 # https://github.com/apache/grails-gradle-plugin/issues/222
diff --git a/gradle/rat-root-config.gradle b/gradle/rat-root-config.gradle
new file mode 100644
index 0000000..99be184
--- /dev/null
+++ b/gradle/rat-root-config.gradle
@@ -0,0 +1,45 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one or more
+ *  contributor license agreements.  See the NOTICE file distributed with
+ *  this work for additional information regarding copyright ownership.
+ *  The ASF licenses this file to You under the Apache License, Version 2.0
+ *  (the "License"); you may not use this file except in compliance with
+ *  the License.  You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+
+apply plugin: 'org.nosphere.apache.rat'
+
+tasks.named('rat') {
+    excludes = [
+            '.asf.yaml', // ASF metadata for github integration excluded from 
src zip
+            'CODE_OF_CONDUCT.md',
+            'LICENSE',
+            'NOTICE',
+            'BUILD_DATE', // build artifact for storing the build date / 
verifying
+            'CHECKSUMS', // build artifact for storing checksums for easy 
verification
+            'PUBLISHED_ARTIFACTS', // build artifact for storing published 
artifacts coordinates & paths
+            'licenses/**', // licenses directory excluded
+            '**/build/**', // Gradle generated build directories
+            '**/.gitattributes', // git configuration isn't code
+            '**/.gradle/**', '**/wrapper/**', 'gradlew*',  // gradle wrapper 
files excluded from src zip
+            '**/*.html', // html files are only in test
+            '**/resources/*', // exclude test artifacts
+            'out/**', '*.ipr', '**/*.iml', '*.iws', '.idea/**', // Intellij 
generated files
+            'src/*', // exclude build artifacts
+            '**/.sdkmanrc', // tool selection files aren't code
+            '**/.gitignore', // git configuration isn't code
+            '**/.gitkeep', // git configuration isn't code
+            'etc/bin/results/**', // exclude build directories
+            '**/*.png', '**/*.svg', '**/*.ico', '**/*.eps', '**/*.icns', 
'**/*.jpg', '**/*.jpeg', '**/*.gif', // Image files
+    ]
+    // never cache license audits
+    it.outputs.upToDateWhen { false }
+}
\ No newline at end of file

Reply via email to