geode-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aba...@apache.org
Subject [1/2] incubator-geode git commit: GEODE-608: Refactor rat configuration into a separate script
Date Wed, 09 Dec 2015 22:31:21 GMT
Repository: incubator-geode
Updated Branches:
  refs/heads/feature/GEODE-608 2def1128e -> a0716d0a1


GEODE-608: Refactor rat configuration into a separate script

Split out the rat configuration and update the excludes list.


Project: http://git-wip-us.apache.org/repos/asf/incubator-geode/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-geode/commit/38b87c82
Tree: http://git-wip-us.apache.org/repos/asf/incubator-geode/tree/38b87c82
Diff: http://git-wip-us.apache.org/repos/asf/incubator-geode/diff/38b87c82

Branch: refs/heads/feature/GEODE-608
Commit: 38b87c82c1ec9b8aee7d0529008182043cffe248
Parents: 2def112
Author: Anthony Baker <abaker@pivotal.io>
Authored: Sat Dec 5 10:47:43 2015 -0800
Committer: Anthony Baker <abaker@pivotal.io>
Committed: Sat Dec 5 12:32:22 2015 -0800

----------------------------------------------------------------------
 build.gradle      | 112 +-----------------------------------------
 gradle/rat.gradle | 129 +++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 130 insertions(+), 111 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/38b87c82/build.gradle
----------------------------------------------------------------------
diff --git a/build.gradle b/build.gradle
index 0048c27..acbdbd0 100755
--- a/build.gradle
+++ b/build.gradle
@@ -10,118 +10,8 @@ buildscript {
   }
 }
 
+apply from: 'gradle/rat.gradle'
 apply plugin: 'wrapper'
