raphaelauv commented on PR #3305:
URL: https://github.com/apache/avro/pull/3305#issuecomment-3686086946
I made a test , it works , I had to change few things
previously
```gradle
plugins {
id "com.github.davidmc24.gradle.plugin.avro" version "1.9.1"
}
apply plugin: "com.github.davidmc24.gradle.plugin.avro"
dependencies {
implementation group: 'org.apache.avro', name: 'avro', version: '1.11.4'
}
tasks.register('generateAvro',
com.github.davidmc24.gradle.plugin.avro.GenerateAvroJavaTask) {
stringType = 'String'
source("src/test/resources/avro")
outputDir =
file("${layout.buildDirectory.asFile.get()}/generated-main-avro-java/")
}
compileJava.source(generateAvro.outputs)
```
and now
```gradle
plugins {
id "eu.eventloopsoftware.avro-gradle-plugin" version "0.0.2"
}
repositories {
gradlePluginPortal()
}
apply plugin: "eu.eventloopsoftware.avro-gradle-plugin"
dependencies {
implementation group: 'org.apache.avro', name: 'avro', version: '1.12.1'
}
avro {
sourceDirectory = "src/test/resources/avro"
stringType = 'String'
}
compileJava.source(avroGenerateJavaClasses)
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]