Skip to content

Commit

Permalink
Merge pull request #12 from creditdatamw/feat/switch-to-datafaker
Browse files Browse the repository at this point in the history
feat: Switch to DataFaker a fork of Java-Faker
  • Loading branch information
zikani03 authored Mar 9, 2022
2 parents 4881fc3 + 250332a commit 401e7cb
Show file tree
Hide file tree
Showing 13 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ Create a file named `person.groovy` and place the following content:
locale("en-GB") // tells Java Faker to use the given tag for the Locale.
// You can also use a custom faker
// import com.github.javafaker.Faker
// import net.datafaker.Faker
// useFaker(new Faker(Locale.getLanguageTag("en-GB")))
generateFrom([
generateData([
"FirstName": { faker -> faker.name().firstName() },
"LastName": { faker -> faker.name().lastName() },
"Age": { faker -> faker.number().numberBetween(18, 70) },
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ repositories {
}

dependencies {
implementation "com.github.javafaker:javafaker:$javaFakerVersion"
implementation "net.datafaker:datafaker:$dataFakerVersion"
implementation "org.apache.poi:poi:$poiVersion"
implementation "org.apache.poi:poi-ooxml:$poiVersion"
implementation "com.opencsv:opencsv:$opencsvVersion"
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
projectVersion=0.6.0
groovyVersion=4.0.0
poiVersion=4.1.2
javaFakerVersion=1.0.2
dataFakerVersion=1.2.0
opencsvVersion=5.2
gsonVersion=2.8.6
sparkJavaVersion=2.9.3
Expand Down
2 changes: 1 addition & 1 deletion src/main/groovy/zefaker/CsvGenerator.groovy
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package zefaker

import com.github.javafaker.Faker
import net.datafaker.Faker
import com.opencsv.CSVWriter

import java.util.concurrent.atomic.AtomicLong
Expand Down
2 changes: 1 addition & 1 deletion src/main/groovy/zefaker/ExcelFileGenerator.groovy
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package zefaker

import com.github.javafaker.Faker
import net.datafaker.Faker
import org.apache.poi.ss.usermodel.Row
import org.apache.poi.ss.util.WorkbookUtil
import org.apache.poi.xssf.streaming.SXSSFWorkbook
Expand Down
2 changes: 1 addition & 1 deletion src/main/groovy/zefaker/Generator.groovy
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package zefaker

import com.github.javafaker.Faker
import net.datafaker.Faker

/**
* Generator interface for supported generator classes.
Expand Down
2 changes: 1 addition & 1 deletion src/main/groovy/zefaker/JsonFileGenerator.groovy
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package zefaker

import com.github.javafaker.Faker
import net.datafaker.Faker
import com.google.gson.Gson
import com.google.gson.JsonArray
import com.google.gson.JsonElement
Expand Down
2 changes: 1 addition & 1 deletion src/main/groovy/zefaker/JsonLinesFileGenerator.groovy
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package zefaker

import com.github.javafaker.Faker
import net.datafaker.Faker
import com.google.gson.Gson
import com.google.gson.JsonArray
import com.google.gson.JsonElement
Expand Down
2 changes: 1 addition & 1 deletion src/main/groovy/zefaker/Main.groovy
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package zefaker

import com.github.javafaker.Faker
import net.datafaker.Faker
import groovy.cli.picocli.CliBuilder
import org.codehaus.groovy.control.CompilerConfiguration

Expand Down
2 changes: 1 addition & 1 deletion src/main/groovy/zefaker/SqlCopyFileGenerator.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package zefaker

import java.util.concurrent.atomic.AtomicLong

import com.github.javafaker.Faker
import net.datafaker.Faker

import java.util.stream.Collectors

Expand Down
2 changes: 1 addition & 1 deletion src/main/groovy/zefaker/SqlFileGenerator.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package zefaker

import java.util.concurrent.atomic.AtomicLong

import com.github.javafaker.Faker
import net.datafaker.Faker

import java.util.stream.Collectors

Expand Down
2 changes: 1 addition & 1 deletion src/main/groovy/zefaker/ZeFaker.groovy
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package zefaker

import com.github.javafaker.Faker
import net.datafaker.Faker

import java.nio.file.Files
import java.nio.file.Paths
Expand Down
2 changes: 1 addition & 1 deletion src/main/groovy/zefaker/ZefakerWebserver.groovy
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package zefaker

import com.github.javafaker.Faker
import net.datafaker.Faker
import com.google.gson.Gson
import com.google.gson.JsonArray
import com.google.gson.JsonElement
Expand Down

0 comments on commit 401e7cb

Please sign in to comment.