-apply plugin: "org.nosphere.apache.rat"
-
-rat {
-  excludes = [
-    // git
-    '.git/**',
-    '**/.gitignore',
-    
-    // gradle
-    '**/.gradle/**',
-    'gradlew',
-    'gradlew.bat',
-    'gradle/wrapper/gradle-wrapper.properties',
-    '**/build/**',
-    
-    // IDE
-    'etc/eclipseFormatterProfile.xml',
-    'etc/intellijIdeaCodeStyle.xml',
-    '**/.project',
-    '**/.classpath',
-    '**/.settings/**',
-    '**/build-eclipse/**',
-    '*.iml',
-    '.idea/**',
-
-    // text files
-    '**/*.fig',
-    '**/*.txt',
-    '**/*.md',
-    '**/*.json',
-    '**/*.tx0',
-    '**/*.txo',
-    
-    // binary files
-    '**/*.cer',
-    '**/*.gfs',
-    '**/keystore',
-    '**/*.ser',
-    '**/*.xls',
-    
-    // other text files
-    'gemfire-spark-connector/project/plugins.sbt',
-    'gemfire-spark-connector/project/build.properties',
-    
-    // ANTLR generated files
-    'gemfire-core/src/main/java/com/gemstone/gemfire/cache/query/internal/parse/OQLLexer.java',
-    'gemfire-core/src/main/java/com/gemstone/gemfire/cache/query/internal/parse/OQLLexerTokenTypes.java',
-    'gemfire-core/src/main/java/com/gemstone/gemfire/cache/query/internal/parse/OQLParser.java',
-    'gemfire-core/src/main/java/com/gemstone/gemfire/cache/query/internal/parse/OQLLexerTokenTypes.txt',
-    
-    // Service META-INF
-    '**/META-INF/services/org.xml.sax.ext.EntityResolver2',
-    '**/META-INF/services/com.gemstone.gemfire.internal.cache.CacheService',
-    '**/META-INF/services/com.gemstone.gemfire.internal.cache.xmlcache.XmlParser',
-    '**/META-INF/services/org.springframework.shell.core.CommandMarker',
-
-    // --- Other Licenses ---
-    
-    // Copied from other ASF projects 
-    'gemfire-core/src/main/resources/com/gemstone/gemfire/admin/jmx/internal/doc-files/mbeans-descriptors.dtd',
-    'gemfire-core/src/main/resources/com/gemstone/gemfire/admin/jmx/mbeans-descriptors.xml',
-
-    // Public Domain http://meyerweb.com/eric/tools/css/reset/
-    'gemfire-web-api/src/main/webapp/docs/css/reset.css',
-
-    // JSON License - permissive, used for Good, not Evil
-    'gemfire-json/src/main/java/org/json/CDL.java',
-    'gemfire-json/src/main/java/org/json/Cookie.java',
-    'gemfire-json/src/main/java/org/json/CookieList.java',
-    'gemfire-json/src/main/java/org/json/CDL.java',
-    'gemfire-json/src/main/java/org/json/Cookie.java',
-    'gemfire-json/src/main/java/org/json/CookieList.java',
-    'gemfire-json/src/main/java/org/json/HTTP.java',
-    'gemfire-json/src/main/java/org/json/HTTPTokener.java',
-    'gemfire-json/src/main/java/org/json/JSONArray.java',
-    'gemfire-json/src/main/java/org/json/JSONException.java',
-    'gemfire-json/src/main/java/org/json/JSONML.java',
-    'gemfire-json/src/main/java/org/json/JSONObject.java',
-    'gemfire-json/src/main/java/org/json/JSONString.java',
-    'gemfire-json/src/main/java/org/json/JSONStringer.java',
-    'gemfire-json/src/main/java/org/json/JSONTokener.java',
-    'gemfire-json/src/main/java/org/json/JSONWriter.java',
-    'gemfire-json/src/main/java/org/json/XML.java',
-    'gemfire-json/src/main/java/org/json/XMLTokener.java',
-
-    // MIT License
-    'gemfire-web-api/src/main/webapp/docs/lib/backbone-min.js',
-    'gemfire-web-api/src/main/webapp/docs/lib/jquery-1.8.0.min.js',
-    'gemfire-web-api/src/main/webapp/docs/lib/jquery.ba-bbq.min.js',
-    'gemfire-web-api/src/main/webapp/docs/lib/jquery.slideto.min.js',
-    'gemfire-web-api/src/main/webapp/docs/lib/jquery.wiggle.min.js',
-    'gemfire-web-api/src/main/webapp/docs/lib/underscore-min.js',
-    'gemfire-site/src/jbake/**',
-
-    // MIT or ISC
-    'gemfire-web-api/src/main/webapp/docs/lib/shred.bundle.js',
-    'gemfire-web-api/src/main/webapp/docs/lib/shred/content.js',
-
-    // BSD License
-    'gemfire-web-api/src/main/webapp/docs/lib/highlight.7.3.pack.js',
-
-    // Apache License
-    'gemfire-web-api/src/main/webapp/docs/o2c.html',
-    'gemfire-web-api/src/main/webapp/docs/index.html',
-    'gemfire-web-api/src/main/webapp/docs/lib/swagger-oauth.js',
-    'gemfire-web-api/src/main/webapp/docs/lib/swagger.js',
-    'gemfire-web-api/src/main/webapp/docs/css/screen.css',
-    'gemfire-web-api/src/main/webapp/docs/swagger-ui.js',
-    'gemfire-web-api/src/main/webapp/docs/swagger-ui.min.js'
-  ]
-}
 
 // Load all properties in dependency-version.properties as project properties, so all projects
can read them
 Properties dependencyVersions = new Properties()

