File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
buildSrc/src/main/java/com/google/firebase/gradle/plugins Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ import org.gradle.api.Project
2121import org.gradle.api.provider.Provider
2222import org.gradle.api.tasks.Copy
2323import org.gradle.api.tasks.TaskProvider
24+ import org.gradle.kotlin.dsl.apply
2425import org.gradle.kotlin.dsl.register
2526
2627fun Copy.fromDirectory (directory : Provider <File >) =
@@ -115,3 +116,13 @@ fun getDocStubs(project: Project, srcDirs: Set<File>) =
115116 project.tasks.register<GenerateStubsTask >(" docStubs" ) {
116117 sources.value(project.provider { srcDirs })
117118 }
119+
120+ /* *
121+ * Syntax sugar for:
122+ *
123+ * ```kotlin
124+ * pluginManager.apply(T::class)
125+ * ```
126+ */
127+ inline fun <reified T : Any > org.gradle.api.plugins.PluginManager .`apply` (): Unit =
128+ `apply`(T ::class )
You can’t perform that action at this time.
0 commit comments