Skip to content

Commit

Permalink
Fix package reference in groovy test
Browse files Browse the repository at this point in the history
  • Loading branch information
Ranbir Kumar committed Jun 28, 2024
1 parent 023e52f commit 8faa993
Showing 1 changed file with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ import static org.gradle.testkit.runner.TaskOutcome.SUCCESS
class CustomConversionFunctionalSpec extends FunctionalSpec {
private void copyCustomConversion(String destDir) {
copyFile("src/test/java", destDir,
"com/github/davidmc24/gradle/plugin/avro/test/custom/TimeZoneConversion.java")
"org/apache/avro/test/custom/TimeZoneConversion.java")
copyFile("src/test/java", destDir,
"com/github/davidmc24/gradle/plugin/avro/test/custom/TimeZoneLogicalType.java")
"org/apache/avro/test/custom/TimeZoneLogicalType.java")
copyFile("src/test/java", destDir,
"com/github/davidmc24/gradle/plugin/avro/test/custom/TimeZoneLogicalTypeFactory.java")
"org/apache/avro/test/custom/TimeZoneLogicalTypeFactory.java")
}

def "can use a custom conversion when generating java from a schema with stringType = \"String\""() {
Expand All @@ -41,8 +41,8 @@ class CustomConversionFunctionalSpec extends FunctionalSpec {
| classpath files(${readPluginClasspath()})
| }
|}
|apply plugin: "com.github.davidmc24.gradle.plugin.avro"
|import com.github.davidmc24.gradle.plugin.avro.test.custom.*
|apply plugin: "org.apache.gradle.plugin.avro"
|import org.apache.avro.test.custom.*
|avro {
| stringType = "String"
| logicalTypeFactory("timezone", TimeZoneLogicalTypeFactory)
Expand Down Expand Up @@ -87,8 +87,8 @@ class CustomConversionFunctionalSpec extends FunctionalSpec {
| classpath files(${readPluginClasspath()})
| }
|}
|apply plugin: "com.github.davidmc24.gradle.plugin.avro"
|import com.github.davidmc24.gradle.plugin.avro.test.custom.*
|apply plugin: "org.apache.gradle.plugin.avro"
|import org.apache.avro.test.custom.*
|avro {
| stringType = "CharSequence"
| logicalTypeFactory("timezone", TimeZoneLogicalTypeFactory)
Expand Down Expand Up @@ -133,8 +133,8 @@ class CustomConversionFunctionalSpec extends FunctionalSpec {
| classpath files(${readPluginClasspath()})
| }
|}
|apply plugin: "com.github.davidmc24.gradle.plugin.avro"
|import com.github.davidmc24.gradle.plugin.avro.test.custom.*
|apply plugin: "org.apache.gradle.plugin.avro"
|import org.apache.avro.test.custom.*
|avro {
| stringType = "CharSequence"
| logicalTypeFactory("timezone", TimeZoneLogicalTypeFactory)
Expand Down Expand Up @@ -181,8 +181,8 @@ class CustomConversionFunctionalSpec extends FunctionalSpec {
|avro {
| stringType = "CharSequence"
| conversionsAndTypeFactoriesClasspath.from(configurations.customConversions)
| logicalTypeFactory("timezone", "com.github.davidmc24.gradle.plugin.avro.test.custom.TimeZoneLogicalTypeFactory")
| customConversion("com.github.davidmc24.gradle.plugin.avro.test.custom.TimeZoneConversion")
| logicalTypeFactory("timezone", "org.apache.avro.test.custom.TimeZoneLogicalTypeFactory")
| customConversion("org.apache.avro.test.custom.TimeZoneConversion")
|}
|""".stripMargin()
addDefaultRepository()
Expand Down Expand Up @@ -220,7 +220,7 @@ class CustomConversionFunctionalSpec extends FunctionalSpec {
copyResource("customConversion.avpr", avroDir)
applyAvroPlugin()
buildFile << """
|tasks.register("generateSchema", com.github.davidmc24.gradle.plugin.avro.GenerateAvroSchemaTask) {
|tasks.register("generateSchema", org.apache.avro.GenerateAvroSchemaTask) {
| source file("src/main/avro")
| include("**/*.avpr")
| outputDir = file("build/generated-main-avro-avsc")
Expand Down

0 comments on commit 8faa993

Please sign in to comment.