http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/38b87c82/gradle/rat.gradle
----------------------------------------------------------------------
diff --git a/gradle/rat.gradle b/gradle/rat.gradle
new file mode 100644
index 0000000..96d1944
--- /dev/null
+++ b/gradle/rat.gradle
@@ -0,0 +1,129 @@
+/*
+ * 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
+ *
+ *      http://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"
+
+rat {
+  excludes = [
+    // git
+    '.git/**',
+    '**/.gitignore',
+    
+    // gradle
+    '**/.gradle/**',
+    'gradlew',
+    'gradlew.bat',
+    'gradle/wrapper/gradle-wrapper.properties',
+    '**/build/**',
+    
+    // IDE
+    'etc/eclipseFormatterProfile.xml',
+    'etc/intellijIdeaCodeStyle.xml',
+    '**/.project',
+    '**/.classpath',
+    '**/.settings/**',
+    '**/build-eclipse/**',
+    '*.iml',
+    '.idea/**',
+
+    // text files
+    '**/*.fig',
+    '**/*.txt',
+    '**/*.md',
+    '**/*.json',
+    '**/*.tx0',
+    '**/*.txo',
+    
+    // binary files
+    '**/*.cer',
+    '**/*.gfs',
+    '**/keystore',
+    '**/*.ser',
+    '**/*.xls',
+    
+    // other text files
+    'gemfire-spark-connector/project/plugins.sbt',
+    'gemfire-spark-connector/project/build.properties',
+    '**/log4j2*.xml',
+ 
+    // ANTLR generated files
+    'gemfire-core/src/main/java/com/gemstone/gemfire/cache/query/internal/parse/OQLLexer.java',
+    'gemfire-core/src/main/java/com/gemstone/gemfire/cache/query/internal/parse/OQLLexerTokenTypes.java',
+    'gemfire-core/src/main/java/com/gemstone/gemfire/cache/query/internal/parse/OQLParser.java',
+    'gemfire-core/src/main/java/com/gemstone/gemfire/cache/query/internal/parse/OQLLexerTokenTypes.txt',
+    
+    // Service META-INF
+    '**/META-INF/services/org.xml.sax.ext.EntityResolver2',
+    '**/META-INF/services/com.gemstone.gemfire.internal.cache.CacheService',
+    '**/META-INF/services/com.gemstone.gemfire.internal.cache.xmlcache.XmlParser',
+    '**/META-INF/services/org.springframework.shell.core.CommandMarker',
+
+    // --- Other Licenses ---
+    
+    // Copied from other ASF projects 
+    'gemfire-core/src/main/resources/com/gemstone/gemfire/admin/jmx/internal/doc-files/mbeans-descriptors.dtd',
+    'gemfire-core/src/main/resources/com/gemstone/gemfire/admin/jmx/mbeans-descriptors.xml',
+
+    // Public Domain http://meyerweb.com/eric/tools/css/reset/
+    'gemfire-web-api/src/main/webapp/docs/css/reset.css',
+
+    // JSON License - permissive, used for Good, not Evil
+    'gemfire-json/src/main/java/org/json/CDL.java',
+    'gemfire-json/src/main/java/org/json/Cookie.java',
+    'gemfire-json/src/main/java/org/json/CookieList.java',
+    'gemfire-json/src/main/java/org/json/CDL.java',
+    'gemfire-json/src/main/java/org/json/Cookie.java',
+    'gemfire-json/src/main/java/org/json/CookieList.java',
+    'gemfire-json/src/main/java/org/json/HTTP.java',
+    'gemfire-json/src/main/java/org/json/HTTPTokener.java',
+    'gemfire-json/src/main/java/org/json/JSONArray.java',
+    'gemfire-json/src/main/java/org/json/JSONException.java',
+    'gemfire-json/src/main/java/org/json/JSONML.java',
+    'gemfire-json/src/main/java/org/json/JSONObject.java',
+    'gemfire-json/src/main/java/org/json/JSONString.java',
+    'gemfire-json/src/main/java/org/json/JSONStringer.java',
+    'gemfire-json/src/main/java/org/json/JSONTokener.java',
+    'gemfire-json/src/main/java/org/json/JSONWriter.java',
+    'gemfire-json/src/main/java/org/json/XML.java',
+    'gemfire-json/src/main/java/org/json/XMLTokener.java',
+
+    // MIT License
+    'gemfire-web-api/src/main/webapp/docs/lib/backbone-min.js',
+    'gemfire-web-api/src/main/webapp/docs/lib/jquery-1.8.0.min.js',
+    'gemfire-web-api/src/main/webapp/docs/lib/jquery.ba-bbq.min.js',
+    'gemfire-web-api/src/main/webapp/docs/lib/jquery.slideto.min.js',
+    'gemfire-web-api/src/main/webapp/docs/lib/jquery.wiggle.min.js',
+    'gemfire-web-api/src/main/webapp/docs/lib/underscore-min.js',
+    'gemfire-site/src/jbake/**',
+
+    // MIT or ISC
+    'gemfire-web-api/src/main/webapp/docs/lib/shred.bundle.js',
+    'gemfire-web-api/src/main/webapp/docs/lib/shred/content.js',
+
+    // BSD License
+    'gemfire-web-api/src/main/webapp/docs/lib/highlight.7.3.pack.js',
+
+    // Apache License
+    'gemfire-web-api/src/main/webapp/docs/o2c.html',
+    'gemfire-web-api/src/main/webapp/docs/index.html',
+    'gemfire-web-api/src/main/webapp/docs/lib/swagger-oauth.js',
+    'gemfire-web-api/src/main/webapp/docs/lib/swagger.js',
+    'gemfire-web-api/src/main/webapp/docs/css/screen.css',
+    'gemfire-web-api/src/main/webapp/docs/swagger-ui.js',
+    'gemfire-web-api/src/main/webapp/docs/swagger-ui.min.js'
+  ]
+}
+


Mime
View raw message