Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 135 for supply (0.18 sec)

  1. platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/model/managed/ModelSetIntegrationTest.groovy

                    println "apply defaults"
                  }
    
                  @Mutate void customPeople(ModelSet<Person> people) {
                    println "configure"
                  }
    
                  @Finalize void finalPeople(ModelSet<Person> people) {
                    println "finalize"
                  }
                }
    
                apply type: Rules
    
                model {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 18.9K bytes
    - Viewed (0)
  2. platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/model/RuleSourceAppliedByRuleMethodIntegrationTest.groovy

    import org.gradle.language.base.LanguageSourceSet
    
    @UnsupportedWithConfigurationCache(because = "software model")
    class RuleSourceAppliedByRuleMethodIntegrationTest extends AbstractIntegrationSpec {
        def "@Rule method can apply rules to a particular target"() {
            buildFile << '''
                @Managed
                interface Thing {
                    String getName()
                    void setName(String name)
                }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 18.7K bytes
    - Viewed (0)
  3. platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/model/managed/InterfaceBackedManagedTypeIntegrationTest.groovy

                    }
                }
    
                apply type: RulePlugin
            '''
    
            then:
            succeeds "echo"
    
            and:
            output.contains("person: Person 'someone'")
            output.contains("name: someone")
            output.contains("display-name: Person 'someone'")
        }
    
        def "rule method can apply defaults to a managed model element"() {
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 11.9K bytes
    - Viewed (0)
  4. platforms/core-configuration/flow-services/src/integTest/groovy/org/gradle/internal/flow/services/FlowScopeIntegrationTest.groovy

                    void apply(Project target) {
                        target.tasks.register('fails', Fails)  {
                            color = flowProviders.buildWorkResult.map {
                                it.failure.present ? 'red' : 'green'
                            }
                        }
                    }
                }
    
                apply type: FailsPlugin
            '''
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 24 15:01:34 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  5. platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/model/ModelRuleValidationIntegrationTest.groovy

                        List<String> strings() {
                          []
                        }
                    }
                }
    
                apply type: MyPlugin
            """
    
            then:
            fails "tasks"
    
            and:
            failure.assertHasCause("Failed to apply plugin class 'MyPlugin'")
            failure.assertHasCause('''Type MyPlugin.Rules is not a valid rule source:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  6. platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/model/managed/ManagedTypeWithUnmanagedPropertiesIntegrationTest.groovy

                            it.doLast {
                                println "value: $thing.unmanaged.value"
                            }
                        }
                    }
                }
    
                apply type: RulePlugin
            '''
    
            then:
            succeeds "echo"
    
            and:
            output.contains('value: foo')
        }
    
        def "unmanaged property of managed type can be targeted by rules"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 5K bytes
    - Viewed (0)
  7. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/fixtures/ExternalProcessFixture.groovy

                    fixture.newGroovyExecJavaexecSnippets(method, groovySpecFactory.apply(fixture))
                }
            }
    
            @Override
            SnippetsFactory getKotlin() {
                return makeFactory(method) { fixture ->
                    fixture.newKotlinExecJavaexecSnippets(method, kotlinSpecFactory.apply(fixture))
                }
            }
    
            @Override
            SnippetsFactory getJava() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  8. platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/model/ConfigurationCycleIntegrationTest.groovy

                        "fizz"
                    }
    
                    @Mutate
                    void connectTasksToFirst(ModelMap<Task> tasks, @Path("first") String first) {
                    }
                }
    
                apply type: Rules
    
                model {
                    second {
                        $.third
                    }
                }
            '''
    
            then:
            fails "tasks"
    
            and:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 4.6K bytes
    - Viewed (0)
  9. platforms/core-configuration/file-collections/src/integTest/groovy/org/gradle/api/file/AbstractFilePropertyKotlinInterOpIntegrationTest.groovy

            pluginDir.file("src/main/kotlin/SomePlugin.kt") << """
                import ${Project.name}
                import ${Plugin.name}
    
                class SomePlugin: Plugin<Project> {
                    override fun apply(project: Project) {
                        project.tasks.register("producer", ProducerTask::class.java) {
                            outFile.set(project.layout.buildDirectory.file("intermediate.txt"))
                        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  10. platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/model/managed/CyclicalManagedTypeIntegrationTest.groovy

                            it.doLast {
                                println "name: $parent.child.parent.name"
                            }
                        }
                    }
                }
    
                apply type: RulePlugin
            '''
    
            then:
            succeeds "echo"
    
            and:
            output.contains("name: parent")
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 3.1K bytes
    - Viewed (0)
Back to top