Skip to content

Commit

Permalink
Make processResources depend on compileLanguage
Browse files Browse the repository at this point in the history
To support Gradle 8
  • Loading branch information
Virtlink committed Sep 4, 2023
1 parent 98f49ef commit 2001f80
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -370,8 +370,10 @@ class LanguagePluginInstance(
}
}

// Make compileJava depend on our task, because we generate Java code.
// Make `compileJava` depend on our task, because we generate Java code.
project.tasks.getByName(JavaPlugin.COMPILE_JAVA_TASK_NAME).dependsOn(compileTask)
// Also make `processResources` depend on our task, because we generate resource files.
project.tasks.getByName(JavaPlugin.PROCESS_RESOURCES_TASK_NAME).dependsOn(compileTask)
}

private fun ResourcePath.tryAsLocal(name: String, func: (file: File) -> Unit) {
Expand Down

0 comments on commit 2001f80

Please sign in to comment.