Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 26 for PluginAware (0.19 sec)

  1. subprojects/core-api/src/main/java/org/gradle/api/plugins/PluginAware.java

     * <p>
     * For more on writing and applying plugins, see {@link org.gradle.api.Plugin}.
     */
    @HasInternalProtocol
    public interface PluginAware {
    
        /**
         * The container of plugins that have been applied to this object.
         * <p>
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 06 22:26:55 UTC 2022
    - 4.2K bytes
    - Viewed (0)
  2. platforms/documentation/docs/src/docs/dsl/org.gradle.api.plugins.PluginAware.xml

    Laura Kassovic <******@****.***> 1701107622 -0800
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 653 bytes
    - Viewed (0)
  3. platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/PluginAwareExtensions.kt

    import org.gradle.api.Project
    import org.gradle.api.plugins.PluginAware
    
    
    /**
     * Applies the given plugin or script.
     *
     * @param from a script to apply, evaluated as per [Project.file]
     * @param plugin a id of the plugin to apply
     * @param to the plugin target object or collection of objects, target is self when null
     * @see [PluginAware.apply]
     */
    fun PluginAware.apply(from: Any? = null, plugin: String? = null, to: Any? = null) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  4. platforms/core-configuration/kotlin-dsl/src/test/kotlin/org/gradle/kotlin/dsl/PluginAwareExtensionsTest.kt

    import org.gradle.api.invocation.Gradle
    import org.gradle.api.plugins.ObjectConfigurationAction
    import org.gradle.api.plugins.PluginAware
    
    import org.junit.Test
    
    
    class PluginAwareExtensionsTest {
    
        @Test
        fun `non reified apply extension on PluginAware`() {
            assertNonReifiedApplyExtension<PluginAware>()
        }
    
        @Test
        fun `non reified apply extension on Project`() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 5.4K bytes
    - Viewed (0)
  5. platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/SettingsExtensions.kt

     * compatible type of `this`.
     *
     * @param T the plugin type.
     * @see [PluginAware.apply]
     */
    inline fun <reified T : Plugin<Settings>> Settings.apply() =
        (this as PluginAware).apply<T>()
    
    
    /**
     * Locates a property on [Settings].
     */
    operator fun Settings.provideDelegate(any: Any?, property: KProperty<*>): PropertyDelegate =
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 09:50:04 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  6. platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/precompile/v1/PrecompiledScriptTemplates.kt

     */
    
    package org.gradle.kotlin.dsl.precompile.v1
    
    import org.gradle.api.Project
    import org.gradle.api.initialization.Settings
    import org.gradle.api.invocation.Gradle
    import org.gradle.api.plugins.PluginAware
    import org.gradle.api.provider.Provider
    import org.gradle.api.provider.ProviderConvertible
    import org.gradle.kotlin.dsl.*
    import org.gradle.kotlin.dsl.precompile.PrecompiledScriptDependenciesResolver
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 8.9K bytes
    - Viewed (0)
  7. platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/GradleExtensions.kt

    import org.gradle.api.invocation.Gradle
    import org.gradle.api.plugins.PluginAware
    
    
    /**
     * Applies the plugin of the given type [T]. Does nothing if the plugin has already been applied.
     *
     * The given class should implement the [Plugin] interface, and be parameterized for a
     * compatible type of `this`.
     *
     * @param T the plugin type.
     * @see [PluginAware.apply]
     */
    inline fun <reified T : Plugin<Gradle>> Gradle.apply() =
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  8. subprojects/core/src/main/java/org/gradle/api/internal/plugins/DefaultObjectConfigurationAction.java

            for (Object target : targets) {
                if (target instanceof PluginAware) {
                    ((PluginAware) target).getPluginManager().apply(pluginId);
                } else {
                    throw new UnsupportedOperationException(String.format("Cannot apply plugin with id '%s' to '%s' (class: %s) as it does not implement PluginAware", pluginId, target.toString(), target.getClass().getName()));
                }
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 05 19:36:14 UTC 2023
    - 7.6K bytes
    - Viewed (0)
  9. platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/support/CompiledKotlinSettingsScript.kt

    import org.gradle.api.logging.Logging
    import org.gradle.api.logging.LoggingManager
    import org.gradle.api.plugins.PluginAware
    
    
    @ImplicitReceiver(Settings::class)
    open class CompiledKotlinSettingsScript(
        private val host: KotlinScriptHost<Settings>
    ) : DefaultKotlinScript(SettingsScriptHost(host)), PluginAware by PluginAwareScript(host) {
    
        /**
         * The [ScriptHandler] for this script.
         */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  10. platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/support/PluginAwareScript.kt

    import org.gradle.api.Action
    import org.gradle.api.plugins.ObjectConfigurationAction
    import org.gradle.api.plugins.PluginAware
    import org.gradle.api.plugins.PluginContainer
    import org.gradle.api.plugins.PluginManager
    
    
    open class PluginAwareScript internal constructor(
        private val host: KotlinScriptHost<PluginAware>
    ) : PluginAware {
    
        override fun getPlugins(): PluginContainer =
            host.target.plugins
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 1.5K bytes
    - Viewed (0)
Back to top