Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 25 of 25 for MyExtension (0.14 sec)

  1. platforms/core-configuration/kotlin-dsl-integ-tests/src/integTest/kotlin/org/gradle/kotlin/dsl/integration/ProjectSchemaAccessorsIntegrationTest.kt

                import org.gradle.api.*
    
                open class MyExtension<T>
    
                class FooPlugin : Plugin<Project> {
                    override fun apply(project: Project): Unit = project.run {
                        // Using add() without specifying the public type causes type erasure
                        extensions.add("mine", MyExtension<String>())
                    }
                }
                """
            )
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Jan 29 11:39:00 UTC 2024
    - 39.6K bytes
    - Viewed (0)
  2. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/isolated/IsolatedProjectsToolingApiParallelConfigurationIntegrationTest.groovy

            and:
            fixture.assertStateLoaded()
    
            when:
            file("a/build.gradle") << """
                myExtension.message = 'this is project a'
            """
            file("b/build.gradle") << """
                myExtension.message = 'this is project b'
            """
    
            server.expect("configure-root")
            server.expectConcurrent("configure-a", "configure-b")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 10.6K bytes
    - Viewed (0)
  3. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/isolated/IsolatedProjectsToolingApiBuildActionIntegrationTest.groovy

            model2[1].message == "It works from project :a"
    
            and:
            fixture.assertStateLoaded()
            outputDoesNotContain("creating model")
    
            when:
            buildFile << """
                myExtension.message = 'this is the root project'
            """
    
            executer.withArguments(ENABLE_CLI)
            def model3 = runBuildAction(new FetchCustomModelForEachProject())
    
            then:
            model3.size() == 2
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 18.5K bytes
    - Viewed (0)
  4. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/isolated/IsolatedProjectsToolingApiModelQueryIntegrationTest.groovy

            model2.message == "It works from project :"
    
            and:
            fixture.assertStateLoaded()
            outputDoesNotContain("creating model")
    
            when:
            buildFile << """
                myExtension.message = 'this is the root project'
            """
    
            executer.withArguments(ENABLE_CLI)
            def model3 = fetchModel()
    
            then:
            model3.message == "this is the root project"
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  5. platforms/documentation/docs/src/docs/userguide/authoring-builds/plugins/implementing_gradle_plugins_binary.adoc

    include::sample[dir="snippets/plugins/mappingExtensions/groovy",files="app/build.gradle[tags=snippet]"]
    ====
    
    In this example, the `MyExtension` class defines an `inputParameter` property that can be set in the build script.
    The `MyPlugin` class configures this extension and uses its `inputParameter` value to configure the `MyCustomTask` task.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 29 02:31:44 UTC 2024
    - 37.7K bytes
    - Viewed (0)
Back to top