Sineaggi commented on code in PR #3614:
URL: https://github.com/apache/avro/pull/3614#discussion_r2662376653
##########
lang/java/gradle-plugin/src/main/kotlin/eu/eventloopsoftware/avro/gradle/plugin/GradlePlugin.kt:
##########
@@ -0,0 +1,87 @@
+package eu.eventloopsoftware.avro.gradle.plugin
+
+import eu.eventloopsoftware.avro.gradle.plugin.extension.GradlePluginExtension
+import eu.eventloopsoftware.avro.gradle.plugin.tasks.CompileSchemaTask
+import org.gradle.api.Plugin
+import org.gradle.api.Project
+import org.gradle.api.plugins.JavaPluginExtension
+import org.gradle.internal.cc.base.logger
+import kotlin.collections.toSet
+
+abstract class GradlePlugin : Plugin<Project> {
+ override fun apply(project: Project) {
+ logger.info("Running Avro Gradle plugin for project: ${project.name}")
+
+ val extension: GradlePluginExtension =
project.extensions.create("avro", GradlePluginExtension::class.java)
+
+ // Needed for Android support
Review Comment:
This comment is misleading/wrong. This plugin is required so that we can get
the sourceSets from the java extension below.
--
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]