Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 207 for applyTo (1.38 sec)

  1. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/isolated/IsolatedProjectsToolingApiPhasedBuildActionIntegrationTest.groovy

            settingsFile << """
                include("a")
                include("b")
            """
            buildFile << """
                plugins.apply(my.MyPlugin)
            """
            file("a/build.gradle") << """
                plugins.apply(my.MyPlugin)
            """
    
            when:
            executer.withArguments(ENABLE_CLI)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  2. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheFlowScopeIntegrationTest.groovy

                case InjectionStyle.PLUGIN:
                    return "apply type: $pluginType"
                case InjectionStyle.NEW_INSTANCE:
                    def targetObject = target.targetType.toLowerCase()
                    switch (target) {
                        case ScriptTarget.PROJECT:
                            return "objects.newInstance($pluginType).apply($targetObject)"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  3. platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/SettingsExtensions.kt

     * 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<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)
  4. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/inputs/process/instrument/DynamicGroovyPluginMixin.groovy

    import org.gradle.api.Project
    import org.gradle.integtests.fixtures.GroovyBuildScriptLanguage
    import org.gradle.test.fixtures.file.TestFile
    
    /**
     * A set of helpers to generate a Groovy plugin with provided code in buildSrc and apply it to the project under test.
     * The trait is intended to be mixed into something that extends {@link org.gradle.integtests.fixtures.AbstractIntegrationSpec}.
     */
    trait DynamicGroovyPluginMixin {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  5. platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/ProjectExtensions.kt

     * }
     * ```
     * If you need to apply a plugin imperatively, please use apply<PluginType>() or apply(plugin = "id") instead.
     * ```
     * project(":core") {
     *   apply(plugin = "java")
     * }
     * ```
     * @since 6.0
     */
    @Suppress("unused", "DeprecatedCallableAddReplaceWith")
    @Deprecated(
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 09:50:04 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  6. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/isolated/IsolatedProjectsToolingApiParallelConfigurationIntegrationTest.groovy

            """)
            settingsFile << """
                include("a")
                include("b")
                rootProject.name = "root"
            """
            apply(testDirectory)
            apply(file("a"))
            apply(file("b"))
    
            // Prebuild buildSrc
            server.expect("configure-root")
            server.expect("configure-a")
            server.expect("configure-b")
            run()
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 10.6K bytes
    - Viewed (0)
  7. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/inputs/undeclared/SystemPropertyInstrumentationInStaticGroovyIntegrationTest.groovy

                @CompileStatic
                class SomePlugin implements Plugin<Project> {
                    void apply(Project project) {
                        def returned = $method
                        println("returned = \$returned")
                    }
                }
            """
    
            buildScript("""
                apply plugin: SomePlugin
            """)
    
            when:
            configurationCacheRun("-Dsome.property=some.value")
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  8. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/inputs/undeclared/SystemPropertyInstrumentationInDynamicGroovyIntegrationTest.groovy

                import static ${System.name}.getProperty
                import static ${System.name}.setProperty
    
                class SomePlugin implements Plugin<Project> {
                    void apply(Project project) {
                        def returned = $method
                        println("returned = \$returned")
                    }
                }
            """
            file("buildSrc/build.gradle") << """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  9. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheDirectoryPluginIntegrationTest.groovy

                        classpath(files("./first/build/classes/java/main"))
                        classpath(files("./second/build/classes/java/main"))
                    }
                }
                apply plugin: FirstPlugin
                apply plugin: SecondPlugin
            """
    
            when:
            executer.inDirectory(file("first")).withTasks("classes").run()
            executer.inDirectory(file("second")).withTasks("classes").run()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  10. platforms/core-configuration/configuration-cache/src/test/kotlin/org/gradle/internal/cc/impl/isolation/IsolatedActionSerializerTest.kt

            objectFactory().setProperty(K::class.java).apply {
                if (values.isNotEmpty()) {
                    addAll(*values)
                }
            }
    
        private
        inline fun <reified K : Any, reified V : Any> mapPropertyOf(vararg values: Pair<K, V>) =
            objectFactory().mapProperty(K::class.java, V::class.java).apply {
                values.forEach { (k, v) ->
                    put(k, v)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:30 UTC 2024
    - 6.4K bytes
    - Viewed (0)
Back to top