Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 162 for RuleSource (0.32 sec)

  1. platforms/software/platform-base/src/integTest/groovy/org/gradle/language/base/CustomBinaryIntegrationTest.groovy

            class DefaultSomeBinary extends BaseBinarySpec implements SomeBinary {}
            class Rules1 extends RuleSource {
                @ComponentType
                void register(TypeBuilder<SomeBinary> builder) {
                    builder.defaultImplementation(DefaultSomeBinary)
                }
            }
            class Rules2 extends RuleSource {
                @ComponentType
                void register(TypeBuilder<SomeBinary> builder) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Oct 11 12:16:09 UTC 2023
    - 11K bytes
    - Viewed (0)
  2. platforms/software/dependency-management/src/test/groovy/org/gradle/internal/rules/RuleSourceBackedRuleActionTest.groovy

            when:
            action = RuleSourceBackedRuleAction.create(ModelType.of(List), ruleSource)
    
            then:
            action.inputTypes == [String, Integer, Set]
    
            when:
            action.execute(collector, ["foo", 1, ["bar", "baz"] as Set])
    
            then:
            collector == ["foo", 1, "bar", "baz"]
    
            where:
            ruleSource << [new ListRuleSource(), new ArrayListRuleSource()]
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 6.4K bytes
    - Viewed (0)
  3. platforms/software/platform-base/src/integTest/groovy/org/gradle/language/base/ComponentModelIntegrationTest.groovy

                        }
                    }
                }
            """
        }
    
        void withBinaries() {
            withCustomBinaryType()
            buildFile << """
                class ComponentBinaryRules extends RuleSource {
                    @ComponentBinaries
                    void addBinaries(ModelMap<CustomBinary> binaries, CustomComponent component) {
                        binaries.create("b1", CustomBinary)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Oct 11 12:16:09 UTC 2023
    - 20.4K bytes
    - Viewed (0)
  4. platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/model/managed/AbstractClassBackedManagedTypeIntegrationTest.groovy

                @Managed
                abstract class Person {
                    abstract String getName()
                    abstract void setName(String name)
                }
    
                class RulePlugin extends RuleSource {
                    @Model
                    void createPerson(Person person) {
                        person.name = "foo"
                    }
    
                    @Mutate
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 8.5K bytes
    - Viewed (0)
  5. platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/model/managed/InterfaceBackedManagedTypeIntegrationTest.groovy

                }
    
                @Managed
                interface Names {
                    String getName()
                    void setName(String name)
                }
    
                class RulePlugin extends RuleSource {
                    @Model
                    void name(Names names) {
                        assert names == names
                        assert names.name == null
    
                        names.name = "foo"
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 11.9K bytes
    - Viewed (0)
  6. platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/model/managed/PolymorphicManagedTypeIntegrationTest.groovy

                }
    
                @Managed
                abstract class Person implements Named {
                    abstract void setName(String name)
                }
    
                class RulePlugin extends RuleSource {
                    @Model
                    void createPerson(Person person) {
                        person.name = "foo"
                    }
    
                    @Mutate
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 6.7K bytes
    - Viewed (0)
  7. platforms/core-configuration/model-groovy/src/integTest/groovy/org/gradle/model/dsl/ModelDslIntegrationTest.groovy

    class ModelDslIntegrationTest extends AbstractIntegrationSpec {
    
        def "can reference rule inputs using dollar method syntax"() {
            when:
            buildScript '''
                class MyPlugin extends RuleSource {
                    @Model
                    String foo() {
                      "foo"
                    }
    
                    @Model
                    List<String> strings() {
                      []
                    }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 6.8K bytes
    - Viewed (0)
  8. platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/model/MutationRuleApplicationOrderIntegrationTest.groovy

                class MultipleRuleSources implements Plugin<Project> {
                    static class B extends RuleSource {
                        @Mutate
                        void b(MutationRecorder recorder) {
                            recorder.mutations << "b"
                        }
                    }
    
                    static class A extends RuleSource {
                        @Model
                        MutationRecorder recorder() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 5.3K bytes
    - Viewed (0)
  9. platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/model/ModelRuleBindingFailureIntegrationTest.groovy

            buildScript """
                class Plugin1 {
                    static class Rules extends RuleSource {
                        @Model
                        String s1() {
                            "foo"
                        }
                    }
                }
    
                class Plugin2 {
                    static class Rules extends RuleSource {
                        @Model
                        String s2() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 10.3K bytes
    - Viewed (0)
  10. platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/model/managed/ManagedModelMapIntegrationTest.groovy

                  String getValue()
                }
    
                @Managed
                interface Container {
                  ModelMap<Thing> getThings();
                }
    
                class Rules extends RuleSource {
    
                  @Model
                  void container(Container container) {
                    container.things.create("a") { value = "1" }
                    container.things.create("b") { value = "2" }
                  }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 13.5K bytes
    - Viewed (0)
Back to top