File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
graphql-dgs-codegen-gradle/src/main/kotlin/com/netflix/graphql/dgs/codegen/gradle Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -20,9 +20,11 @@ package com.netflix.graphql.dgs.codegen.gradle
20
20
21
21
import org.gradle.api.Plugin
22
22
import org.gradle.api.Project
23
+ import org.gradle.api.plugins.JavaPlugin
23
24
import org.gradle.api.plugins.JavaPluginConvention
24
25
import org.gradle.api.tasks.SourceSet
25
26
27
+
26
28
@ExperimentalStdlibApi
27
29
class CodegenPlugin : Plugin <Project > {
28
30
override fun apply (project : Project ) {
@@ -35,6 +37,8 @@ class CodegenPlugin : Plugin<Project> {
35
37
it.dependsOn(taskProvider.get())
36
38
}
37
39
40
+ project.plugins.apply (JavaPlugin ::class .java)
41
+
38
42
val javaConvention = project.convention.getPlugin(JavaPluginConvention ::class .java)
39
43
val sourceSets = javaConvention.sourceSets
40
44
val mainSourceSet = sourceSets.getByName(SourceSet .MAIN_SOURCE_SET_NAME )
You can’t perform that action at this time.
0 commit comments