bigtop-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rnowl...@apache.org
Subject bigtop git commit: BIGTOP-1990. Add gradle multi-project build files for bigtop-data-generators
Date Tue, 25 Aug 2015 19:18:38 GMT
Repository: bigtop
Updated Branches:
  refs/heads/master 502bd784a -> caae59571


BIGTOP-1990. Add gradle multi-project build files for bigtop-data-generators


Project: http://git-wip-us.apache.org/repos/asf/bigtop/repo
Commit: http://git-wip-us.apache.org/repos/asf/bigtop/commit/caae5957
Tree: http://git-wip-us.apache.org/repos/asf/bigtop/tree/caae5957
Diff: http://git-wip-us.apache.org/repos/asf/bigtop/diff/caae5957

Branch: refs/heads/master
Commit: caae595712381706a4ed4e938c393ede3b1311b2
Parents: 502bd78
Author: RJ Nowling <rnowling@gmail.com>
Authored: Tue Aug 25 14:18:28 2015 -0500
Committer: RJ Nowling <rnowling@gmail.com>
Committed: Tue Aug 25 14:18:28 2015 -0500

----------------------------------------------------------------------
 bigtop-data-generators/README.md                | 47 ++++++++++++++++++++
 .../bigpetstore-data-generator/build.gradle     |  3 +-
 .../bigtop-name-generator/build.gradle          |  2 +-
 bigtop-data-generators/settings.gradle          | 16 +++++++
 4 files changed, 65 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/bigtop/blob/caae5957/bigtop-data-generators/README.md
----------------------------------------------------------------------
diff --git a/bigtop-data-generators/README.md b/bigtop-data-generators/README.md
new file mode 100644
index 0000000..4765662
--- /dev/null
+++ b/bigtop-data-generators/README.md
@@ -0,0 +1,47 @@
+<!--
+  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.
+-->
+BigTop Data Generators
+======================
+
+A collection of synthetic data generators and supporting libraries
+for building blueprints, smoke testing, and timing operations.
+
+The following data generators are included so far:
+
+* BigPetStore -- generates customers, stores, products, and transactions for a fictional
chain of pet stores
+* BigTop Name Generator -- generates names by sampling from U.S. Census data
+
+We have the following libraries:
+
+* BigTop Samplers -- collection of samplers, PDFs, and weight function interfaces and implementations
+
+Building
+--------
+To simplify dependency management, Gradle's multi-project support is used.  Each project
+defines its dependencies in terms of other projects and a holistic `settings.gradle` file
+is provided to make building easy.  Just run the following from the `bigtop-data-generators`
+directory:
+
+    $ gradle build
+
+The resulting jar files will be located under `build/libs` directory of each project.
+
+Jar files can be installed to a local Maven cache to simplify integration by external projects:
+
+    $ gradle install
+
+You can then define the dependencies via Maven.

http://git-wip-us.apache.org/repos/asf/bigtop/blob/caae5957/bigtop-data-generators/bigpetstore-data-generator/build.gradle
----------------------------------------------------------------------
diff --git a/bigtop-data-generators/bigpetstore-data-generator/build.gradle b/bigtop-data-generators/bigpetstore-data-generator/build.gradle
index 57f0692..0d2bead 100644
--- a/bigtop-data-generators/bigpetstore-data-generator/build.gradle
+++ b/bigtop-data-generators/bigpetstore-data-generator/build.gradle
@@ -59,8 +59,7 @@ dependencies {
     compile 'com.google.guava:guava:18.0'
     compile 'com.google.code.gson:gson:2.3'
     compile 'org.apache.commons:commons-lang3:3.4'
-    compile 'org.apache.bigtop:bigtop-samplers:1.1.0-SNAPSHOT'
-    compile 'org.apache.bigtop:bigtop-name-generator:1.1.0-SNAPSHOT'
+    compile project(":bigtop-samplers"), project(":bigtop-name-generator")
 
     testCompile 'junit:junit:4.+'
 }

http://git-wip-us.apache.org/repos/asf/bigtop/blob/caae5957/bigtop-data-generators/bigtop-name-generator/build.gradle
----------------------------------------------------------------------
diff --git a/bigtop-data-generators/bigtop-name-generator/build.gradle b/bigtop-data-generators/bigtop-name-generator/build.gradle
index 08d9d34..0bff824 100644
--- a/bigtop-data-generators/bigtop-name-generator/build.gradle
+++ b/bigtop-data-generators/bigtop-name-generator/build.gradle
@@ -57,7 +57,7 @@ test {
 dependencies {
     compile 'com.google.guava:guava:18.0'
     compile 'org.apache.commons:commons-lang3:3.4'
-    compile 'org.apache.bigtop:bigtop-samplers:1.1.0-SNAPSHOT'
+    compile project(":bigtop-samplers")
 
     testCompile 'junit:junit:4.+'
 }

http://git-wip-us.apache.org/repos/asf/bigtop/blob/caae5957/bigtop-data-generators/settings.gradle
----------------------------------------------------------------------
diff --git a/bigtop-data-generators/settings.gradle b/bigtop-data-generators/settings.gradle
new file mode 100644
index 0000000..ad6c61d
--- /dev/null
+++ b/bigtop-data-generators/settings.gradle
@@ -0,0 +1,16 @@
+/**
+ * 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.
+ */
+include ":bigpetstore-data-generator", ":bigtop-name-generator", ":bigtop-samplers"
\ No newline at end of file


Mime
View raw message