diff options
author | RJ Nowling <rnowling@gmail.com> | 2015-08-25 14:18:28 -0500 |
---|---|---|
committer | RJ Nowling <rnowling@gmail.com> | 2015-08-25 14:18:28 -0500 |
commit | caae595712381706a4ed4e938c393ede3b1311b2 (patch) | |
tree | 173e3648f491662d5dd088754d46f3a0345d3572 /bigtop-data-generators | |
parent | 502bd784abeda6087215a98ca6719213457c6193 (diff) |
BIGTOP-1990. Add gradle multi-project build files for bigtop-data-generators
Diffstat (limited to 'bigtop-data-generators')
-rw-r--r-- | bigtop-data-generators/README.md | 47 | ||||
-rw-r--r-- | bigtop-data-generators/bigpetstore-data-generator/build.gradle | 3 | ||||
-rw-r--r-- | bigtop-data-generators/bigtop-name-generator/build.gradle | 2 | ||||
-rw-r--r-- | bigtop-data-generators/settings.gradle | 16 |
4 files changed, 65 insertions, 3 deletions
diff --git a/bigtop-data-generators/README.md b/bigtop-data-generators/README.md new file mode 100644 index 00000000..4765662a --- /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. diff --git a/bigtop-data-generators/bigpetstore-data-generator/build.gradle b/bigtop-data-generators/bigpetstore-data-generator/build.gradle index 57f06927..0d2bead9 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.+' } diff --git a/bigtop-data-generators/bigtop-name-generator/build.gradle b/bigtop-data-generators/bigtop-name-generator/build.gradle index 08d9d345..0bff824f 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.+' } diff --git a/bigtop-data-generators/settings.gradle b/bigtop-data-generators/settings.gradle new file mode 100644 index 00000000..ad6c61d5 --- /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 |